BAPI_ADDREMPPL_CREATESUCCESSOR 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_ADDREMPPL_CREATESUCCESSOR into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
PADR_PL
Released Date:
Not Released
Processing type: Remote-Enabled
CALL FUNCTION 'BAPI_ADDREMPPL_CREATESUCCESSOR' "Create subs.employee address record
EXPORTING
employeenumber = " bapip0006-pernr Personnel number
validitybegin = " bapip0006-begda Valid from date
validityend = " bapip0006-endda Validity end date
addresstype = " bapip0006-subty Subtype
* coname = " bapip0006-name2 C/O name
* streetandhouseno = " bapip0006-stras House number and street
* scndaddressline = " bapip0006-locat 2nd address line
* city = " bapip0006-ort01 City
* district = " bapip0006-ort02 District
* postalcodecity = " bapip0006-pstlz Postal code
* state = " bapip0006-state Region
* country = " bapip0006-land1 Country key
* telephonenumber = " bapip0006-telnr Telephone number
* commtype1 = " bapip0006lus-commtype1 Communication type 1
* commnumber1 = " bapip0006lus-commnumber1 Communication number 1
* commtype2 = " bapip0006lus-commtype2 Communication type 2
* commnumber2 = " bapip0006lus-commnumber2 Communication number 2
* commtype3 = " bapip0006lus-commtype3 Communication type 3
* commnumber3 = " bapip0006lus-commnumber3 Communication number 3
* commtype4 = " bapip0006lus-commtype4 Communication type 4
* commnumber4 = " bapip0006lus-commnumber4 Communication number 4
* commtype5 = " bapip0006lus-commtype5 Communication type 5
* commnumber5 = " bapip0006lus-commnumber5 Communication number 5
* commtype6 = " bapip0006lus-commtype6 Communication type 6
* commnumber6 = " bapip0006lus-commnumber6 Communication number 6
* municipalcode = " bapip0006-rctvc Municipal city code
* nocommit = " bapi_stand-no_commit COMMIT control at BAPI interface
IMPORTING
return = " bapireturn1 Structure for Return Code
employeenumber = " bapip0006-pernr Personnel number
subtype = " bapip0006-subty Subtype
objectid = " bapip0006-objps Object identification
lockindicator = " bapip0006-sprps Lock indicator for HR master record
validitybegin = " bapip0006-begda Valid from date
validityend = " bapip0006-endda Validity end date
recordnumber = " bapip0006-seqnr Number of infotype record
. " BAPI_ADDREMPPL_CREATESUCCESSOR
The ABAP code below is a full code listing to execute function module BAPI_ADDREMPPL_CREATESUCCESSOR 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).
| ld_return | TYPE BAPIRETURN1 , |
| ld_employeenumber | TYPE BAPIP0006-PERNR , |
| ld_subtype | TYPE BAPIP0006-SUBTY , |
| ld_objectid | TYPE BAPIP0006-OBJPS , |
| ld_lockindicator | TYPE BAPIP0006-SPRPS , |
| ld_validitybegin | TYPE BAPIP0006-BEGDA , |
| ld_validityend | TYPE BAPIP0006-ENDDA , |
| ld_recordnumber | TYPE BAPIP0006-SEQNR . |
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 BAPIP0006-PERNR , |
| ld_employeenumber | TYPE BAPIP0006-PERNR , |
| ld_validitybegin | TYPE BAPIP0006-BEGDA , |
| ld_subtype | TYPE BAPIP0006-SUBTY , |
| ld_validityend | TYPE BAPIP0006-ENDDA , |
| ld_objectid | TYPE BAPIP0006-OBJPS , |
| ld_addresstype | TYPE BAPIP0006-SUBTY , |
| ld_lockindicator | TYPE BAPIP0006-SPRPS , |
| ld_coname | TYPE BAPIP0006-NAME2 , |
| ld_validitybegin | TYPE BAPIP0006-BEGDA , |
| ld_streetandhouseno | TYPE BAPIP0006-STRAS , |
| ld_validityend | TYPE BAPIP0006-ENDDA , |
| ld_scndaddressline | TYPE BAPIP0006-LOCAT , |
| ld_recordnumber | TYPE BAPIP0006-SEQNR , |
| ld_city | TYPE BAPIP0006-ORT01 , |
| ld_district | TYPE BAPIP0006-ORT02 , |
| ld_postalcodecity | TYPE BAPIP0006-PSTLZ , |
| ld_state | TYPE BAPIP0006-STATE , |
| ld_country | TYPE BAPIP0006-LAND1 , |
| ld_telephonenumber | TYPE BAPIP0006-TELNR , |
| ld_commtype1 | TYPE BAPIP0006LUS-COMMTYPE1 , |
| ld_commnumber1 | TYPE BAPIP0006LUS-COMMNUMBER1 , |
| ld_commtype2 | TYPE BAPIP0006LUS-COMMTYPE2 , |
| ld_commnumber2 | TYPE BAPIP0006LUS-COMMNUMBER2 , |
| ld_commtype3 | TYPE BAPIP0006LUS-COMMTYPE3 , |
| ld_commnumber3 | TYPE BAPIP0006LUS-COMMNUMBER3 , |
| ld_commtype4 | TYPE BAPIP0006LUS-COMMTYPE4 , |
| ld_commnumber4 | TYPE BAPIP0006LUS-COMMNUMBER4 , |
| ld_commtype5 | TYPE BAPIP0006LUS-COMMTYPE5 , |
| ld_commnumber5 | TYPE BAPIP0006LUS-COMMNUMBER5 , |
| ld_commtype6 | TYPE BAPIP0006LUS-COMMTYPE6 , |
| ld_commnumber6 | TYPE BAPIP0006LUS-COMMNUMBER6 , |
| ld_municipalcode | TYPE BAPIP0006-RCTVC , |
| ld_nocommit | TYPE BAPI_STAND-NO_COMMIT . |
You can use this method to create a successor record for the
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_ADDREMPPL_CREATESUCCESSOR or its description.
BAPI_ADDREMPPL_CREATESUCCESSOR - Create subs.employee address record BAPI_ADDREMPNZ_SIMULATECREATN - ESS Address Simulate Creation - Newzealand BAPI_ADDREMPNZ_REQUEST - ESS Address Request - Newzealand BAPI_ADDREMPNZ_GETDETAILEDLIST - Read instances with data BAPI_ADDREMPNZ_GETDETAIL - ESS Address Get Detail - Newzealand BAPI_ADDREMPNZ_CREATESUCCESSOR - ESS Address Create Successor -Newzealand