SAP ADDRESS_UPDATE Function Module for
ADDRESS_UPDATE is a standard address update 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 address update FM, simply by entering the name ADDRESS_UPDATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: SAD2
Program Name: SAPLSAD2
Main Program: SAPLSAD2
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function ADDRESS_UPDATE 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 'ADDRESS_UPDATE'".
EXPORTING
* ENTRY_COMPANY = "Company data for SADR
* ENTRY_PERSONAL = "Person data for the SADRP
* NO_DUPREC = ' ' "
* UPDATE_FROM_USER = ' ' "
IMPORTING
RTCODE = "Return code
TABLES
CS1_TAB = "Reserve table
TEL_TAB = "Table with telephone numbers
TLX_TAB = "Table with telex numbers
TTX_TAB = "Table with teletex numbers
X40_TAB = "Table with X.400 addresses
CS2_TAB = "Reserve table
CS3_TAB = "Reserve table
CS4_TAB = "Reserve table
CS5_TAB = "Reserve table
EDI_TAB = "Table with EDI numbers
FAX_TAB = "Table with telefax numbers
RML_TAB = "Table with R/MAIL addresses
SSW_TAB = "Table with Soft*Switch addresses
EXCEPTIONS
ADDR_NOT_EXIST = 1 DEFAULT_COMMU_ART_MISSING = 2 DEFAULT_COMMU_NR_MISSING = 3 PERS_COMP_RELATION_NOT_OK = 4 WRONG_HEAD_DATA = 5 WRONG_POSN_DATA = 6
IMPORTING Parameters details for ADDRESS_UPDATE
ENTRY_COMPANY - Company data for SADR
Data type: SADROptional: Yes
Call by Reference: No ( called with pass by value option)
ENTRY_PERSONAL - Person data for the SADRP
Data type: SADRPOptional: Yes
Call by Reference: No ( called with pass by value option)
NO_DUPREC -
Data type: SONV-FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
UPDATE_FROM_USER -
Data type: SONV-FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ADDRESS_UPDATE
RTCODE - Return code
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ADDRESS_UPDATE
CS1_TAB - Reserve table
Data type: SADR10Optional: No
Call by Reference: No ( called with pass by value option)
TEL_TAB - Table with telephone numbers
Data type: SADR2Optional: No
Call by Reference: No ( called with pass by value option)
TLX_TAB - Table with telex numbers
Data type: SADR5Optional: No
Call by Reference: No ( called with pass by value option)
TTX_TAB - Table with teletex numbers
Data type: SADR4Optional: No
Call by Reference: No ( called with pass by value option)
X40_TAB - Table with X.400 addresses
Data type: SADR8Optional: No
Call by Reference: No ( called with pass by value option)
CS2_TAB - Reserve table
Data type: SADR11Optional: No
Call by Reference: No ( called with pass by value option)
CS3_TAB - Reserve table
Data type: SADR12Optional: No
Call by Reference: No ( called with pass by value option)
CS4_TAB - Reserve table
Data type: SADR13Optional: No
Call by Reference: No ( called with pass by value option)
CS5_TAB - Reserve table
Data type: SADR14Optional: No
Call by Reference: No ( called with pass by value option)
EDI_TAB - Table with EDI numbers
Data type: SADR6Optional: No
Call by Reference: No ( called with pass by value option)
FAX_TAB - Table with telefax numbers
Data type: SADR3Optional: No
Call by Reference: No ( called with pass by value option)
RML_TAB - Table with R/MAIL addresses
Data type: SADR7Optional: No
Call by Reference: No ( called with pass by value option)
SSW_TAB - Table with Soft*Switch addresses
Data type: SADR9Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ADDR_NOT_EXIST - Address number does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DEFAULT_COMMU_ART_MISSING - Standard type of communication is missing
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DEFAULT_COMMU_NR_MISSING - Standard communication number is missing
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PERS_COMP_RELATION_NOT_OK - incorrect allocation company address to private address
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_HEAD_DATA - incorrect company/person data
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_POSN_DATA - incorrect data items for example: Tele number
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ADDRESS_UPDATE 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_rtcode | TYPE SY-SUBRC, " | |||
| lt_cs1_tab | TYPE STANDARD TABLE OF SADR10, " | |||
| lv_entry_company | TYPE SADR, " | |||
| lv_addr_not_exist | TYPE SADR, " | |||
| lt_tel_tab | TYPE STANDARD TABLE OF SADR2, " | |||
| lt_tlx_tab | TYPE STANDARD TABLE OF SADR5, " | |||
| lt_ttx_tab | TYPE STANDARD TABLE OF SADR4, " | |||
| lt_x40_tab | TYPE STANDARD TABLE OF SADR8, " | |||
| lt_cs2_tab | TYPE STANDARD TABLE OF SADR11, " | |||
| lv_entry_personal | TYPE SADRP, " | |||
| lv_default_commu_art_missing | TYPE SADRP, " | |||
| lt_cs3_tab | TYPE STANDARD TABLE OF SADR12, " | |||
| lv_no_duprec | TYPE SONV-FLAG, " SPACE | |||
| lv_default_commu_nr_missing | TYPE SONV, " | |||
| lt_cs4_tab | TYPE STANDARD TABLE OF SADR13, " | |||
| lv_update_from_user | TYPE SONV-FLAG, " SPACE | |||
| lv_pers_comp_relation_not_ok | TYPE SONV, " | |||
| lt_cs5_tab | TYPE STANDARD TABLE OF SADR14, " | |||
| lv_wrong_head_data | TYPE SADR14, " | |||
| lt_edi_tab | TYPE STANDARD TABLE OF SADR6, " | |||
| lv_wrong_posn_data | TYPE SADR6, " | |||
| lt_fax_tab | TYPE STANDARD TABLE OF SADR3, " | |||
| lt_rml_tab | TYPE STANDARD TABLE OF SADR7, " | |||
| lt_ssw_tab | TYPE STANDARD TABLE OF SADR9. " |
|   CALL FUNCTION 'ADDRESS_UPDATE' " |
| EXPORTING | ||
| ENTRY_COMPANY | = lv_entry_company | |
| ENTRY_PERSONAL | = lv_entry_personal | |
| NO_DUPREC | = lv_no_duprec | |
| UPDATE_FROM_USER | = lv_update_from_user | |
| IMPORTING | ||
| RTCODE | = lv_rtcode | |
| TABLES | ||
| CS1_TAB | = lt_cs1_tab | |
| TEL_TAB | = lt_tel_tab | |
| TLX_TAB | = lt_tlx_tab | |
| TTX_TAB | = lt_ttx_tab | |
| X40_TAB | = lt_x40_tab | |
| CS2_TAB | = lt_cs2_tab | |
| CS3_TAB | = lt_cs3_tab | |
| CS4_TAB | = lt_cs4_tab | |
| CS5_TAB | = lt_cs5_tab | |
| EDI_TAB | = lt_edi_tab | |
| FAX_TAB | = lt_fax_tab | |
| RML_TAB | = lt_rml_tab | |
| SSW_TAB | = lt_ssw_tab | |
| EXCEPTIONS | ||
| ADDR_NOT_EXIST = 1 | ||
| DEFAULT_COMMU_ART_MISSING = 2 | ||
| DEFAULT_COMMU_NR_MISSING = 3 | ||
| PERS_COMP_RELATION_NOT_OK = 4 | ||
| WRONG_HEAD_DATA = 5 | ||
| WRONG_POSN_DATA = 6 | ||
| . " ADDRESS_UPDATE | ||
ABAP code using 7.40 inline data declarations to call FM ADDRESS_UPDATE
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 SUBRC FROM SY INTO @DATA(ld_rtcode). | ||||
| "SELECT single FLAG FROM SONV INTO @DATA(ld_no_duprec). | ||||
| DATA(ld_no_duprec) | = ' '. | |||
| "SELECT single FLAG FROM SONV INTO @DATA(ld_update_from_user). | ||||
| DATA(ld_update_from_user) | = ' '. | |||
Search for further information about these or an SAP related objects