Application Development 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: 

Name of the person entering Invoice

former_member556412
Active Participant
0 Kudos

Hi,

From which table can i get the name of the person entering Invoice.

BKPF-USNAM gives the user ID how to get the user name.

Regards,

Bhanu

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Use the below BAPI to which you need to pass the user-id as the input. Which will return the name in the output parameter Address in the fields First Name and Last Name.

CALL FUNCTION 'BAPI_USER_GET_DETAIL'

EXPORTING

username = wa_imrg-readr

CACHE_RESULTS = 'X'

IMPORTING

  • LOGONDATA =

  • DEFAULTS =

ADDRESS = wa_address

  • COMPANY =

  • SNC =

  • REF_USER =

  • ALIAS =

  • UCLASS =

  • LASTMODIFIED =

  • ISLOCKED =

tables

  • PARAMETER =

  • PROFILES =

  • ACTIVITYGROUPS =

return = it_return

Hope this helps,

Murthy.

4 REPLIES 4

Former Member
0 Kudos

Hi

try to get data from USR03 table.

regards

sateesh

0 Kudos

Hi,

Thanks for your reply sateesh but sorry it didnt work.

Regards,

Bhanu

Former Member
0 Kudos

In table USR21 field BNAME give ur username of BKPF. You will get the PERSNUMBER frm this table corresponding to the value u passed.

Based on this PERSNUMBER go to table ADRP and enter the PERSNUMBER in field PERSNUMBER

of ADRP and you will find the corresponding first name last name entries.

BTW if u wud have searched sdn u would have found the result.

Former Member
0 Kudos

Hi,

Use the below BAPI to which you need to pass the user-id as the input. Which will return the name in the output parameter Address in the fields First Name and Last Name.

CALL FUNCTION 'BAPI_USER_GET_DETAIL'

EXPORTING

username = wa_imrg-readr

CACHE_RESULTS = 'X'

IMPORTING

  • LOGONDATA =

  • DEFAULTS =

ADDRESS = wa_address

  • COMPANY =

  • SNC =

  • REF_USER =

  • ALIAS =

  • UCLASS =

  • LASTMODIFIED =

  • ISLOCKED =

tables

  • PARAMETER =

  • PROFILES =

  • ACTIVITYGROUPS =

return = it_return

Hope this helps,

Murthy.