Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8652

Re: Customer Exit - Analysis Authorization Issue

$
0
0

Hi Adam,

 

I am afraid that your user exit variable implementation is wrong. User exit variables in Analysis Authorizations are processed in i_step = 0. You should only program at this processing time, nothing else.

Also please work with the RSEC_GET_USERNAME Function Module to determine the Analysis Authorization user name (instead of sy-uname). This will work in proper way together with the Analysis Authorization trace tool.

 

...
WHEN 'ZSLDTO_EX_REG'.  data:    l_username type xubname.  IF i_step EQ '0'.    call function 'RSEC_GET_USERNAME'      importing        e_username = l_username.    refresh it_zcountry_user.    SELECT * FROM zcountry_user INTO TABLE it_zcountry_user WHERE uname = l_username.    IF sy-subrc = 0.      LOOP AT it_zcountry_user into wa_zcountry_user.        CLEAR: l_s_range , wa_zcountry_user.        l_s_range-sign = 'I'.        l_s_range-opt  = 'EQ'.        l_s_range-low  = wa_zcountry_user-country.        l_s_range-sign = 'I'.        APPEND l_s_range TO e_t_range.      ENDLOOP.    ENDIF.   ENDIF.
...

 

Be careful with programming validations (i_step = 3). First concentrate on making the i_step = 0 variable work correctly.

Furthermore please use Authorization variables in the BEx Query as usual. You can make these also "input ready" so they can be used as default value (similar to i_step = 1).

 

Best regards,

Sander


Viewing all articles
Browse latest Browse all 8652

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>