SAP Function Modules

BAPI_INTCONTROLCREATESUCCESSOR SAP Function module - Create subsequent internal control record







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

Associated Function Group: PICO
Released Date: 16.09.1997
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BAPI_INTCONTROLCREATESUCCESSOR - BAPI INTCONTROLCREATESUCCESSOR





CALL FUNCTION 'BAPI_INTCONTROLCREATESUCCESSOR' "Create subsequent internal control record
  EXPORTING
    employeenumber =            " bapip0032-pernr  Personnel number
    validitybegin =             " bapip0032-begda  Valid from date
    validityend =               " bapip0032-endda  Valid To Date
*   licenseplateno =            " bapip0032-kfzkz  License plate number
*   buildingnumber =            " bapip0032-gebnr  Building number
*   roomnumber =                " bapip0032-zimnr  Room number
*   inhousetelno1 =             " bapip0032-tel01  In-house telephone number
*   inhousetelno2 =             " bapip0032-tel02  In-house telephone number
*   nocommit =                  " bapi_stand-no_commit  COMMIT control at BAPI interface
  IMPORTING
    return =                    " bapireturn1   Structure for return code
    employeenumber =            " bapip0032-pernr  Personnel number
    subtype =                   " bapip0032-subty  Subtype
    objectid =                  " bapip0032-objps  Object identification
    lockindicator =             " bapip0032-sprps  Lock indicator for HR master record
    validitybegin =             " bapip0032-begda  Valid from date
    validityend =               " bapip0032-endda  Valid To Date
    recordnumber =              " bapip0032-seqnr  Number of Infotype Record
    .  "  BAPI_INTCONTROLCREATESUCCESSOR

ABAP code example for Function Module BAPI_INTCONTROLCREATESUCCESSOR





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


DATA(ld_employeenumber) = Check type of data required

DATA(ld_validitybegin) = 20210129

DATA(ld_validityend) = 20210129

DATA(ld_licenseplateno) = some text here

DATA(ld_buildingnumber) = some text here

DATA(ld_roomnumber) = some text here

DATA(ld_inhousetelno1) = some text here

DATA(ld_inhousetelno2) = some text here

DATA(ld_nocommit) = some text here . CALL FUNCTION 'BAPI_INTCONTROLCREATESUCCESSOR' EXPORTING employeenumber = ld_employeenumber validitybegin = ld_validitybegin validityend = ld_validityend * licenseplateno = ld_licenseplateno * buildingnumber = ld_buildingnumber * roomnumber = ld_roomnumber * inhousetelno1 = ld_inhousetelno1 * inhousetelno2 = ld_inhousetelno2 * 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_INTCONTROLCREATESUCCESSOR
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 BAPIP0032-PERNR ,
ld_employeenumber  TYPE BAPIP0032-PERNR ,
ld_validitybegin  TYPE BAPIP0032-BEGDA ,
ld_subtype  TYPE BAPIP0032-SUBTY ,
ld_validityend  TYPE BAPIP0032-ENDDA ,
ld_objectid  TYPE BAPIP0032-OBJPS ,
ld_licenseplateno  TYPE BAPIP0032-KFZKZ ,
ld_lockindicator  TYPE BAPIP0032-SPRPS ,
ld_buildingnumber  TYPE BAPIP0032-GEBNR ,
ld_validitybegin  TYPE BAPIP0032-BEGDA ,
ld_roomnumber  TYPE BAPIP0032-ZIMNR ,
ld_validityend  TYPE BAPIP0032-ENDDA ,
ld_inhousetelno1  TYPE BAPIP0032-TEL01 ,
ld_recordnumber  TYPE BAPIP0032-SEQNR ,
ld_inhousetelno2  TYPE BAPIP0032-TEL02 ,
ld_nocommit  TYPE BAPI_STAND-NO_COMMIT .


ld_employeenumber = Check type of data required

ld_validitybegin = 20210129

ld_validityend = 20210129

ld_licenseplateno = some text here

ld_buildingnumber = some text here

ld_roomnumber = some text here

ld_inhousetelno1 = some text here

ld_inhousetelno2 = some text here

ld_nocommit = some text here

SAP Documentation for FM BAPI_INTCONTROLCREATESUCCESSOR


You can use this method to create a subsequent Internal Control record (0032). ...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_INTCONTROLCREATESUCCESSOR or its description.