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

ABAP Programming

Former Member
0 Likes
460

Hi,

Kindly let me know how to find the First name and Last name of a user in SAP.

Thanks in advance.

Prakash

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
442

Hi Prakash,

Use FM BAPI_USER_GET_DETAIL passing username and you will be able to get Last and the first name in BAPIADDR3 structure i.e ADDRESS exporting parameter.

Regards,

Srikanth

Message was edited by: Srikanth Lodd

3 REPLIES 3
Read only

Former Member
0 Likes
443

Hi Prakash,

Use FM BAPI_USER_GET_DETAIL passing username and you will be able to get Last and the first name in BAPIADDR3 structure i.e ADDRESS exporting parameter.

Regards,

Srikanth

Message was edited by: Srikanth Lodd

Read only

0 Likes
442

HI,

Use this

 CALL FUNCTION 'ADDR_PERS_COMP_GET_COMPLETE'
        EXPORTING
          ADDRNUMBER        = USER_ADDRESS-ADDRNUMBER
          PERSNUMBER        = USER_ADDRESS-PERSNUMBER
        IMPORTING
          ADDR3_COMPLETE    = ADDR3_COMPLETE
        EXCEPTIONS
          PARAMETER_ERROR   = 1
          ADDRESS_NOT_EXIST = 2
          PERSON_NOT_EXIST  = 3
          INTERNAL_ERROR    = 4
          OTHERS            = 5.
      IF SY-SUBRC = 0.
        CALL FUNCTION 'ADDR_CONVERT_TO_BAPIADDR3_V2'
          EXPORTING
            ADDR3_COMPLETE      = ADDR3_COMPLETE
          IMPORTING
            ADDR3_COMPLETE_BAPI = IT_ADDRESS.
        IF SY-SUBRC = 0.
          I_SFTMEMBER      = IT_ADDRESS-FULLNAME.
          I_SFTMEMBERPHONE = IT_ADDRESS-TEL1_NUMBR.
          I_FIRSTNAME      = IT_ADDRESS-FIRSTNAME.
          I_LASTNAME      = IT_ADDRESS-LASTNAME.
        ENDIF.
      ENDIF.

regards

Vijay

Read only

Former Member
0 Likes
442

Hi prakash,

You can find SAP USERS Authorization data

Fname ,lname,roles,profiles ....

in <b>'SU01'</b> transaction .

It's all stored in USR01 - USR41 tables .

If u r looking for Employee data u can find that in infotypes .0002

Rgds,

J