SAP Function Modules

ADDR_GET_COMPLETE_DB_MASS SAP Function module







ADDR_GET_COMPLETE_DB_MASS 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 ADDR_GET_COMPLETE_DB_MASS into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SZAE
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM ADDR_GET_COMPLETE_DB_MASS - ADDR GET COMPLETE DB MASS





CALL FUNCTION 'ADDR_GET_COMPLETE_DB_MASS' "
  EXPORTING
    iv_current_comm_data =      " ad_comcurr
  TABLES
    address_selection =         " szadr_adrc_table
    sz_addr1_complete =         " szadr_addr1_table
    sz_error_table =            " szadr_error_table
    .  "  ADDR_GET_COMPLETE_DB_MASS

ABAP code example for Function Module ADDR_GET_COMPLETE_DB_MASS





The ABAP code below is a full code listing to execute function module ADDR_GET_COMPLETE_DB_MASS 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).

DATA:
it_address_selection  TYPE STANDARD TABLE OF SZADR_ADRC_TABLE,"TABLES PARAM
wa_address_selection  LIKE LINE OF it_address_selection ,
it_sz_addr1_complete  TYPE STANDARD TABLE OF SZADR_ADDR1_TABLE,"TABLES PARAM
wa_sz_addr1_complete  LIKE LINE OF it_sz_addr1_complete ,
it_sz_error_table  TYPE STANDARD TABLE OF SZADR_ERROR_TABLE,"TABLES PARAM
wa_sz_error_table  LIKE LINE OF it_sz_error_table .

DATA(ld_iv_current_comm_data) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_address_selection to it_address_selection.

"populate fields of struture and append to itab
append wa_sz_addr1_complete to it_sz_addr1_complete.

"populate fields of struture and append to itab
append wa_sz_error_table to it_sz_error_table. . CALL FUNCTION 'ADDR_GET_COMPLETE_DB_MASS' EXPORTING iv_current_comm_data = ld_iv_current_comm_data TABLES address_selection = it_address_selection sz_addr1_complete = it_sz_addr1_complete sz_error_table = it_sz_error_table . " ADDR_GET_COMPLETE_DB_MASS
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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_iv_current_comm_data  TYPE AD_COMCURR ,
it_address_selection  TYPE STANDARD TABLE OF SZADR_ADRC_TABLE ,
wa_address_selection  LIKE LINE OF it_address_selection,
it_sz_addr1_complete  TYPE STANDARD TABLE OF SZADR_ADDR1_TABLE ,
wa_sz_addr1_complete  LIKE LINE OF it_sz_addr1_complete,
it_sz_error_table  TYPE STANDARD TABLE OF SZADR_ERROR_TABLE ,
wa_sz_error_table  LIKE LINE OF it_sz_error_table.

ld_iv_current_comm_data = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_address_selection to it_address_selection.

"populate fields of struture and append to itab
append wa_sz_addr1_complete to it_sz_addr1_complete.

"populate fields of struture and append to itab
append wa_sz_error_table to it_sz_error_table.

Contribute (Add Comments)

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 ADDR_GET_COMPLETE_DB_MASS or its description.