BAPI_EMPPERSID_CREATE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name BAPI_EMPPERSID_CREATE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
PPID
Released Date:
31.01.2000
Processing type: Remote-Enabled
CALL FUNCTION 'BAPI_EMPPERSID_CREATE' "Create Personal-ID
EXPORTING
inemployeenumber = " bapip0185-employeeno Personnel number
invaliditybegin = " bapip0185-validbegin Valid from date
invalidityend = " bapip0185-validend Valid to date
* ictype = " bapip0185-ictyp Type of identification (IC type)
* icnumber = " bapip0185-icnum Identity Number
* oldicnumber = " bapip0185-icold Old IC number
* issuingauthority = " bapip0185-auth1 Issuing authority
* docissuenumber = " bapip0185-docn1 Document isuing number
* personalidissuedt = " bapip0185-fpdat Date of issue for personal ID
* idexpirydate = " bapip0185-expid ID expiry date
* idissuedplace = " bapip0185-isspl Place of issue of Identification
* idissuedcountry = " bapip0185-iscot Country of issue
* idcountry = " bapip0185-idcot Country of ID
* indicatorconschkoverride = " bapip0185-ovchk Indicator for overriding consistency check
* applicationstatus = " bapip0185-astat Application status
* singlemultiple = " bapip0185-akind Single/multiple
* rejectreason = " bapip0185-rejec Reject reason
* usedfromdate = " bapip0185-usefr Used from -date
* usedtodate = " bapip0185-useto Used to -date
* lengthofmultiplevisa = " bapip0185-daten Valid length of multiple visa
* timeunitfornextpayment = " bapip0185-dateu Time unit for determining next payment
* applicationdate = " bapip0185-times Application date
* nocommit = " bapi_stand-no_commit COMMIT control at BAPI interface
IMPORTING
return = " bapireturn1 Structure for return code
employeenumber = " bapip0185-employeeno Personnel number
subtype = " bapip0185-subtype Subtype
objectid = " bapip0185-objectid Object identification
lockindicator = " bapip0185-lockindic Lock indicator for HR master record
validitybegin = " bapip0185-validbegin Valid from date
validityend = " bapip0185-validend Valid to date
recordnumber = " bapip0185-recordnr Number of infotype record
. " BAPI_EMPPERSID_CREATE
The ABAP code below is a full code listing to execute function module BAPI_EMPPERSID_CREATE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_return | TYPE BAPIRETURN1 , |
| ld_employeenumber | TYPE BAPIP0185-EMPLOYEENO , |
| ld_subtype | TYPE BAPIP0185-SUBTYPE , |
| ld_objectid | TYPE BAPIP0185-OBJECTID , |
| ld_lockindicator | TYPE BAPIP0185-LOCKINDIC , |
| ld_validitybegin | TYPE BAPIP0185-VALIDBEGIN , |
| ld_validityend | TYPE BAPIP0185-VALIDEND , |
| ld_recordnumber | TYPE BAPIP0185-RECORDNR . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_return | TYPE BAPIRETURN1 , |
| ld_inemployeenumber | TYPE BAPIP0185-EMPLOYEENO , |
| ld_employeenumber | TYPE BAPIP0185-EMPLOYEENO , |
| ld_invaliditybegin | TYPE BAPIP0185-VALIDBEGIN , |
| ld_subtype | TYPE BAPIP0185-SUBTYPE , |
| ld_invalidityend | TYPE BAPIP0185-VALIDEND , |
| ld_objectid | TYPE BAPIP0185-OBJECTID , |
| ld_ictype | TYPE BAPIP0185-ICTYP , |
| ld_lockindicator | TYPE BAPIP0185-LOCKINDIC , |
| ld_icnumber | TYPE BAPIP0185-ICNUM , |
| ld_validitybegin | TYPE BAPIP0185-VALIDBEGIN , |
| ld_oldicnumber | TYPE BAPIP0185-ICOLD , |
| ld_validityend | TYPE BAPIP0185-VALIDEND , |
| ld_issuingauthority | TYPE BAPIP0185-AUTH1 , |
| ld_docissuenumber | TYPE BAPIP0185-DOCN1 , |
| ld_recordnumber | TYPE BAPIP0185-RECORDNR , |
| ld_personalidissuedt | TYPE BAPIP0185-FPDAT , |
| ld_idexpirydate | TYPE BAPIP0185-EXPID , |
| ld_idissuedplace | TYPE BAPIP0185-ISSPL , |
| ld_idissuedcountry | TYPE BAPIP0185-ISCOT , |
| ld_idcountry | TYPE BAPIP0185-IDCOT , |
| ld_indicatorconschkoverride | TYPE BAPIP0185-OVCHK , |
| ld_applicationstatus | TYPE BAPIP0185-ASTAT , |
| ld_singlemultiple | TYPE BAPIP0185-AKIND , |
| ld_rejectreason | TYPE BAPIP0185-REJEC , |
| ld_usedfromdate | TYPE BAPIP0185-USEFR , |
| ld_usedtodate | TYPE BAPIP0185-USETO , |
| ld_lengthofmultiplevisa | TYPE BAPIP0185-DATEN , |
| ld_timeunitfornextpayment | TYPE BAPIP0185-DATEU , |
| ld_applicationdate | TYPE BAPIP0185-TIMES , |
| ld_nocommit | TYPE BAPI_STAND-NO_COMMIT . |
You can use this method to create a
HINTS
...See here for full SAP fm documentation
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BAPI_EMPPERSID_CREATE or its description.
BAPI_EMPPERSID_CREATE - Create Personal-ID BAPI_EMPPERSID_CHANGE - Change Personal-ID BAPI_EMPPERSID_APPROVE - Unlock Personal-ID details BAPI_EMPLOYEE_INITPASSWORD - Initialize employee password BAPI_EMPLOYEE_GET_PW_REG - Read entry for employee password BAPI_EMPLOYEE_GETLIST - Find Employees and Their Information on Basis of Search Criteria