‎2008 May 23 2:53 AM
hi guys,
may i know how to program the code to retrieve the current user ID who are using the program.
for example, i need code in SAP script, for cheque printing, that the user who performed the cheque print, will have his name on the cheque, as "prepared by". so how am i going to do so?
appreciate the help. thanks
‎2008 May 23 2:54 AM
Hi,
Use system Field SY_UNAME. It picks the current user ID.
Best regards,
raam
‎2008 May 23 2:55 AM
‎2008 May 23 3:02 AM
Hi,
Use system field SY-UNAME.....It will take the current user ID.
Goto the table SYST to get all the system fields.
Reward if helpful.
Thanks.
‎2008 May 23 3:07 AM
Hi
U can also use the method below in addition to the variable sy-uname.
data: l_user type sy-uname.
l_user = CL_ABAP_SYST=>GET_USER_NAME( ).
Reward if found useful.
Thanks
Prakash Ghantasala
‎2008 May 23 3:43 AM
Hi,
Use SY-UNAME.
Btw, You can use SE11 to browse structure SYST to get all the system fields.
Regards,
Pole