cancel
Showing results for 
Search instead for 
Did you mean: 

how to pass portal login id to BEx variable

Former Member
0 Kudos

hi all,

i want the customer exit variable (BEx) to get the saplogin id of the user logged to the portal.

Does sy-uname give the data of the user logged to the portal?

If not , how do i get the user id.

Thanks,

Vinay

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos
"....  i want the customer exit variable (BEx) to get the saplogin id of the user logged to the portal... "

Hi Vinay,

I guess you are using SAP based EP.

If so, the SSO UserID must be defined based on the SY-UNAME for accessing the particular Query's iView on KM.

So, just create a Customer Exit Variable & restrict your query say 'MYVAR' in BEx.

Go to CMOD, Include the following code as a part of the Include within the Function module: EXIT_SAPLRRS0_001

WHEN 'MYVAR'.
    IF I_STEP = '2'.
      L_S_RANGE-LOW = SY-UNAME.
      L_S_RANGE-HIGH = SY-UNAME.
      L_S_RANGE-SIGN = 'I'.
      L_S_RANGE-OPT = 'EQ'.
      APPEND L_S_RANGE TO E_T_RANGE.
    ENDIF.

Hope this helps... Thanks. @SDN team: Pls. suggest possible refinements.

Edited by: Arun Bala G on Dec 27, 2010 1:31 PM

former_member212742
Active Participant
0 Kudos

Hi Vinay,

Yes, Sy-uname give the user ID of the person currently logged on. You can use this statement in your customer Exit variables.

Regards.

Shafi.