Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Derive User Name (BNAME) using PERNR

Former Member
0 Likes
2,892

Hi,

I need to derive the User name (BNAME) using PERNR.

Can anyone suggest me the appriopriate tables please?

Thanks..

Regards,

R Adarsh

1 ACCEPTED SOLUTION
Read only

Subhankar
Active Contributor
0 Likes
2,014

Hi ...

get the user name (UNAME) from PA0002 using PERNR(Personnel number)

If want to get the full name please concatenate the value VNAMC and NCHMC..

I think it will work..

Edited by: Subhankar Garani on Aug 27, 2008 7:54 AM

Hi,

I need to derive the User name (BNAME) using PERNR.

Can anyone suggest me the appriopriate tables please?

Thanks..

Regards,

R Adarsh

5 REPLIES 5
Read only

naveen_inuganti2
Active Contributor
0 Likes
2,014

Hi.....

Check this program...

data: itab like pa0002 occurs 0 with header line.
parameters: p_name like pa0002-pernr.
select single vnamc nchmc from pa0002 into corresponding fields of itab where pernr = p_name.
data:text(30).
concatenate  itab-vnamc itab-nchmc into text separated by ' '.
write:/ text.

Thanks,

Naveen.I

Read only

Former Member
0 Likes
2,014

Hi,

You can try tables PA0001 or PA0002.

Regards,

Samson Rodrigues.

Read only

bpawanchand
Active Contributor
0 Likes
2,014

Hi

SELECT
    usrid
    FROM pa0105
    INTO (w_USRNAME)
    UP TO 1 ROWS
    WHERE subty = '0001' AND
                  begda le sy-datum AND
                 endda ge sy-datum. 
ENDSELECT.

Try this out i think it will give you the Sap user login name

Regards

Pavan

Read only

Former Member
0 Likes
2,014

hi adarsh r

goto Infotype PA0002

Regards

Deva

Read only

Subhankar
Active Contributor
0 Likes
2,015

Hi ...

get the user name (UNAME) from PA0002 using PERNR(Personnel number)

If want to get the full name please concatenate the value VNAMC and NCHMC..

I think it will work..

Edited by: Subhankar Garani on Aug 27, 2008 7:54 AM