cancel
Showing results for 
Search instead for 
Did you mean: 

How to capture username in ABAP table

Former Member
0 Kudos

Hi experts,

I have this case:

A webdynpro application calling a BAPI throught adaptive RFC.

The problem is the last updated username captured in my ABAP tables is the one supplied when i created the logical system names. (JCO)

What i actually want to capture is username of the user who login.

What am i missing ?

Thanks a lot.

Regards,

Daniel

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Actually i used the wrong authentication technique when creating the JCO connection. Should not use user/password but UME or SSO etc. In that way the user who logins the system will have his id captured in the R3 tables. Thanks everyone.

Former Member
0 Kudos

Hi Daniel

Use the foll. code to get the user id

IWDClientUser clientUser = WDClientUser.getCurrentUser();

Pass this is as a parameter to RFC. Your ABAPer will have to do a change in RFC to capture and insert this User id in the respective table.

Regards

Nikhil Bansal

xxxxxxxxxxxxxxxxxxxxxxxxxx

Edited by: Armin Reichert on Feb 18, 2008 7:24 PM

Former Member
0 Kudos

Hi guys,

Thanks very much.

Do you know which field to update (last update user) from following BAPI:

BAPI_MATERIAL_SAVEDATA

Trying to find the field corresponding to the last updated user.

Like in MARA, think the field is AENAM.

Thanks a lot.

Regards,

Daniel

Former Member
0 Kudos

Hi,

following code will return the logged in user

try {

IWDClientUser clientUser = WDClientUser.getCurrentUser();

} catch (WDUMException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

Regards

Ayyapparaj