SAP BAPI_EMPPERSID_REQUEST Function Module for Create Personal-ID









BAPI_EMPPERSID_REQUEST is a standard bapi emppersid request SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create 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 request FM, simply by entering the name BAPI_EMPPERSID_REQUEST 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_REQUEST 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_REQUEST'"Create  Personal-ID
EXPORTING
INEMPLOYEENUMBER = "Personnel number
* IDEXPIRYDATE = "ID expiry date
* IDISSUEDPLACE = "Place of issue of Identification
* 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
INVALIDITYBEGIN = "Valid from date
* LENGTHOFMULTIPLEVISA = "Valid length of multiple visa
* TIMEUNITFORNEXTPAYMENT = "Time unit for determining next payment
* APPLICATIONDATE = "Application date
* NOCOMMIT = "COMMIT control at BAPI interface
INVALIDITYEND = "Valid to date
* ICTYPE = "Type of identification (IC type)
* ICNUMBER = "Identity Number
* OLDICNUMBER = "Old IC number
* ISSUINGAUTHORITY = "Issuing authority
* DOCISSUENUMBER = "Document isuing number
* PERSONALIDISSUEDT = "Date of issue for personal ID

IMPORTING
RETURN = "Structure for return code
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
.



IMPORTING Parameters details for BAPI_EMPPERSID_REQUEST

INEMPLOYEENUMBER - Personnel number

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

IDEXPIRYDATE - ID expiry date

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

IDISSUEDPLACE - Place of issue of Identification

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

IDISSUEDCOUNTRY - Country of issue

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

IDCOUNTRY - Country of ID

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

INDICATORCONSCHKOVERRIDE - Indicator for overriding consistency check

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

APPLICATIONSTATUS - Application status

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

SINGLEMULTIPLE - Single/multiple

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

REJECTREASON - Reject reason

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

USEDFROMDATE - Used from -date

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

USEDTODATE - Used to -date

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

INVALIDITYBEGIN - Valid from date

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

LENGTHOFMULTIPLEVISA - Valid length of multiple visa

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

TIMEUNITFORNEXTPAYMENT - Time unit for determining next payment

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

APPLICATIONDATE - Application date

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

NOCOMMIT - COMMIT control at BAPI interface

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

INVALIDITYEND - Valid to date

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

ICTYPE - Type of identification (IC type)

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

ICNUMBER - Identity Number

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

OLDICNUMBER - Old IC number

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

ISSUINGAUTHORITY - Issuing authority

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

DOCISSUENUMBER - Document isuing number

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

PERSONALIDISSUEDT - Date of issue for personal ID

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

EXPORTING Parameters details for BAPI_EMPPERSID_REQUEST

RETURN - Structure for return code

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

EMPLOYEENUMBER - Personnel Number

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

SUBTYPE - Subtype

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

OBJECTID - Object identification

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

LOCKINDICATOR - Lock indicator for HR master record

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

VALIDITYBEGIN - Valid from date

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

VALIDITYEND - Valid to date

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

RECORDNUMBER - Number of infotype record

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

Copy and paste ABAP code example for BAPI_EMPPERSID_REQUEST 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_inemployeenumber  TYPE BAPIP0185-EMPLOYEENO, "   
lv_idexpirydate  TYPE BAPIP0185-EXPID, "   
lv_idissuedplace  TYPE BAPIP0185-ISSPL, "   
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_employeenumber  TYPE BAPIP0185-EMPLOYEENO, "   
lv_invaliditybegin  TYPE BAPIP0185-VALIDBEGIN, "   
lv_lengthofmultiplevisa  TYPE BAPIP0185-DATEN, "   
lv_timeunitfornextpayment  TYPE BAPIP0185-DATEU, "   
lv_applicationdate  TYPE BAPIP0185-TIMES, "   
lv_nocommit  TYPE BAPI_STAND-NO_COMMIT, "   
lv_subtype  TYPE BAPIP0185-SUBTYPE, "   
lv_invalidityend  TYPE BAPIP0185-VALIDEND, "   
lv_ictype  TYPE BAPIP0185-ICTYP, "   
lv_objectid  TYPE BAPIP0185-OBJECTID, "   
lv_icnumber  TYPE BAPIP0185-ICNUM, "   
lv_lockindicator  TYPE BAPIP0185-LOCKINDIC, "   
lv_oldicnumber  TYPE BAPIP0185-ICOLD, "   
lv_validitybegin  TYPE BAPIP0185-VALIDBEGIN, "   
lv_validityend  TYPE BAPIP0185-VALIDEND, "   
lv_issuingauthority  TYPE BAPIP0185-AUTH1, "   
lv_recordnumber  TYPE BAPIP0185-RECORDNR, "   
lv_docissuenumber  TYPE BAPIP0185-DOCN1, "   
lv_personalidissuedt  TYPE BAPIP0185-FPDAT. "   

  CALL FUNCTION 'BAPI_EMPPERSID_REQUEST'  "Create Personal-ID
    EXPORTING
         INEMPLOYEENUMBER = lv_inemployeenumber
         IDEXPIRYDATE = lv_idexpirydate
         IDISSUEDPLACE = lv_idissuedplace
         IDISSUEDCOUNTRY = lv_idissuedcountry
         IDCOUNTRY = lv_idcountry
         INDICATORCONSCHKOVERRIDE = lv_indicatorconschkoverride
         APPLICATIONSTATUS = lv_applicationstatus
         SINGLEMULTIPLE = lv_singlemultiple
         REJECTREASON = lv_rejectreason
         USEDFROMDATE = lv_usedfromdate
         USEDTODATE = lv_usedtodate
         INVALIDITYBEGIN = lv_invaliditybegin
         LENGTHOFMULTIPLEVISA = lv_lengthofmultiplevisa
         TIMEUNITFORNEXTPAYMENT = lv_timeunitfornextpayment
         APPLICATIONDATE = lv_applicationdate
         NOCOMMIT = lv_nocommit
         INVALIDITYEND = lv_invalidityend
         ICTYPE = lv_ictype
         ICNUMBER = lv_icnumber
         OLDICNUMBER = lv_oldicnumber
         ISSUINGAUTHORITY = lv_issuingauthority
         DOCISSUENUMBER = lv_docissuenumber
         PERSONALIDISSUEDT = lv_personalidissuedt
    IMPORTING
         RETURN = lv_return
         EMPLOYEENUMBER = lv_employeenumber
         SUBTYPE = lv_subtype
         OBJECTID = lv_objectid
         LOCKINDICATOR = lv_lockindicator
         VALIDITYBEGIN = lv_validitybegin
         VALIDITYEND = lv_validityend
         RECORDNUMBER = lv_recordnumber
. " BAPI_EMPPERSID_REQUEST




ABAP code using 7.40 inline data declarations to call FM BAPI_EMPPERSID_REQUEST

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_inemployeenumber).
 
"SELECT single EXPID FROM BAPIP0185 INTO @DATA(ld_idexpirydate).
 
"SELECT single ISSPL FROM BAPIP0185 INTO @DATA(ld_idissuedplace).
 
"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 EMPLOYEENO FROM BAPIP0185 INTO @DATA(ld_employeenumber).
 
"SELECT single VALIDBEGIN FROM BAPIP0185 INTO @DATA(ld_invaliditybegin).
 
"SELECT single DATEN FROM BAPIP0185 INTO @DATA(ld_lengthofmultiplevisa).
 
"SELECT single DATEU FROM BAPIP0185 INTO @DATA(ld_timeunitfornextpayment).
 
"SELECT single TIMES FROM BAPIP0185 INTO @DATA(ld_applicationdate).
 
"SELECT single NO_COMMIT FROM BAPI_STAND INTO @DATA(ld_nocommit).
 
"SELECT single SUBTYPE FROM BAPIP0185 INTO @DATA(ld_subtype).
 
"SELECT single VALIDEND FROM BAPIP0185 INTO @DATA(ld_invalidityend).
 
"SELECT single ICTYP FROM BAPIP0185 INTO @DATA(ld_ictype).
 
"SELECT single OBJECTID FROM BAPIP0185 INTO @DATA(ld_objectid).
 
"SELECT single ICNUM FROM BAPIP0185 INTO @DATA(ld_icnumber).
 
"SELECT single LOCKINDIC FROM BAPIP0185 INTO @DATA(ld_lockindicator).
 
"SELECT single ICOLD FROM BAPIP0185 INTO @DATA(ld_oldicnumber).
 
"SELECT single VALIDBEGIN FROM BAPIP0185 INTO @DATA(ld_validitybegin).
 
"SELECT single VALIDEND FROM BAPIP0185 INTO @DATA(ld_validityend).
 
"SELECT single AUTH1 FROM BAPIP0185 INTO @DATA(ld_issuingauthority).
 
"SELECT single RECORDNR FROM BAPIP0185 INTO @DATA(ld_recordnumber).
 
"SELECT single DOCN1 FROM BAPIP0185 INTO @DATA(ld_docissuenumber).
 
"SELECT single FPDAT FROM BAPIP0185 INTO @DATA(ld_personalidissuedt).
 


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!