SAP IDENTITY_RETRIEVE Function Module for









IDENTITY_RETRIEVE is a standard identity retrieve SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for identity retrieve FM, simply by entering the name IDENTITY_RETRIEVE into the relevant SAP transaction such as SE37 or SE38.

Function Group: SU_IDM
Program Name: SAPLSU_IDM
Main Program: SAPLSU_IDM
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled + BasXML supported
Update:



Function IDENTITY_RETRIEVE pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'IDENTITY_RETRIEVE'"
EXPORTING
USERNAME = "
* CACHE_RESULTS = 'X' "
* IT_FILTER = "

IMPORTING
LOGONDATA = "
ISLOCKED = "
ADDITIONAL_ATTRIBUTES = "
IDENTITY = "
ADMINDATA = "
DEFAULTS = "
ADDRESS = "
COMPANY = "
SNC = "
REF_USER = "
ALIAS = "
UCLASS = "
LASTMODIFIED = "

TABLES
* PARAMETER = "
* ADDRML = "
* ADDX400 = "
* ADDRFC = "
* ADDPRT = "
* ADDSSF = "
* ADDURI = "
* ADDPAG = "
* ADDCOMREM = "
* PARAMETER1 = "
* GROUPS = "
* PROFILES = "
* UCLASSSYS = "
* EXTIDHEAD = "
* EXTIDPART = "
* SYSTEMS = "
* ACTIVITYGROUPS = "
RETURN = "
* ADDTEL = "
* ADDFAX = "
* ADDTTX = "
* ADDTLX = "
* ADDSMTP = "
.



IMPORTING Parameters details for IDENTITY_RETRIEVE

USERNAME -

Data type: BAPIBNAME-BAPIBNAME
Optional: No
Call by Reference: No ( called with pass by value option)

CACHE_RESULTS -

Data type: FLAG_X
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_FILTER -

Data type: SIM_TT_BADI_APPL
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for IDENTITY_RETRIEVE

LOGONDATA -

Data type: BAPILOGOND
Optional: No
Call by Reference: No ( called with pass by value option)

ISLOCKED -

Data type: BAPISLOCKD
Optional: No
Call by Reference: No ( called with pass by value option)

ADDITIONAL_ATTRIBUTES -

Data type: SIM_TT_ADDITIONAL_ATTRIBUTES
Optional: No
Call by Reference: No ( called with pass by value option)

IDENTITY -

Data type: BAPIIDENTITY
Optional: No
Call by Reference: No ( called with pass by value option)

ADMINDATA -

Data type: BAPIUSERADMIN
Optional: No
Call by Reference: No ( called with pass by value option)

DEFAULTS -

Data type: BAPIDEFAUL
Optional: No
Call by Reference: No ( called with pass by value option)

ADDRESS -

Data type: BAPIADDR3
Optional: No
Call by Reference: No ( called with pass by value option)

COMPANY -

Data type: BAPIUSCOMP
Optional: No
Call by Reference: No ( called with pass by value option)

SNC -

Data type: BAPISNCU
Optional: No
Call by Reference: No ( called with pass by value option)

REF_USER -

Data type: BAPIREFUS
Optional: No
Call by Reference: No ( called with pass by value option)

ALIAS -

Data type: BAPIALIAS
Optional: No
Call by Reference: No ( called with pass by value option)

UCLASS -

Data type: BAPIUCLASS
Optional: No
Call by Reference: No ( called with pass by value option)

LASTMODIFIED -

Data type: BAPIMODDAT
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for IDENTITY_RETRIEVE

PARAMETER -

Data type: BAPIPARAM
Optional: Yes
Call by Reference: Yes

ADDRML -

Data type: BAPIADRML
Optional: Yes
Call by Reference: Yes

ADDX400 -

Data type: BAPIADX400
Optional: Yes
Call by Reference: Yes

ADDRFC -

Data type: BAPIADRFC
Optional: Yes
Call by Reference: Yes

ADDPRT -

Data type: BAPIADPRT
Optional: Yes
Call by Reference: Yes

ADDSSF -

Data type: BAPIADSSF
Optional: Yes
Call by Reference: Yes

ADDURI -

Data type: BAPIADURI
Optional: Yes
Call by Reference: Yes

ADDPAG -

Data type: BAPIADPAG
Optional: Yes
Call by Reference: Yes

ADDCOMREM -

Data type: BAPICOMREM
Optional: Yes
Call by Reference: Yes

PARAMETER1 -

Data type: BAPIPARAM1
Optional: Yes
Call by Reference: Yes

GROUPS -

Data type: BAPIGROUPS
Optional: Yes
Call by Reference: Yes

PROFILES -

Data type: BAPIPROF
Optional: Yes
Call by Reference: Yes

UCLASSSYS -

Data type: BAPIUCLASSSYS
Optional: Yes
Call by Reference: Yes

EXTIDHEAD -

Data type: BAPIUSEXTIDHEAD
Optional: Yes
Call by Reference: Yes

EXTIDPART -

Data type: BAPIUSEXTIDPART
Optional: Yes
Call by Reference: Yes

SYSTEMS -

Data type: BAPIRCVSYS
Optional: Yes
Call by Reference: Yes

ACTIVITYGROUPS -

Data type: BAPIAGR
Optional: Yes
Call by Reference: Yes

RETURN -

Data type: BAPIRET2
Optional: No
Call by Reference: Yes

ADDTEL -

Data type: BAPIADTEL
Optional: Yes
Call by Reference: Yes

ADDFAX -

Data type: BAPIADFAX
Optional: Yes
Call by Reference: Yes

ADDTTX -

Data type: BAPIADTTX
Optional: Yes
Call by Reference: Yes

ADDTLX -

Data type: BAPIADTLX
Optional: Yes
Call by Reference: Yes

ADDSMTP -

Data type: BAPIADSMTP
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for IDENTITY_RETRIEVE Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_username  TYPE BAPIBNAME-BAPIBNAME, "   
lv_logondata  TYPE BAPILOGOND, "   
lt_parameter  TYPE STANDARD TABLE OF BAPIPARAM, "   
lt_addrml  TYPE STANDARD TABLE OF BAPIADRML, "   
lv_islocked  TYPE BAPISLOCKD, "   
lt_addx400  TYPE STANDARD TABLE OF BAPIADX400, "   
lv_additional_attributes  TYPE SIM_TT_ADDITIONAL_ATTRIBUTES, "   
lt_addrfc  TYPE STANDARD TABLE OF BAPIADRFC, "   
lv_identity  TYPE BAPIIDENTITY, "   
lt_addprt  TYPE STANDARD TABLE OF BAPIADPRT, "   
lv_admindata  TYPE BAPIUSERADMIN, "   
lt_addssf  TYPE STANDARD TABLE OF BAPIADSSF, "   
lt_adduri  TYPE STANDARD TABLE OF BAPIADURI, "   
lt_addpag  TYPE STANDARD TABLE OF BAPIADPAG, "   
lt_addcomrem  TYPE STANDARD TABLE OF BAPICOMREM, "   
lt_parameter1  TYPE STANDARD TABLE OF BAPIPARAM1, "   
lt_groups  TYPE STANDARD TABLE OF BAPIGROUPS, "   
lv_defaults  TYPE BAPIDEFAUL, "   
lt_profiles  TYPE STANDARD TABLE OF BAPIPROF, "   
lv_cache_results  TYPE FLAG_X, "   'X'
lt_uclasssys  TYPE STANDARD TABLE OF BAPIUCLASSSYS, "   
lt_extidhead  TYPE STANDARD TABLE OF BAPIUSEXTIDHEAD, "   
lt_extidpart  TYPE STANDARD TABLE OF BAPIUSEXTIDPART, "   
lt_systems  TYPE STANDARD TABLE OF BAPIRCVSYS, "   
lv_address  TYPE BAPIADDR3, "   
lv_it_filter  TYPE SIM_TT_BADI_APPL, "   
lt_activitygroups  TYPE STANDARD TABLE OF BAPIAGR, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_company  TYPE BAPIUSCOMP, "   
lv_snc  TYPE BAPISNCU, "   
lt_addtel  TYPE STANDARD TABLE OF BAPIADTEL, "   
lt_addfax  TYPE STANDARD TABLE OF BAPIADFAX, "   
lv_ref_user  TYPE BAPIREFUS, "   
lv_alias  TYPE BAPIALIAS, "   
lt_addttx  TYPE STANDARD TABLE OF BAPIADTTX, "   
lt_addtlx  TYPE STANDARD TABLE OF BAPIADTLX, "   
lv_uclass  TYPE BAPIUCLASS, "   
lt_addsmtp  TYPE STANDARD TABLE OF BAPIADSMTP, "   
lv_lastmodified  TYPE BAPIMODDAT. "   

  CALL FUNCTION 'IDENTITY_RETRIEVE'  "
    EXPORTING
         USERNAME = lv_username
         CACHE_RESULTS = lv_cache_results
         IT_FILTER = lv_it_filter
    IMPORTING
         LOGONDATA = lv_logondata
         ISLOCKED = lv_islocked
         ADDITIONAL_ATTRIBUTES = lv_additional_attributes
         IDENTITY = lv_identity
         ADMINDATA = lv_admindata
         DEFAULTS = lv_defaults
         ADDRESS = lv_address
         COMPANY = lv_company
         SNC = lv_snc
         REF_USER = lv_ref_user
         ALIAS = lv_alias
         UCLASS = lv_uclass
         LASTMODIFIED = lv_lastmodified
    TABLES
         PARAMETER = lt_parameter
         ADDRML = lt_addrml
         ADDX400 = lt_addx400
         ADDRFC = lt_addrfc
         ADDPRT = lt_addprt
         ADDSSF = lt_addssf
         ADDURI = lt_adduri
         ADDPAG = lt_addpag
         ADDCOMREM = lt_addcomrem
         PARAMETER1 = lt_parameter1
         GROUPS = lt_groups
         PROFILES = lt_profiles
         UCLASSSYS = lt_uclasssys
         EXTIDHEAD = lt_extidhead
         EXTIDPART = lt_extidpart
         SYSTEMS = lt_systems
         ACTIVITYGROUPS = lt_activitygroups
         RETURN = lt_return
         ADDTEL = lt_addtel
         ADDFAX = lt_addfax
         ADDTTX = lt_addttx
         ADDTLX = lt_addtlx
         ADDSMTP = lt_addsmtp
. " IDENTITY_RETRIEVE




ABAP code using 7.40 inline data declarations to call FM IDENTITY_RETRIEVE

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single BAPIBNAME FROM BAPIBNAME INTO @DATA(ld_username).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_cache_results) = 'X'.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!