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

Function module

Former Member
0 Likes
533

Hi Experts,

What is the function module which can be used to get the last name and first name by giving uname as input. Can the function module be called in samrtform code.

Thank you.

Regards,

Admir.

Points will be rewarded.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
485

Hi

Use like this in smartform program lines.

FM: SUSR_SHOW_USER_DETAILS

<B>Import parameters<B>

BNAME = sy-uname

MANDT = sy-mandt

NO_DISPLAY = 'X'

Then it will get total profile of the user including personal number, and names and everything.

Thanks,

Pavan Kothapalli

4 REPLIES 4
Read only

Former Member
0 Likes
485

Use v_usr_name database view and you will get last name and first name.

select single * from v_usr_name into v_usr_name

where BNAME = sy-uname.

Read only

Former Member
0 Likes
485

Hi,

You can use the BAPI BAPI_USER_GETDETAIL

Thanks,

Naren

Read only

Former Member
0 Likes
486

Hi

Use like this in smartform program lines.

FM: SUSR_SHOW_USER_DETAILS

<B>Import parameters<B>

BNAME = sy-uname

MANDT = sy-mandt

NO_DISPLAY = 'X'

Then it will get total profile of the user including personal number, and names and everything.

Thanks,

Pavan Kothapalli

Read only

0 Likes
485

Thank you experts.