SAP BAPI_ADDREMPIT_CREATESUCCESSOR Function Module for
BAPI_ADDREMPIT_CREATESUCCESSOR is a standard bapi addrempit createsuccessor SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for bapi addrempit createsuccessor FM, simply by entering the name BAPI_ADDREMPIT_CREATESUCCESSOR into the relevant SAP transaction such as SE37 or SE38.
Function Group: PADR_IT
Program Name: SAPLPADR_IT
Main Program: SAPLPADR_IT
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function BAPI_ADDREMPIT_CREATESUCCESSOR pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'BAPI_ADDREMPIT_CREATESUCCESSOR'".
EXPORTING
EMPLOYEENUMBER = "
* POSTA = "
* POSTALCODECITY = "
* STATE = "
* COUNTRY = "
* TELEPHONENUMBER = "
* DISTANCEINKM = "
* DISTANCEINKM1 = "
* COMPANYOWNEDAPT = "
* BUSROUTE = "
* COMMTYPE1 = "
VALIDITYBEGIN = "
* COMMNUMBER1 = "
* COMMTYPE2 = "
* COMMNUMBER2 = "
* COMMTYPE3 = "
* COMMNUMBER3 = "
* COMMTYPE4 = "
* COMMNUMBER4 = "
* NOCOMMIT = "
VALIDITYEND = "
ADDRESSTYPE = "
* CONAME = "
* STREETABV = "
* STREET = "
* CITY = "
* HOUSE_NO = "
IMPORTING
RETURN = "
EMPLOYEENUMBER = "
SUBTYPE = "
OBJECTID = "
LOCKINDICATOR = "
VALIDITYBEGIN = "
VALIDITYEND = "
RECORDNUMBER = "
IMPORTING Parameters details for BAPI_ADDREMPIT_CREATESUCCESSOR
EMPLOYEENUMBER -
Data type: BAPIP0006-PERNROptional: No
Call by Reference: No ( called with pass by value option)
POSTA -
Data type: BAPIP0006-POSTAOptional: Yes
Call by Reference: No ( called with pass by value option)
POSTALCODECITY -
Data type: BAPIP0006-PSTLZOptional: Yes
Call by Reference: No ( called with pass by value option)
STATE -
Data type: BAPIP0006-STATEOptional: Yes
Call by Reference: No ( called with pass by value option)
COUNTRY -
Data type: BAPIP0006-LAND1Optional: Yes
Call by Reference: No ( called with pass by value option)
TELEPHONENUMBER -
Data type: BAPIP0006-TELNROptional: Yes
Call by Reference: No ( called with pass by value option)
DISTANCEINKM -
Data type: BAPIP0006LIT-DISTANCEINKMOptional: Yes
Call by Reference: No ( called with pass by value option)
DISTANCEINKM1 -
Data type: BAPIP0006LIT-DISTANCEINKM1Optional: Yes
Call by Reference: No ( called with pass by value option)
COMPANYOWNEDAPT -
Data type: BAPIP0006-WKWNGOptional: Yes
Call by Reference: No ( called with pass by value option)
BUSROUTE -
Data type: BAPIP0006LIT-BUSROUTEOptional: Yes
Call by Reference: No ( called with pass by value option)
COMMTYPE1 -
Data type: BAPIP0006LIT-COMMTYPE1Optional: Yes
Call by Reference: No ( called with pass by value option)
VALIDITYBEGIN -
Data type: BAPIP0006-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
COMMNUMBER1 -
Data type: BAPIP0006LIT-COMMNUMBER1Optional: Yes
Call by Reference: No ( called with pass by value option)
COMMTYPE2 -
Data type: BAPIP0006LIT-COMMTYPE2Optional: Yes
Call by Reference: No ( called with pass by value option)
COMMNUMBER2 -
Data type: BAPIP0006LIT-COMMNUMBER2Optional: Yes
Call by Reference: No ( called with pass by value option)
COMMTYPE3 -
Data type: BAPIP0006LIT-COMMTYPE3Optional: Yes
Call by Reference: No ( called with pass by value option)
COMMNUMBER3 -
Data type: BAPIP0006LIT-COMMNUMBER3Optional: Yes
Call by Reference: No ( called with pass by value option)
COMMTYPE4 -
Data type: BAPIP0006LIT-COMMTYPE4Optional: Yes
Call by Reference: No ( called with pass by value option)
COMMNUMBER4 -
Data type: BAPIP0006LIT-COMMNUMBER4Optional: Yes
Call by Reference: No ( called with pass by value option)
NOCOMMIT -
Data type: BAPI_STAND-NO_COMMITOptional: Yes
Call by Reference: No ( called with pass by value option)
VALIDITYEND -
Data type: BAPIP0006-ENDDAOptional: No
Call by Reference: No ( called with pass by value option)
ADDRESSTYPE -
Data type: BAPIP0006-SUBTYOptional: No
Call by Reference: No ( called with pass by value option)
CONAME -
Data type: BAPIP0006-NAME2Optional: Yes
Call by Reference: No ( called with pass by value option)
STREETABV -
Data type: BAPIP0006LIT-STREETABVOptional: Yes
Call by Reference: No ( called with pass by value option)
STREET -
Data type: BAPIP0006-STRASOptional: Yes
Call by Reference: No ( called with pass by value option)
CITY -
Data type: BAPIP0006-ORT01Optional: Yes
Call by Reference: No ( called with pass by value option)
HOUSE_NO -
Data type: BAPIP0006-HSNMROptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_ADDREMPIT_CREATESUCCESSOR
RETURN -
Data type: BAPIRETURN1Optional: No
Call by Reference: No ( called with pass by value option)
EMPLOYEENUMBER -
Data type: BAPIP0006-PERNROptional: No
Call by Reference: No ( called with pass by value option)
SUBTYPE -
Data type: BAPIP0006-SUBTYOptional: No
Call by Reference: No ( called with pass by value option)
OBJECTID -
Data type: BAPIP0006-OBJPSOptional: No
Call by Reference: No ( called with pass by value option)
LOCKINDICATOR -
Data type: BAPIP0006-SPRPSOptional: No
Call by Reference: No ( called with pass by value option)
VALIDITYBEGIN -
Data type: BAPIP0006-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
VALIDITYEND -
Data type: BAPIP0006-ENDDAOptional: No
Call by Reference: No ( called with pass by value option)
RECORDNUMBER -
Data type: BAPIP0006-SEQNROptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_ADDREMPIT_CREATESUCCESSOR Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.DATA: | ||||
lv_return | TYPE BAPIRETURN1, " | |||
lv_employeenumber | TYPE BAPIP0006-PERNR, " | |||
lv_posta | TYPE BAPIP0006-POSTA, " | |||
lv_postalcodecity | TYPE BAPIP0006-PSTLZ, " | |||
lv_state | TYPE BAPIP0006-STATE, " | |||
lv_country | TYPE BAPIP0006-LAND1, " | |||
lv_telephonenumber | TYPE BAPIP0006-TELNR, " | |||
lv_distanceinkm | TYPE BAPIP0006LIT-DISTANCEINKM, " | |||
lv_distanceinkm1 | TYPE BAPIP0006LIT-DISTANCEINKM1, " | |||
lv_companyownedapt | TYPE BAPIP0006-WKWNG, " | |||
lv_busroute | TYPE BAPIP0006LIT-BUSROUTE, " | |||
lv_commtype1 | TYPE BAPIP0006LIT-COMMTYPE1, " | |||
lv_validitybegin | TYPE BAPIP0006-BEGDA, " | |||
lv_employeenumber | TYPE BAPIP0006-PERNR, " | |||
lv_commnumber1 | TYPE BAPIP0006LIT-COMMNUMBER1, " | |||
lv_commtype2 | TYPE BAPIP0006LIT-COMMTYPE2, " | |||
lv_commnumber2 | TYPE BAPIP0006LIT-COMMNUMBER2, " | |||
lv_commtype3 | TYPE BAPIP0006LIT-COMMTYPE3, " | |||
lv_commnumber3 | TYPE BAPIP0006LIT-COMMNUMBER3, " | |||
lv_commtype4 | TYPE BAPIP0006LIT-COMMTYPE4, " | |||
lv_commnumber4 | TYPE BAPIP0006LIT-COMMNUMBER4, " | |||
lv_nocommit | TYPE BAPI_STAND-NO_COMMIT, " | |||
lv_subtype | TYPE BAPIP0006-SUBTY, " | |||
lv_validityend | TYPE BAPIP0006-ENDDA, " | |||
lv_objectid | TYPE BAPIP0006-OBJPS, " | |||
lv_addresstype | TYPE BAPIP0006-SUBTY, " | |||
lv_coname | TYPE BAPIP0006-NAME2, " | |||
lv_lockindicator | TYPE BAPIP0006-SPRPS, " | |||
lv_streetabv | TYPE BAPIP0006LIT-STREETABV, " | |||
lv_validitybegin | TYPE BAPIP0006-BEGDA, " | |||
lv_street | TYPE BAPIP0006-STRAS, " | |||
lv_validityend | TYPE BAPIP0006-ENDDA, " | |||
lv_city | TYPE BAPIP0006-ORT01, " | |||
lv_recordnumber | TYPE BAPIP0006-SEQNR, " | |||
lv_house_no | TYPE BAPIP0006-HSNMR. " |
  CALL FUNCTION 'BAPI_ADDREMPIT_CREATESUCCESSOR' " |
EXPORTING | ||
EMPLOYEENUMBER | = lv_employeenumber | |
POSTA | = lv_posta | |
POSTALCODECITY | = lv_postalcodecity | |
STATE | = lv_state | |
COUNTRY | = lv_country | |
TELEPHONENUMBER | = lv_telephonenumber | |
DISTANCEINKM | = lv_distanceinkm | |
DISTANCEINKM1 | = lv_distanceinkm1 | |
COMPANYOWNEDAPT | = lv_companyownedapt | |
BUSROUTE | = lv_busroute | |
COMMTYPE1 | = lv_commtype1 | |
VALIDITYBEGIN | = lv_validitybegin | |
COMMNUMBER1 | = lv_commnumber1 | |
COMMTYPE2 | = lv_commtype2 | |
COMMNUMBER2 | = lv_commnumber2 | |
COMMTYPE3 | = lv_commtype3 | |
COMMNUMBER3 | = lv_commnumber3 | |
COMMTYPE4 | = lv_commtype4 | |
COMMNUMBER4 | = lv_commnumber4 | |
NOCOMMIT | = lv_nocommit | |
VALIDITYEND | = lv_validityend | |
ADDRESSTYPE | = lv_addresstype | |
CONAME | = lv_coname | |
STREETABV | = lv_streetabv | |
STREET | = lv_street | |
CITY | = lv_city | |
HOUSE_NO | = lv_house_no | |
IMPORTING | ||
RETURN | = lv_return | |
EMPLOYEENUMBER | = lv_employeenumber | |
SUBTYPE | = lv_subtype | |
OBJECTID | = lv_objectid | |
LOCKINDICATOR | = lv_lockindicator | |
VALIDITYBEGIN | = lv_validitybegin | |
VALIDITYEND | = lv_validityend | |
RECORDNUMBER | = lv_recordnumber | |
. " BAPI_ADDREMPIT_CREATESUCCESSOR |
ABAP code using 7.40 inline data declarations to call FM BAPI_ADDREMPIT_CREATESUCCESSOR
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8."SELECT single PERNR FROM BAPIP0006 INTO @DATA(ld_employeenumber). | ||||
"SELECT single POSTA FROM BAPIP0006 INTO @DATA(ld_posta). | ||||
"SELECT single PSTLZ FROM BAPIP0006 INTO @DATA(ld_postalcodecity). | ||||
"SELECT single STATE FROM BAPIP0006 INTO @DATA(ld_state). | ||||
"SELECT single LAND1 FROM BAPIP0006 INTO @DATA(ld_country). | ||||
"SELECT single TELNR FROM BAPIP0006 INTO @DATA(ld_telephonenumber). | ||||
"SELECT single DISTANCEINKM FROM BAPIP0006LIT INTO @DATA(ld_distanceinkm). | ||||
"SELECT single DISTANCEINKM1 FROM BAPIP0006LIT INTO @DATA(ld_distanceinkm1). | ||||
"SELECT single WKWNG FROM BAPIP0006 INTO @DATA(ld_companyownedapt). | ||||
"SELECT single BUSROUTE FROM BAPIP0006LIT INTO @DATA(ld_busroute). | ||||
"SELECT single COMMTYPE1 FROM BAPIP0006LIT INTO @DATA(ld_commtype1). | ||||
"SELECT single BEGDA FROM BAPIP0006 INTO @DATA(ld_validitybegin). | ||||
"SELECT single PERNR FROM BAPIP0006 INTO @DATA(ld_employeenumber). | ||||
"SELECT single COMMNUMBER1 FROM BAPIP0006LIT INTO @DATA(ld_commnumber1). | ||||
"SELECT single COMMTYPE2 FROM BAPIP0006LIT INTO @DATA(ld_commtype2). | ||||
"SELECT single COMMNUMBER2 FROM BAPIP0006LIT INTO @DATA(ld_commnumber2). | ||||
"SELECT single COMMTYPE3 FROM BAPIP0006LIT INTO @DATA(ld_commtype3). | ||||
"SELECT single COMMNUMBER3 FROM BAPIP0006LIT INTO @DATA(ld_commnumber3). | ||||
"SELECT single COMMTYPE4 FROM BAPIP0006LIT INTO @DATA(ld_commtype4). | ||||
"SELECT single COMMNUMBER4 FROM BAPIP0006LIT INTO @DATA(ld_commnumber4). | ||||
"SELECT single NO_COMMIT FROM BAPI_STAND INTO @DATA(ld_nocommit). | ||||
"SELECT single SUBTY FROM BAPIP0006 INTO @DATA(ld_subtype). | ||||
"SELECT single ENDDA FROM BAPIP0006 INTO @DATA(ld_validityend). | ||||
"SELECT single OBJPS FROM BAPIP0006 INTO @DATA(ld_objectid). | ||||
"SELECT single SUBTY FROM BAPIP0006 INTO @DATA(ld_addresstype). | ||||
"SELECT single NAME2 FROM BAPIP0006 INTO @DATA(ld_coname). | ||||
"SELECT single SPRPS FROM BAPIP0006 INTO @DATA(ld_lockindicator). | ||||
"SELECT single STREETABV FROM BAPIP0006LIT INTO @DATA(ld_streetabv). | ||||
"SELECT single BEGDA FROM BAPIP0006 INTO @DATA(ld_validitybegin). | ||||
"SELECT single STRAS FROM BAPIP0006 INTO @DATA(ld_street). | ||||
"SELECT single ENDDA FROM BAPIP0006 INTO @DATA(ld_validityend). | ||||
"SELECT single ORT01 FROM BAPIP0006 INTO @DATA(ld_city). | ||||
"SELECT single SEQNR FROM BAPIP0006 INTO @DATA(ld_recordnumber). | ||||
"SELECT single HSNMR FROM BAPIP0006 INTO @DATA(ld_house_no). | ||||
Search for further information about these or an SAP related objects