cancel
Showing results for 
Search instead for 
Did you mean: 

Person Number difference in ADR6

Former Member
0 Kudos

Hi,

I got the Person Number from a transaction and with the person number and the address number, I am able to get the email id from ADR6 table. But now, I want to get the SAP UserID of the same person. I tried querying USR21 table with the same Person Number and it is returning failed. I checked the table USR21 manually with the username and found that the Person number there is different as from the person number in ADR6 table. How can this be possible? How can I get the email and userid from the person number and address number?

Please help.

Regards,

Jubish

Accepted Solutions (1)

Accepted Solutions (1)

ted_dinh
Active Contributor

HR Personnel number and 'Person Number' in 'USR21' are not related. The only link between these would be the user-id.

To get SMTP email address (stored at user level, not HR level IT0105) if you have HR pernr would be to first get correpsonding user id from IT0105 / subtype '0001' ; use this to query USR21 to get 'Person Number' and address number. Use these two values from USR21 to get SMTP address from 'ADD6'.

Rgds.

Answers (1)

Answers (1)

Former Member
0 Kudos

you can directly get the emailid and userid from frpm personal number from table pa0105