cancel
Showing results for 
Search instead for 
Did you mean: 

Sap Username Infotype 0105

Former Member
0 Kudos

Hello,

i wrote a report to extract HR Data. I#m looking for a way to extract the information about the corrsponding SAP user which is configured in infotype 0105 (sy-name). I defined the following passage in my coding, but that's the way to extract the last user who did changes in that infotype:



*sapUsername
attributes_wa-attr_tab = 'EMPLOYEE'.
attributes_wa-attr_field = 'SAPUSERNAME'.
if p0105-uname NE ' '.
  attributes_wa-value = p0105-uname.
  append attributes_wa to attributes.
else.
  attributes_wa-value = ' '.
  append attributes_wa to attributes.
endif. 

What field i have to youse to extract the information about the corresponding user in infotype 0105?

Please help!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

The user who made the last change to a record is stored

in the UNAME field of that record.If you want an employees's SAP UserId,see field USRID with SUBTY/USRTY field as 0001.If you want an employee's other identities(e-mail/fax/phone etc.),look out for other subtypes.To see all possible subtypes,press F4 on USRTY field in PA0105.

Thanks,

Nikhil Phani Polepally

Former Member
0 Kudos

hi,

The field to refer for username in infotype 0105 is USRID for subty 0001..

Thanks,

Aditya

Message was edited by: Aditya Balijepalli

suresh_datti
Active Contributor
0 Kudos

Hi,

The SAP User id of the Employee is maintained in the USRID field of Infotype 0105 subty 0001.

If you are looking for the user who changed the record, the field is UNAME.

Regards,

Suresh Datti