Ansicht
Dokumentation

/VIRSA/USER_AUTHENTICATION - Sap User Authentication

/VIRSA/USER_AUTHENTICATION - Sap User Authentication

Fill RESBD Structure from EBP Component Structure   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this BAPI to verify a users Logon Credentials and to retrieve certain information about the user. Once a users logon credentials are verified, you will get data like Users First & Last name, Personnel number, Personal Area, Job, Org.Unit, Position, Secure & Unsecure Telephone Number, Personal Area Description etc. All the HR related data is returned in output table validuserdata_hr where as other data is returned in validuserdata. Also data related to users default output devices is returned in printerdata.

Depending on the flagid value, the values provided for userid and password changes. Also the output data changes depending on the flagid. Brief description of various flagids

,,SP,,-,,SAP UserId & Password for userid and password input parameters

,,S0,,-,,Only SAP UserId for Userid input parameter

,,B0,,-,,SAP UserId & SSN

,,BX,,-,,Only SAP UserId

,,PO,,-,,Personal Number & SSN

,,PX,,-,,Only Personal Number

Example

You want to verify user 'XTESTER' logon Credentials.
flagid = 'B0'
username = 'XTESTER'.
password = '987654321',
call function '/VIRSA/USER_AUTHENTICATION'
,,exporting
,,,,flagid = flagid
,,,,userid = username
,,,,password = password
,,importing
,,,,return = return
,,tables
,,,,validuserdata = validuserdata
,,,,printerdata = printerdata
,,,,validuserdata_hr = validuserdata_hr.

Notes

Further information





Parameters

FLAGID
PASSWORD
PATHID
PRINTERDATA
RETURN
TBL_COMM_METHOD
TBL_USER_SNC
USERID
VALIDUSERDATA
VALIDUSERDATA_HR

Exceptions

Function Group

SA/SAPLAEAHHR

CPI1466 during Backup   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 2496 Date: 20240420 Time: 183104     sap01-206 ( 37 ms )