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: 

SUSR_USER_ADDRESS_READ

Former Member
0 Kudos
793

Hi,

Will anyone pls suggest me how to use SUSR_USER_ADDRESS_READ this function module in smartforms. If any sample code available pls send to me.

Regards,

Suguna.

6 REPLIES 6

Former Member
0 Kudos
198

pass the sap user name to fucntion module.

it will return the user details in table USER_ADDRESS & USER_USR03

Thank you

Ganesh

0 Kudos
198

hi ganesh,

i passed the username in exporting and in Smartforms input parameter i given as "sy-uname" and in output parameters the target field. But its not working anything to be done pls guide..

Regards,

Suguna

0 Kudos
198

Try Below Codes, It works on my PC.



REPORT ZTEST.

DATA: WA_ADDR3_VAL TYPE ADDR3_VAL,
      WA_USR03   TYPE USR03.

CALL FUNCTION 'SUSR_USER_ADDRESS_READ'
  EXPORTING
    USER_NAME    = SY-UNAME
  IMPORTING
    USER_ADDRESS = WA_ADDR3_VAL
    USER_USR03   = WA_USR03.

BREAK-POINT.

0 Kudos
198

Thanks ganesh... Now its working..

Regards,

Suguna.

Former Member
0 Kudos
198

Hi,

check below code....

<< Unformatable code removed - just post relevant portions >>

Edited by: Rob Burbank on May 26, 2009 9:28 AM

Former Member
0 Kudos
198