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 to get user name from full name.

Former Member
0 Likes
10,566

Hi All,

I am searching for a function module which returns me user name when I give full name. Please let me know if any such function module exists.

Thanks & Regards

Archana

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,419

Hi archana,

try this,

/VIRSA/GET_USERS_BY_NAME

IMPORTING

VALUE(USERID) TYPE XUBNAME OPTIONAL

VALUE(NAME_FIRST) TYPE AD_NAMEFIR OPTIONAL

VALUE(NAME_LAST) TYPE AD_NAMELAS OPTIONAL

TABLES

USERS STRUCTURE /VIRSA/USERS

it will take user's first name and last name and return the user name

Regards,

Anirban

5 REPLIES 5
Read only

Former Member
0 Likes
3,420

Hi archana,

try this,

/VIRSA/GET_USERS_BY_NAME

IMPORTING

VALUE(USERID) TYPE XUBNAME OPTIONAL

VALUE(NAME_FIRST) TYPE AD_NAMEFIR OPTIONAL

VALUE(NAME_LAST) TYPE AD_NAMELAS OPTIONAL

TABLES

USERS STRUCTURE /VIRSA/USERS

it will take user's first name and last name and return the user name

Regards,

Anirban

Read only

Former Member
0 Likes
3,419

Hi,

You can get the Full name based on User Name using FM UMB_SERVICE_OWNER_NAME.

You can directly write a select query to retrieve User Name from USR03 table.

Best regards,

Prashant

Read only

Former Member
0 Likes
3,419

hii

there are some FM which can give you user details

ISR_GET_USER_DETAILS

USER_NAME_GET

or you can use select query on USR02, ADRP,ADRPS tables.

regards

twinkal

Read only

Former Member
0 Likes
3,419

hI,

Please try with this FM: ISR_GET_USER

Regards

jana

Read only

Former Member
0 Likes
3,419

Hi Archana,

After reading the thread. I have found this FM which gives user name by giving email.

UBC_USER_GET_BY_EMAIL