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: 

Need help to get the Designation of the User

former_member368216
Participant
0 Kudos

Hi,

In the ECC50 version we are using the fn.module "SUSR_USER_ADDRESS_READ" as an alternative to USR03 table data. I need to get the Designation of the User which is not available from the function module. Is there any table/Fn.module to get the 'Designation'?

In the older version the designation of the user is maintained in the 'Name3' filed of the USR03. I feel this is project specific. Where as the 'Name3' from the Function module now shows different value. i.e. other than the designation.

Please help.

Thanks,

Ashok Lankireddy

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Ashok

In the FM that u r using ,

it returns a structure ADDR3_VAL ,

in that check the field PROFESSION

6 REPLIES 6

suresh_datti
Active Contributor
0 Kudos

Hi Ashok,

Try SO_USER_ADDRESS_FOR_USR03_GET.

Regards,

Suresh Datti

laxmanakumar_appana
Active Contributor
0 Kudos

Hi,

Check this database view USER_ADDRS field FUNCTION

if you maintain the designation in user profile ->owndata->function, then you will get this value.

Laxman

Message was edited by: Laxmana Kumar

0 Kudos

Check this...

CALL FUNCTION 'SUSR_USER_READ'
        EXPORTING
          USER_NAME            = USERNAME_
        IMPORTING
          USER_LOGONDATA       = LOGONDATA_
          USER_DEFAULTS        = DEFAULTS_
          USER_ADDRESS         = USER_ADDRESS
        TABLES
          USER_PARAMETERS      = IT_PARAMETERS
        EXCEPTIONS
          USER_NAME_NOT_EXISTS = 1
          INTERNAL_ERROR       = 2
          OTHERS               = 3.
      IF SY-SUBRC = 0.

        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.
          "address 
          ENDIF.

Regards

vijay

0 Kudos

Dear all,

Thanks for the support. Our team has decided to use the 'FUNCTION' field in the address tab will be filled with the designation.

Thanks for the help.

Ashok

0 Kudos

Hi Ashok,

I am very clear on this field , that is the reason i had mentioned it.

Laxman

don't forget to reward the points.

Former Member
0 Kudos

Hi Ashok

In the FM that u r using ,

it returns a structure ADDR3_VAL ,

in that check the field PROFESSION