SAP Function Modules

BAPI_EMPPERSID_CREATE SAP Function module - Create Personal-ID







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
remote enabled module settings


Pattern for FM BAPI_EMPPERSID_CREATE - BAPI EMPPERSID CREATE





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

ABAP code example for Function Module 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).

DATA:
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 .


DATA(ld_inemployeenumber) = Check type of data required

DATA(ld_invaliditybegin) = 20210129

DATA(ld_invalidityend) = 20210129

DATA(ld_ictype) = some text here

DATA(ld_icnumber) = some text here

DATA(ld_oldicnumber) = some text here

DATA(ld_issuingauthority) = some text here

DATA(ld_docissuenumber) = some text here

DATA(ld_personalidissuedt) = 20210129

DATA(ld_idexpirydate) = 20210129

DATA(ld_idissuedplace) = some text here

DATA(ld_idissuedcountry) = some text here

DATA(ld_idcountry) = some text here

DATA(ld_indicatorconschkoverride) = some text here

DATA(ld_applicationstatus) = some text here

DATA(ld_singlemultiple) = some text here

DATA(ld_rejectreason) = some text here

DATA(ld_usedfromdate) = 20210129

DATA(ld_usedtodate) = 20210129

DATA(ld_lengthofmultiplevisa) = Check type of data required

DATA(ld_timeunitfornextpayment) = some text here

DATA(ld_applicationdate) = 20210129

DATA(ld_nocommit) = some text here . CALL FUNCTION 'BAPI_EMPPERSID_CREATE' EXPORTING inemployeenumber = ld_inemployeenumber invaliditybegin = ld_invaliditybegin invalidityend = ld_invalidityend * ictype = ld_ictype * icnumber = ld_icnumber * oldicnumber = ld_oldicnumber * issuingauthority = ld_issuingauthority * docissuenumber = ld_docissuenumber * personalidissuedt = ld_personalidissuedt * idexpirydate = ld_idexpirydate * idissuedplace = ld_idissuedplace * idissuedcountry = ld_idissuedcountry * idcountry = ld_idcountry * indicatorconschkoverride = ld_indicatorconschkoverride * applicationstatus = ld_applicationstatus * singlemultiple = ld_singlemultiple * rejectreason = ld_rejectreason * usedfromdate = ld_usedfromdate * usedtodate = ld_usedtodate * lengthofmultiplevisa = ld_lengthofmultiplevisa * timeunitfornextpayment = ld_timeunitfornextpayment * applicationdate = ld_applicationdate * nocommit = ld_nocommit IMPORTING return = ld_return employeenumber = ld_employeenumber subtype = ld_subtype objectid = ld_objectid lockindicator = ld_lockindicator validitybegin = ld_validitybegin validityend = ld_validityend recordnumber = ld_recordnumber . " BAPI_EMPPERSID_CREATE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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 .


ld_inemployeenumber = Check type of data required

ld_invaliditybegin = 20210129

ld_invalidityend = 20210129

ld_ictype = some text here

ld_icnumber = some text here

ld_oldicnumber = some text here

ld_issuingauthority = some text here

ld_docissuenumber = some text here

ld_personalidissuedt = 20210129

ld_idexpirydate = 20210129

ld_idissuedplace = some text here

ld_idissuedcountry = some text here

ld_idcountry = some text here

ld_indicatorconschkoverride = some text here

ld_applicationstatus = some text here

ld_singlemultiple = some text here

ld_rejectreason = some text here

ld_usedfromdate = 20210129

ld_usedtodate = 20210129

ld_lengthofmultiplevisa = Check type of data required

ld_timeunitfornextpayment = some text here

ld_applicationdate = 20210129

ld_nocommit = some text here

SAP Documentation for FM BAPI_EMPPERSID_CREATE


You can use this method to create a Personal-ID record (0185).

HINTS ...See here for full SAP fm documentation






Contribute (Add Comments)

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.