SAP Function Modules

BAPI_FAMILYTH_DELIMIT SAP Function module - Delimit Family Thailand







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

Associated Function Group: PFAM_TH
Released Date: 01.02.2000
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BAPI_FAMILYTH_DELIMIT - BAPI FAMILYTH DELIMIT





CALL FUNCTION 'BAPI_FAMILYTH_DELIMIT' "Delimit  Family  Thailand
  EXPORTING
    employeenumber =            " bapip0021-pernr  Personnel Number
    subtype =                   " bapip0021-subty  Subtype
    objectid =                  " bapip0021-objps  Object identification
    lockindicator =             " bapip0021-sprps  Lock indicator for HR master record
    validitybegin =             " bapip0021-begda  Start date
    validityend =               " bapip0021-endda  End Date
    recordnumber =              " bapip0021-seqnr  Number of infotype record with same key
    delimit_date =              " bapip0021-delimit_date  Key date for delimiting an infotype record
*   nocommit =                  " bapi_stand-no_commit  COMMIT control at BAPI interface
  IMPORTING
    return =                    " bapireturn1   Return parameter
    familykey =                 " bapipakey     Key for HR Master Data
    .  "  BAPI_FAMILYTH_DELIMIT

ABAP code example for Function Module BAPI_FAMILYTH_DELIMIT





The ABAP code below is a full code listing to execute function module BAPI_FAMILYTH_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_familykey  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_FAMILYTH_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 familykey = ld_familykey . " BAPI_FAMILYTH_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 BAPIP0021-PERNR ,
ld_familykey  TYPE BAPIPAKEY ,
ld_subtype  TYPE BAPIP0021-SUBTY ,
ld_objectid  TYPE BAPIP0021-OBJPS ,
ld_lockindicator  TYPE BAPIP0021-SPRPS ,
ld_validitybegin  TYPE BAPIP0021-BEGDA ,
ld_validityend  TYPE BAPIP0021-ENDDA ,
ld_recordnumber  TYPE BAPIP0021-SEQNR ,
ld_delimit_date  TYPE BAPIP0021-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

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_FAMILYTH_DELIMIT or its description.