Skip to Content
0
Former Member
Feb 10, 2011 at 06:41 PM

ZXRSRU01 - How to populate login ID with a Bex variable

121 Views

Hi, Experts, I have a requirement to always populate the person who is running the Bex query's user id as one of the filtering critiria in a Bex query. I created a variable on 0EMPLOYEE and use the user exit ZXRSRU01 to populate it from SY-UNAME. But it didn't work. Here is my user exit code:

WHEN 'ZTEST01'.

IF I_STEP = 2.

CLEAR L_S_RANGE.

l_s_range-low = SY-UNAME+1(5)."setting login Pnumber.

l_s_range-sign = 'I'.

l_s_range-opt = 'EQ'.

APPEND L_S_RANGE TO E_T_RANGE.

ENDIF.

and here is the error I got when I run the query

Error Value "05409" for user exit variable ZTEST01 is invalid.

Please help!

Thanks

Chimei