cancel
Showing results for 
Search instead for 
Did you mean: 

Get Sap User Id

Former Member
0 Kudos

Hi

I am developing WD4A app and I was wondering what code to use in order to get the SAP USER ID from the portal?

In java I use the code:

WDClientUser.getcurrentUser().getSapUser();

Any help is appreciated

Regardfs

yuval

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Refer this thread : (Ans by Abhi)

Former Member
0 Kudos

Hi

I am not sure but in the thread you mention, the url of the app has to pass in the user id.

In the HandleDefault you just read the url parameter attached to this url.

What I need is to extract the SAP USD ID drectly from the portal login id.

I think there is such a class in ABAP

regards

yuval

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>What I need is to extract the SAP USD ID drectly from the portal login id.

Can you define what you mean by SAP USD ID? Do you mean the user name of the backend ABAP system? If so, just use the system variable SY-UNAME.

Former Member
0 Kudos

Hi THomas

Thank you for your help.

How silly of mr not to have used this immediate parameter.

Any way it helped.

Thank you very much.

mfG

Yuval Peery