Hi Adam,
I am sorry if I did not explain it well. Let me try it once again.
Variable ABC - processing by customer exit:
This variable has to be used in your Analysis Authorization object as $ABC.
The coding applies to this variable and should be processed at i_step = 0. I noticed a small coding mistake so to avoid any confusion, let me give the code extract once more.
- ...
- WHEN 'ZSLDTO_EX_REG'.
- DATA:
- l_username type xubname.
- IF i_step = '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.
- l_s_range-sign = 'I'.
- l_s_range-opt = 'EQ'.
- l_s_range-low = wa_zcountry_user-country.
- APPEND l_s_range TO e_t_range.
- CLEAR wa_zcountry_user.
- ENDLOOP.
- ENDIF.
- ENDIF.
- ...
Variable XYZ - processing by authorization:
This is the authorization variable which can be used in the query. It will fill the variable with authorized values.
It can be made "input ready"so that it functions as a default value. The user can modify the selection on the selection screen.
Last but not least, please regenerate the BEx Query using t/code RSRT, just to be sure. You can also test if it works well here. It's very convenient for debugging the coding for example.
Please let me know if you are able to get this work. Thanks in advance.
Best regards,
Sander