BAPI_ADDREMPID_CREATE 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_ADDREMPID_CREATE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
PADR_ID
Released Date:
11.02.2000
Processing type: Remote-Enabled
CALL FUNCTION 'BAPI_ADDREMPID_CREATE' "ESS Address Create - Indonesia
EXPORTING
inemployeenumber = " bapip0006id-employeeno Personnel Number
invaliditybegin = " bapip0006id-validbegin Start date
invalidityend = " bapip0006id-validend 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
* state = " bapip0006-state Region (State, Province, County)
* postalcodecity = " bapip0006-pstlz Postal code
* country = " bapip0006-land1 Country key
* telephonenumber = " bapip0006-telnr Telephone number
* commtype1 = " bapip0006id-commtype1 Communication type
* commnumber1 = " bapip0006id-commnumber1 Communications number
* commtype2 = " bapip0006id-commtype2 Communication type
* commnumber2 = " bapip0006id-commnumber2 Communications number
* commtype3 = " bapip0006id-commtype3 Communication type
* commnumber3 = " bapip0006id-commnumber3 Communications number
* nocommit = " bapi_stand-no_commit
IMPORTING
return = " bapireturn1
employeenumber = " bapip0006id-employeeno Personnel Number
subtype = " bapip0006id-subtype Subtype
objectid = " bapip0006id-objectid Object identification
lockindicator = " bapip0006id-lockindic Lock indicator for HR master record
validitybegin = " bapip0006id-validbegin Start date
validityend = " bapip0006id-validend End Date
recordnumber = " bapip0006id-recordnr Number of infotype record with same key
. " BAPI_ADDREMPID_CREATE
The ABAP code below is a full code listing to execute function module BAPI_ADDREMPID_CREATE 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 BAPIP0006ID-EMPLOYEENO , |
| ld_subtype | TYPE BAPIP0006ID-SUBTYPE , |
| ld_objectid | TYPE BAPIP0006ID-OBJECTID , |
| ld_lockindicator | TYPE BAPIP0006ID-LOCKINDIC , |
| ld_validitybegin | TYPE BAPIP0006ID-VALIDBEGIN , |
| ld_validityend | TYPE BAPIP0006ID-VALIDEND , |
| ld_recordnumber | TYPE BAPIP0006ID-RECORDNR . |
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_inemployeenumber | TYPE BAPIP0006ID-EMPLOYEENO , |
| ld_employeenumber | TYPE BAPIP0006ID-EMPLOYEENO , |
| ld_invaliditybegin | TYPE BAPIP0006ID-VALIDBEGIN , |
| ld_subtype | TYPE BAPIP0006ID-SUBTYPE , |
| ld_invalidityend | TYPE BAPIP0006ID-VALIDEND , |
| ld_objectid | TYPE BAPIP0006ID-OBJECTID , |
| ld_addresstype | TYPE BAPIP0006-SUBTY , |
| ld_lockindicator | TYPE BAPIP0006ID-LOCKINDIC , |
| ld_coname | TYPE BAPIP0006-NAME2 , |
| ld_streetandhouseno | TYPE BAPIP0006-STRAS , |
| ld_validitybegin | TYPE BAPIP0006ID-VALIDBEGIN , |
| ld_validityend | TYPE BAPIP0006ID-VALIDEND , |
| ld_scndaddressline | TYPE BAPIP0006-LOCAT , |
| ld_recordnumber | TYPE BAPIP0006ID-RECORDNR , |
| ld_city | TYPE BAPIP0006-ORT01 , |
| ld_district | TYPE BAPIP0006-ORT02 , |
| ld_state | TYPE BAPIP0006-STATE , |
| ld_postalcodecity | TYPE BAPIP0006-PSTLZ , |
| ld_country | TYPE BAPIP0006-LAND1 , |
| ld_telephonenumber | TYPE BAPIP0006-TELNR , |
| ld_commtype1 | TYPE BAPIP0006ID-COMMTYPE1 , |
| ld_commnumber1 | TYPE BAPIP0006ID-COMMNUMBER1 , |
| ld_commtype2 | TYPE BAPIP0006ID-COMMTYPE2 , |
| ld_commnumber2 | TYPE BAPIP0006ID-COMMNUMBER2 , |
| ld_commtype3 | TYPE BAPIP0006ID-COMMTYPE3 , |
| ld_commnumber3 | TYPE BAPIP0006ID-COMMNUMBER3 , |
| ld_nocommit | TYPE BAPI_STAND-NO_COMMIT . |
You can use this method to create an
HINTS
...See here for full SAP fm documentation
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_ADDREMPID_CREATE or its description.
BAPI_ADDREMPID_CREATE - ESS Address Create - Indonesia BAPI_ADDREMPID_CHANGE - ESS Address Change - Indonesia BAPI_ADDREMPHK_SIMULATECREATE - Simulation: Create Employee Address (Hong Kong) BAPI_ADDREMPHK_REQUEST - Create locked employee address record (Hong Kong) BAPI_ADDREMPHK_GETDETAILEDLIST - Read instances with data (Hong Kong) BAPI_ADDREMPHK_GETDETAIL - Read employee address (Hong Kong)