SAP Function Modules

BAPI_PERSDATAPL_DELIMIT SAP Function module - Delimit personal data validity period







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

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


Pattern for FM BAPI_PERSDATAPL_DELIMIT - BAPI PERSDATAPL DELIMIT





CALL FUNCTION 'BAPI_PERSDATAPL_DELIMIT' "Delimit personal data validity period
  EXPORTING
    employeenumber =            " bapip0002-pernr
    subtype =                   " bapip0002-subty
    objectid =                  " bapip0002-objps
    lockindicator =             " bapip0002-sprps
    validitybegin =             " bapip0002-begda
    validityend =               " bapip0002-endda
    recordnumber =              " bapip0002-seqnr
    delimit_date =              " bapip0002-delimit_date  Delimitation Date
*   nocommit =                  " bapi_stand-no_commit  COMMIT control at BAPI interface
  IMPORTING
    return =                    " bapireturn1   Structure for Return Code
    personaldatakey =           " bapipakey     Personnel number
    .  "  BAPI_PERSDATAPL_DELIMIT

ABAP code example for Function Module BAPI_PERSDATAPL_DELIMIT





The ABAP code below is a full code listing to execute function module BAPI_PERSDATAPL_DELIMIT 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_personaldatakey  TYPE BAPIPAKEY .


DATA(ld_employeenumber) = Check type of data required

DATA(ld_subtype) = some text here

DATA(ld_objectid) = some text here

DATA(ld_lockindicator) = some text here

DATA(ld_validitybegin) = 20210129

DATA(ld_validityend) = 20210129

DATA(ld_recordnumber) = Check type of data required

DATA(ld_delimit_date) = 20210129

DATA(ld_nocommit) = some text here . CALL FUNCTION 'BAPI_PERSDATAPL_DELIMIT' EXPORTING employeenumber = ld_employeenumber subtype = ld_subtype objectid = ld_objectid lockindicator = ld_lockindicator validitybegin = ld_validitybegin validityend = ld_validityend recordnumber = ld_recordnumber delimit_date = ld_delimit_date * nocommit = ld_nocommit IMPORTING return = ld_return personaldatakey = ld_personaldatakey . " BAPI_PERSDATAPL_DELIMIT
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 BAPIP0002-PERNR ,
ld_personaldatakey  TYPE BAPIPAKEY ,
ld_subtype  TYPE BAPIP0002-SUBTY ,
ld_objectid  TYPE BAPIP0002-OBJPS ,
ld_lockindicator  TYPE BAPIP0002-SPRPS ,
ld_validitybegin  TYPE BAPIP0002-BEGDA ,
ld_validityend  TYPE BAPIP0002-ENDDA ,
ld_recordnumber  TYPE BAPIP0002-SEQNR ,
ld_delimit_date  TYPE BAPIP0002-DELIMIT_DATE ,
ld_nocommit  TYPE BAPI_STAND-NO_COMMIT .


ld_employeenumber = Check type of data required

ld_subtype = some text here

ld_objectid = some text here

ld_lockindicator = some text here

ld_validitybegin = 20210129

ld_validityend = 20210129

ld_recordnumber = Check type of data required

ld_delimit_date = 20210129

ld_nocommit = some text here

SAP Documentation for FM BAPI_PERSDATAPL_DELIMIT


You can use this method to chronologically delimit a data record for the Personal data infotype (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_PERSDATAPL_DELIMIT or its description.