SAP Function Modules

BAPI_EMPTAXPL_SIMULATECREATN SAP Function module - Simulation: Create personal data







BAPI_EMPTAXPL_SIMULATECREATN 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_EMPTAXPL_SIMULATECREATN into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: PTAX_PL
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BAPI_EMPTAXPL_SIMULATECREATN - BAPI EMPTAXPL SIMULATECREATN





CALL FUNCTION 'BAPI_EMPTAXPL_SIMULATECREATN' "Simulation: Create personal data
* EXPORTING
*   toidn =                     " bapip0413-toidn
*   costr =                     " bapip0413-costr
*   contr =                     " bapip0413-contr
*   dnind =                     " bapip0413-dnind
*   nocommit =                  " bapi_stand-no_commit
  IMPORTING
    return =                    " bapireturn1
    employeenumber =            " bapip0413-pernr
    subtype =                   " bapip0413-subty
    objectid =                  " bapip0413-objps
    lockindicator =             " bapip0413-sprps
    validitybegin =             " bapip0413-begda
    validityend =               " bapip0413-endda
    recordnumber =              " bapip0413-seqnr
    .  "  BAPI_EMPTAXPL_SIMULATECREATN

ABAP code example for Function Module BAPI_EMPTAXPL_SIMULATECREATN





The ABAP code below is a full code listing to execute function module BAPI_EMPTAXPL_SIMULATECREATN 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 BAPIP0413-PERNR ,
ld_subtype  TYPE BAPIP0413-SUBTY ,
ld_objectid  TYPE BAPIP0413-OBJPS ,
ld_lockindicator  TYPE BAPIP0413-SPRPS ,
ld_validitybegin  TYPE BAPIP0413-BEGDA ,
ld_validityend  TYPE BAPIP0413-ENDDA ,
ld_recordnumber  TYPE BAPIP0413-SEQNR .


DATA(ld_toidn) = some text here

DATA(ld_costr) = some text here

DATA(ld_contr) = some text here

DATA(ld_dnind) = some text here

DATA(ld_nocommit) = some text here . CALL FUNCTION 'BAPI_EMPTAXPL_SIMULATECREATN' * EXPORTING * toidn = ld_toidn * costr = ld_costr * contr = ld_contr * dnind = ld_dnind * 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_EMPTAXPL_SIMULATECREATN
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_employeenumber  TYPE BAPIP0413-PERNR ,
ld_subtype  TYPE BAPIP0413-SUBTY ,
ld_objectid  TYPE BAPIP0413-OBJPS ,
ld_toidn  TYPE BAPIP0413-TOIDN ,
ld_lockindicator  TYPE BAPIP0413-SPRPS ,
ld_costr  TYPE BAPIP0413-COSTR ,
ld_validitybegin  TYPE BAPIP0413-BEGDA ,
ld_contr  TYPE BAPIP0413-CONTR ,
ld_validityend  TYPE BAPIP0413-ENDDA ,
ld_dnind  TYPE BAPIP0413-DNIND ,
ld_recordnumber  TYPE BAPIP0413-SEQNR ,
ld_nocommit  TYPE BAPI_STAND-NO_COMMIT .


ld_toidn = some text here

ld_costr = some text here

ld_contr = some text here

ld_dnind = some text here

ld_nocommit = some text here

SAP Documentation for FM BAPI_EMPTAXPL_SIMULATECREATN


You can use this method to simulate creation of a Personal Data record (0002). ...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_EMPTAXPL_SIMULATECREATN or its description.