BAPI_ADDRESSEMPDE_CHANGE 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_ADDRESSEMPDE_CHANGE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
PADR_DE
Released Date:
Not Released
Processing type: Remote-Enabled
CALL FUNCTION 'BAPI_ADDRESSEMPDE_CHANGE' "Change Employee Address
EXPORTING
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 Valid to Date
recordnumber = " bapip0006-seqnr Number of Infotype Record
* coname = " bapip0006-name2 C/O Name
* streetandhouseno = " bapip0006-stras House Number and Street
* city = " bapip0006-ort01 Location
* district = " bapip0006-ort02 District
* postalcodecity = " bapip0006-pstlz Postal Code
* state = " bapip0006-state Region
* country = " bapip0006-land1 Country Key
* telephonenumber = " bapip0006-telnr Telephone Number
* distanceinkm = " bapip0006lde-distanceinkm Distance in Kilometers
* nocommit = " bapi_stand-no_commit
IMPORTING
return = " bapireturn1 Structure for Return Code
. " BAPI_ADDRESSEMPDE_CHANGE
The ABAP code below is a full code listing to execute function module BAPI_ADDRESSEMPDE_CHANGE 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 . |
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_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 , |
| ld_coname | TYPE BAPIP0006-NAME2 , |
| ld_streetandhouseno | TYPE BAPIP0006-STRAS , |
| 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_distanceinkm | TYPE BAPIP0006LDE-DISTANCEINKM , |
| ld_nocommit | TYPE BAPI_STAND-NO_COMMIT . |
You can use this method to change 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_ADDRESSEMPDE_CHANGE or its description.
BAPI_ADDRESSEMPDE_CHANGE - Change Employee Address BAPI_ADDRESSEMPCREATESUCCESSOR - Create Next Employee Address Record BAPI_ADDRESSEMPCH_REQUEST - Create Locked Employee Address Record BAPI_ADDRESSEMPCH_GETDETAIL - Read Employee Address BAPI_ADDRESSEMPCH_CREATE - Create Employee Address BAPI_ADDRESSEMPCH_CHANGE - Change Employee Address