SAP BAPI_EMPPERSID_GETDETAIL Function Module for Read Personal-ID
BAPI_EMPPERSID_GETDETAIL is a standard bapi emppersid getdetail SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read Personal-ID processing and below is the pattern details for this FM, 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 bapi emppersid getdetail FM, simply by entering the name BAPI_EMPPERSID_GETDETAIL into the relevant SAP transaction such as SE37 or SE38.
Function Group: PPID
Program Name: SAPLPPID
Main Program:
Appliation area: P
Release date: 31-Jan-2000
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function BAPI_EMPPERSID_GETDETAIL 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 'BAPI_EMPPERSID_GETDETAIL'"Read Personal-ID.
EXPORTING
EMPLOYEENUMBER = "Personnel number
SUBTYPE = "Subtype
OBJECTID = "Object identification
LOCKINDICATOR = "Lock indicator for HR master record
VALIDITYBEGIN = "Valid from date
VALIDITYEND = "Valid to date
RECORDNUMBER = "Number of infotype record
MOLGA = "Country Grouping
IMPORTING
RETURN = "Structure for return code
IDISSUEDCOUNTRY = "Country of issue
IDCOUNTRY = "Country of ID
INDICATORCONSCHKOVERRIDE = "Indicator for overriding consistency check
APPLICATIONSTATUS = "Application status
SINGLEMULTIPLE = "Single/multiple
REJECTREASON = "Reject reason
USEDFROMDATE = "Used from -date
USEDTODATE = "Used to -date
LENGTHOFMULTIPLEVISA = "Valid length of multiple visa
TIMEUNITFORNEXTPAYMENT = "Time unit for determining next payment
ICTYPE = "Region
APPLICATIONDATE = "Application date
SUBTYPETEXT = "Name of subtype
ICNUMBER = "Telephone number
OLDICNUMBER = "Name of address type
ISSUINGAUTHORITY = "Name of region
DOCISSUENUMBER = "Document isuing number
PERSONALIDISSUEDT = "Country name
IDEXPIRYDATE = "ID expiry date
IDISSUEDPLACE = "Place of issue of Identification
IMPORTING Parameters details for BAPI_EMPPERSID_GETDETAIL
EMPLOYEENUMBER - Personnel number
Data type: BAPIP0185-EMPLOYEENOOptional: No
Call by Reference: No ( called with pass by value option)
SUBTYPE - Subtype
Data type: BAPIP0185-SUBTYPEOptional: No
Call by Reference: No ( called with pass by value option)
OBJECTID - Object identification
Data type: BAPIP0185-OBJECTIDOptional: No
Call by Reference: No ( called with pass by value option)
LOCKINDICATOR - Lock indicator for HR master record
Data type: BAPIP0185-LOCKINDICOptional: No
Call by Reference: No ( called with pass by value option)
VALIDITYBEGIN - Valid from date
Data type: BAPIP0185-VALIDBEGINOptional: No
Call by Reference: No ( called with pass by value option)
VALIDITYEND - Valid to date
Data type: BAPIP0185-VALIDENDOptional: No
Call by Reference: No ( called with pass by value option)
RECORDNUMBER - Number of infotype record
Data type: BAPIP0185-RECORDNROptional: No
Call by Reference: No ( called with pass by value option)
MOLGA - Country Grouping
Data type: BAPIP0185-MOLGAOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_EMPPERSID_GETDETAIL
RETURN - Structure for return code
Data type: BAPIRETURN1Optional: No
Call by Reference: No ( called with pass by value option)
IDISSUEDCOUNTRY - Country of issue
Data type: BAPIP0185-ISCOTOptional: No
Call by Reference: No ( called with pass by value option)
IDCOUNTRY - Country of ID
Data type: BAPIP0185-IDCOTOptional: No
Call by Reference: No ( called with pass by value option)
INDICATORCONSCHKOVERRIDE - Indicator for overriding consistency check
Data type: BAPIP0185-OVCHKOptional: No
Call by Reference: No ( called with pass by value option)
APPLICATIONSTATUS - Application status
Data type: BAPIP0185-ASTATOptional: No
Call by Reference: No ( called with pass by value option)
SINGLEMULTIPLE - Single/multiple
Data type: BAPIP0185-AKINDOptional: No
Call by Reference: No ( called with pass by value option)
REJECTREASON - Reject reason
Data type: BAPIP0185-REJECOptional: No
Call by Reference: No ( called with pass by value option)
USEDFROMDATE - Used from -date
Data type: BAPIP0185-USEFROptional: No
Call by Reference: No ( called with pass by value option)
USEDTODATE - Used to -date
Data type: BAPIP0185-USETOOptional: No
Call by Reference: No ( called with pass by value option)
LENGTHOFMULTIPLEVISA - Valid length of multiple visa
Data type: BAPIP0185-DATENOptional: No
Call by Reference: No ( called with pass by value option)
TIMEUNITFORNEXTPAYMENT - Time unit for determining next payment
Data type: BAPIP0185-DATEUOptional: No
Call by Reference: No ( called with pass by value option)
ICTYPE - Region
Data type: BAPIP0185-ICTYPOptional: No
Call by Reference: No ( called with pass by value option)
APPLICATIONDATE - Application date
Data type: BAPIP0185-TIMESOptional: No
Call by Reference: No ( called with pass by value option)
SUBTYPETEXT - Name of subtype
Data type: BAPIP0185-SUBTYPE_TEXTOptional: No
Call by Reference: No ( called with pass by value option)
ICNUMBER - Telephone number
Data type: BAPIP0185-ICNUMOptional: No
Call by Reference: No ( called with pass by value option)
OLDICNUMBER - Name of address type
Data type: BAPIP0185-ICOLDOptional: No
Call by Reference: No ( called with pass by value option)
ISSUINGAUTHORITY - Name of region
Data type: BAPIP0185-AUTH1Optional: No
Call by Reference: No ( called with pass by value option)
DOCISSUENUMBER - Document isuing number
Data type: BAPIP0185-DOCN1Optional: No
Call by Reference: No ( called with pass by value option)
PERSONALIDISSUEDT - Country name
Data type: BAPIP0185-FPDATOptional: No
Call by Reference: No ( called with pass by value option)
IDEXPIRYDATE - ID expiry date
Data type: BAPIP0185-EXPIDOptional: No
Call by Reference: No ( called with pass by value option)
IDISSUEDPLACE - Place of issue of Identification
Data type: BAPIP0185-ISSPLOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_EMPPERSID_GETDETAIL 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_return | TYPE BAPIRETURN1, " | |||
lv_employeenumber | TYPE BAPIP0185-EMPLOYEENO, " | |||
lv_idissuedcountry | TYPE BAPIP0185-ISCOT, " | |||
lv_idcountry | TYPE BAPIP0185-IDCOT, " | |||
lv_indicatorconschkoverride | TYPE BAPIP0185-OVCHK, " | |||
lv_applicationstatus | TYPE BAPIP0185-ASTAT, " | |||
lv_singlemultiple | TYPE BAPIP0185-AKIND, " | |||
lv_rejectreason | TYPE BAPIP0185-REJEC, " | |||
lv_usedfromdate | TYPE BAPIP0185-USEFR, " | |||
lv_usedtodate | TYPE BAPIP0185-USETO, " | |||
lv_lengthofmultiplevisa | TYPE BAPIP0185-DATEN, " | |||
lv_timeunitfornextpayment | TYPE BAPIP0185-DATEU, " | |||
lv_ictype | TYPE BAPIP0185-ICTYP, " | |||
lv_subtype | TYPE BAPIP0185-SUBTYPE, " | |||
lv_applicationdate | TYPE BAPIP0185-TIMES, " | |||
lv_subtypetext | TYPE BAPIP0185-SUBTYPE_TEXT, " | |||
lv_icnumber | TYPE BAPIP0185-ICNUM, " | |||
lv_objectid | TYPE BAPIP0185-OBJECTID, " | |||
lv_oldicnumber | TYPE BAPIP0185-ICOLD, " | |||
lv_lockindicator | TYPE BAPIP0185-LOCKINDIC, " | |||
lv_validitybegin | TYPE BAPIP0185-VALIDBEGIN, " | |||
lv_issuingauthority | TYPE BAPIP0185-AUTH1, " | |||
lv_validityend | TYPE BAPIP0185-VALIDEND, " | |||
lv_docissuenumber | TYPE BAPIP0185-DOCN1, " | |||
lv_recordnumber | TYPE BAPIP0185-RECORDNR, " | |||
lv_personalidissuedt | TYPE BAPIP0185-FPDAT, " | |||
lv_molga | TYPE BAPIP0185-MOLGA, " | |||
lv_idexpirydate | TYPE BAPIP0185-EXPID, " | |||
lv_idissuedplace | TYPE BAPIP0185-ISSPL. " |
  CALL FUNCTION 'BAPI_EMPPERSID_GETDETAIL' "Read Personal-ID |
EXPORTING | ||
EMPLOYEENUMBER | = lv_employeenumber | |
SUBTYPE | = lv_subtype | |
OBJECTID | = lv_objectid | |
LOCKINDICATOR | = lv_lockindicator | |
VALIDITYBEGIN | = lv_validitybegin | |
VALIDITYEND | = lv_validityend | |
RECORDNUMBER | = lv_recordnumber | |
MOLGA | = lv_molga | |
IMPORTING | ||
RETURN | = lv_return | |
IDISSUEDCOUNTRY | = lv_idissuedcountry | |
IDCOUNTRY | = lv_idcountry | |
INDICATORCONSCHKOVERRIDE | = lv_indicatorconschkoverride | |
APPLICATIONSTATUS | = lv_applicationstatus | |
SINGLEMULTIPLE | = lv_singlemultiple | |
REJECTREASON | = lv_rejectreason | |
USEDFROMDATE | = lv_usedfromdate | |
USEDTODATE | = lv_usedtodate | |
LENGTHOFMULTIPLEVISA | = lv_lengthofmultiplevisa | |
TIMEUNITFORNEXTPAYMENT | = lv_timeunitfornextpayment | |
ICTYPE | = lv_ictype | |
APPLICATIONDATE | = lv_applicationdate | |
SUBTYPETEXT | = lv_subtypetext | |
ICNUMBER | = lv_icnumber | |
OLDICNUMBER | = lv_oldicnumber | |
ISSUINGAUTHORITY | = lv_issuingauthority | |
DOCISSUENUMBER | = lv_docissuenumber | |
PERSONALIDISSUEDT | = lv_personalidissuedt | |
IDEXPIRYDATE | = lv_idexpirydate | |
IDISSUEDPLACE | = lv_idissuedplace | |
. " BAPI_EMPPERSID_GETDETAIL |
ABAP code using 7.40 inline data declarations to call FM BAPI_EMPPERSID_GETDETAIL
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 EMPLOYEENO FROM BAPIP0185 INTO @DATA(ld_employeenumber). | ||||
"SELECT single ISCOT FROM BAPIP0185 INTO @DATA(ld_idissuedcountry). | ||||
"SELECT single IDCOT FROM BAPIP0185 INTO @DATA(ld_idcountry). | ||||
"SELECT single OVCHK FROM BAPIP0185 INTO @DATA(ld_indicatorconschkoverride). | ||||
"SELECT single ASTAT FROM BAPIP0185 INTO @DATA(ld_applicationstatus). | ||||
"SELECT single AKIND FROM BAPIP0185 INTO @DATA(ld_singlemultiple). | ||||
"SELECT single REJEC FROM BAPIP0185 INTO @DATA(ld_rejectreason). | ||||
"SELECT single USEFR FROM BAPIP0185 INTO @DATA(ld_usedfromdate). | ||||
"SELECT single USETO FROM BAPIP0185 INTO @DATA(ld_usedtodate). | ||||
"SELECT single DATEN FROM BAPIP0185 INTO @DATA(ld_lengthofmultiplevisa). | ||||
"SELECT single DATEU FROM BAPIP0185 INTO @DATA(ld_timeunitfornextpayment). | ||||
"SELECT single ICTYP FROM BAPIP0185 INTO @DATA(ld_ictype). | ||||
"SELECT single SUBTYPE FROM BAPIP0185 INTO @DATA(ld_subtype). | ||||
"SELECT single TIMES FROM BAPIP0185 INTO @DATA(ld_applicationdate). | ||||
"SELECT single SUBTYPE_TEXT FROM BAPIP0185 INTO @DATA(ld_subtypetext). | ||||
"SELECT single ICNUM FROM BAPIP0185 INTO @DATA(ld_icnumber). | ||||
"SELECT single OBJECTID FROM BAPIP0185 INTO @DATA(ld_objectid). | ||||
"SELECT single ICOLD FROM BAPIP0185 INTO @DATA(ld_oldicnumber). | ||||
"SELECT single LOCKINDIC FROM BAPIP0185 INTO @DATA(ld_lockindicator). | ||||
"SELECT single VALIDBEGIN FROM BAPIP0185 INTO @DATA(ld_validitybegin). | ||||
"SELECT single AUTH1 FROM BAPIP0185 INTO @DATA(ld_issuingauthority). | ||||
"SELECT single VALIDEND FROM BAPIP0185 INTO @DATA(ld_validityend). | ||||
"SELECT single DOCN1 FROM BAPIP0185 INTO @DATA(ld_docissuenumber). | ||||
"SELECT single RECORDNR FROM BAPIP0185 INTO @DATA(ld_recordnumber). | ||||
"SELECT single FPDAT FROM BAPIP0185 INTO @DATA(ld_personalidissuedt). | ||||
"SELECT single MOLGA FROM BAPIP0185 INTO @DATA(ld_molga). | ||||
"SELECT single EXPID FROM BAPIP0185 INTO @DATA(ld_idexpirydate). | ||||
"SELECT single ISSPL FROM BAPIP0185 INTO @DATA(ld_idissuedplace). | ||||
Search for further information about these or an SAP related objects