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: 

Function module to get user name from full name.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member223537
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

hI,

Please try with this FM: ISR_GET_USER

Regards

jana

former_member217722
Participant
0 Kudos

Hi Archana,

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

UBC_USER_GET_BY_EMAIL