SAP Function Modules

ADDR_COMM_DIALOG_RFC SAP Function module







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

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


Pattern for FM ADDR_COMM_DIALOG_RFC - ADDR COMM DIALOG RFC





CALL FUNCTION 'ADDR_COMM_DIALOG_RFC' "
* EXPORTING
*   address_number =            " adrc-addrnumber
*   address_handle =            " szad_field-handle
*   person_number =             " adrp-persnumber
*   person_handle =             " szad_field-handle
*   dialog_mode = 'DISPLAY'     " szad_field-maint_mode
*   title_text =                "
*   address_object_type = '1'   " szad_field-addr_type
*   iv_time_dependent_comm_data = SPACE  " ad_timedep
*   iv_valid_from = SPACE       " ad_valfrom    Communication Data: Valid From (JJJJMMTTSSMMSS)
*   iv_valid_to = SPACE         " ad_valto      Communication Data: Valid Until (JJJJMMTTSSMMSS)
*   iv_timestamp = SPACE        " ad_srctime
*   iv_suggested_valid_from =   " ad_valfrom
*   iv_suggested_valid_to =     " ad_valto
  IMPORTING
    selected_cons_number =      " adr9-consnumber
    data_has_changed =          " szad_field-flag
* TABLES
*   rfc_table =                 " adrfc
*   selected_cons_numbers =     " adconsnr
  EXCEPTIONS
    PARAMETER_ERROR = 1         "
    NO_AUTHORITY = 2            "
    INTERNAL_ERROR = 3          "
    .  "  ADDR_COMM_DIALOG_RFC

ABAP code example for Function Module ADDR_COMM_DIALOG_RFC





The ABAP code below is a full code listing to execute function module ADDR_COMM_DIALOG_RFC 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:
ld_selected_cons_number  TYPE ADR9-CONSNUMBER ,
ld_data_has_changed  TYPE SZAD_FIELD-FLAG ,
it_rfc_table  TYPE STANDARD TABLE OF ADRFC,"TABLES PARAM
wa_rfc_table  LIKE LINE OF it_rfc_table ,
it_selected_cons_numbers  TYPE STANDARD TABLE OF ADCONSNR,"TABLES PARAM
wa_selected_cons_numbers  LIKE LINE OF it_selected_cons_numbers .


SELECT single ADDRNUMBER
FROM ADRC
INTO @DATA(ld_address_number).


DATA(ld_address_handle) = some text here

SELECT single PERSNUMBER
FROM ADRP
INTO @DATA(ld_person_number).


DATA(ld_person_handle) = some text here

DATA(ld_dialog_mode) = some text here
DATA(ld_title_text) = 'some text here'.

DATA(ld_address_object_type) = some text here
DATA(ld_iv_time_dependent_comm_data) = 'Check type of data required'.
DATA(ld_iv_valid_from) = 'Check type of data required'.
DATA(ld_iv_valid_to) = 'Check type of data required'.
DATA(ld_iv_timestamp) = 'Check type of data required'.
DATA(ld_iv_suggested_valid_from) = 'Check type of data required'.
DATA(ld_iv_suggested_valid_to) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_rfc_table to it_rfc_table.

"populate fields of struture and append to itab
append wa_selected_cons_numbers to it_selected_cons_numbers. . CALL FUNCTION 'ADDR_COMM_DIALOG_RFC' * EXPORTING * address_number = ld_address_number * address_handle = ld_address_handle * person_number = ld_person_number * person_handle = ld_person_handle * dialog_mode = ld_dialog_mode * title_text = ld_title_text * address_object_type = ld_address_object_type * iv_time_dependent_comm_data = ld_iv_time_dependent_comm_data * iv_valid_from = ld_iv_valid_from * iv_valid_to = ld_iv_valid_to * iv_timestamp = ld_iv_timestamp * iv_suggested_valid_from = ld_iv_suggested_valid_from * iv_suggested_valid_to = ld_iv_suggested_valid_to IMPORTING selected_cons_number = ld_selected_cons_number data_has_changed = ld_data_has_changed * TABLES * rfc_table = it_rfc_table * selected_cons_numbers = it_selected_cons_numbers EXCEPTIONS PARAMETER_ERROR = 1 NO_AUTHORITY = 2 INTERNAL_ERROR = 3 . " ADDR_COMM_DIALOG_RFC
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here 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_selected_cons_number  TYPE ADR9-CONSNUMBER ,
ld_address_number  TYPE ADRC-ADDRNUMBER ,
it_rfc_table  TYPE STANDARD TABLE OF ADRFC ,
wa_rfc_table  LIKE LINE OF it_rfc_table,
ld_data_has_changed  TYPE SZAD_FIELD-FLAG ,
ld_address_handle  TYPE SZAD_FIELD-HANDLE ,
it_selected_cons_numbers  TYPE STANDARD TABLE OF ADCONSNR ,
wa_selected_cons_numbers  LIKE LINE OF it_selected_cons_numbers,
ld_person_number  TYPE ADRP-PERSNUMBER ,
ld_person_handle  TYPE SZAD_FIELD-HANDLE ,
ld_dialog_mode  TYPE SZAD_FIELD-MAINT_MODE ,
ld_title_text  TYPE STRING ,
ld_address_object_type  TYPE SZAD_FIELD-ADDR_TYPE ,
ld_iv_time_dependent_comm_data  TYPE AD_TIMEDEP ,
ld_iv_valid_from  TYPE AD_VALFROM ,
ld_iv_valid_to  TYPE AD_VALTO ,
ld_iv_timestamp  TYPE AD_SRCTIME ,
ld_iv_suggested_valid_from  TYPE AD_VALFROM ,
ld_iv_suggested_valid_to  TYPE AD_VALTO .


SELECT single ADDRNUMBER
FROM ADRC
INTO ld_address_number.


"populate fields of struture and append to itab
append wa_rfc_table to it_rfc_table.

ld_address_handle = some text here

"populate fields of struture and append to itab
append wa_selected_cons_numbers to it_selected_cons_numbers.

SELECT single PERSNUMBER
FROM ADRP
INTO ld_person_number.


ld_person_handle = some text here

ld_dialog_mode = some text here
ld_title_text = 'some text here'.

ld_address_object_type = some text here
ld_iv_time_dependent_comm_data = 'Check type of data required'.
ld_iv_valid_from = 'Check type of data required'.
ld_iv_valid_to = 'Check type of data required'.
ld_iv_timestamp = 'Check type of data required'.
ld_iv_suggested_valid_from = 'Check type of data required'.
ld_iv_suggested_valid_to = 'Check type of data required'.

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