SAP ADDR_COMM_DIALOG_X400 Function Module for









ADDR_COMM_DIALOG_X400 is a standard addr comm dialog x400 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 addr comm dialog x400 FM, simply by entering the name ADDR_COMM_DIALOG_X400 into the relevant SAP transaction such as SE37 or SE38.

Function Group: SZA6
Program Name: SAPLSZA6
Main Program: SAPLSZA6
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ADDR_COMM_DIALOG_X400 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 'ADDR_COMM_DIALOG_X400'"
EXPORTING
* ADDRESS_NUMBER = "
* IV_TIME_DEPENDENT_COMM_DATA = ' ' "
* IV_VALID_FROM = ' ' "Communication Data: Valid From (JJJJMMTTSSMMSS)
* IV_VALID_TO = ' ' "Communication Data: Valid Until (JJJJMMTTSSMMSS)
* IV_TIMESTAMP = ' ' "
* IV_SUGGESTED_VALID_FROM = "
* IV_SUGGESTED_VALID_TO = "
* ADDRESS_HANDLE = "
* PERSON_NUMBER = "
* PERSON_HANDLE = "
* DIALOG_MODE = 'DISPLAY' "
* TITLE_TEXT = "
* ADDRESS_OBJECT_TYPE = '1' "
* NO_ADDRESS_REFERENCE = "
* INSERT_AND_DELETE_ALLOWED = "

IMPORTING
SELECTED_CONS_NUMBER = "
DATA_HAS_CHANGED = "
AT_EXIT_COMMAND = "

TABLES
* X400_TABLE = "
* SELECTED_CONS_NUMBERS = "

EXCEPTIONS
PARAMETER_ERROR = 1 NO_AUTHORITY = 2 INTERNAL_ERROR = 3
.



IMPORTING Parameters details for ADDR_COMM_DIALOG_X400

ADDRESS_NUMBER -

Data type: ADRC-ADDRNUMBER
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_TIME_DEPENDENT_COMM_DATA -

Data type: AD_TIMEDEP
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_VALID_FROM - Communication Data: Valid From (JJJJMMTTSSMMSS)

Data type: AD_VALFROM
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_VALID_TO - Communication Data: Valid Until (JJJJMMTTSSMMSS)

Data type: AD_VALTO
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_TIMESTAMP -

Data type: AD_SRCTIME
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_SUGGESTED_VALID_FROM -

Data type: AD_VALFROM
Optional: Yes
Call by Reference: Yes

IV_SUGGESTED_VALID_TO -

Data type: AD_VALTO
Optional: Yes
Call by Reference: Yes

ADDRESS_HANDLE -

Data type: SZAD_FIELD-HANDLE
Optional: Yes
Call by Reference: No ( called with pass by value option)

PERSON_NUMBER -

Data type: ADRP-PERSNUMBER
Optional: Yes
Call by Reference: No ( called with pass by value option)

PERSON_HANDLE -

Data type: SZAD_FIELD-HANDLE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DIALOG_MODE -

Data type: SZAD_FIELD-MAINT_MODE
Default: 'DISPLAY'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TITLE_TEXT -

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

ADDRESS_OBJECT_TYPE -

Data type: SZAD_FIELD-ADDR_TYPE
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_ADDRESS_REFERENCE -

Data type: SZAD_FIELD-FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

INSERT_AND_DELETE_ALLOWED -

Data type: SZAD_FIELD-FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for ADDR_COMM_DIALOG_X400

SELECTED_CONS_NUMBER -

Data type: ADR8-CONSNUMBER
Optional: No
Call by Reference: No ( called with pass by value option)

DATA_HAS_CHANGED -

Data type: SZAD_FIELD-FLAG
Optional: No
Call by Reference: No ( called with pass by value option)

AT_EXIT_COMMAND -

Data type: SZAD_FIELD-FLAG
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for ADDR_COMM_DIALOG_X400

X400_TABLE -

Data type: ADX400
Optional: Yes
Call by Reference: No ( called with pass by value option)

SELECTED_CONS_NUMBERS -

Data type: ADCONSNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

PARAMETER_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_AUTHORITY -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INTERNAL_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for ADDR_COMM_DIALOG_X400 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:
lt_x400_table  TYPE STANDARD TABLE OF ADX400, "   
lv_address_number  TYPE ADRC-ADDRNUMBER, "   
lv_parameter_error  TYPE ADRC, "   
lv_selected_cons_number  TYPE ADR8-CONSNUMBER, "   
lv_iv_time_dependent_comm_data  TYPE AD_TIMEDEP, "   SPACE
lv_iv_valid_from  TYPE AD_VALFROM, "   SPACE
lv_iv_valid_to  TYPE AD_VALTO, "   SPACE
lv_iv_timestamp  TYPE AD_SRCTIME, "   SPACE
lv_iv_suggested_valid_from  TYPE AD_VALFROM, "   
lv_iv_suggested_valid_to  TYPE AD_VALTO, "   
lv_no_authority  TYPE AD_VALTO, "   
lv_address_handle  TYPE SZAD_FIELD-HANDLE, "   
lv_data_has_changed  TYPE SZAD_FIELD-FLAG, "   
lt_selected_cons_numbers  TYPE STANDARD TABLE OF ADCONSNR, "   
lv_person_number  TYPE ADRP-PERSNUMBER, "   
lv_internal_error  TYPE ADRP, "   
lv_at_exit_command  TYPE SZAD_FIELD-FLAG, "   
lv_person_handle  TYPE SZAD_FIELD-HANDLE, "   
lv_dialog_mode  TYPE SZAD_FIELD-MAINT_MODE, "   'DISPLAY'
lv_title_text  TYPE SZAD_FIELD, "   
lv_address_object_type  TYPE SZAD_FIELD-ADDR_TYPE, "   '1'
lv_no_address_reference  TYPE SZAD_FIELD-FLAG, "   
lv_insert_and_delete_allowed  TYPE SZAD_FIELD-FLAG. "   

  CALL FUNCTION 'ADDR_COMM_DIALOG_X400'  "
    EXPORTING
         ADDRESS_NUMBER = lv_address_number
         IV_TIME_DEPENDENT_COMM_DATA = lv_iv_time_dependent_comm_data
         IV_VALID_FROM = lv_iv_valid_from
         IV_VALID_TO = lv_iv_valid_to
         IV_TIMESTAMP = lv_iv_timestamp
         IV_SUGGESTED_VALID_FROM = lv_iv_suggested_valid_from
         IV_SUGGESTED_VALID_TO = lv_iv_suggested_valid_to
         ADDRESS_HANDLE = lv_address_handle
         PERSON_NUMBER = lv_person_number
         PERSON_HANDLE = lv_person_handle
         DIALOG_MODE = lv_dialog_mode
         TITLE_TEXT = lv_title_text
         ADDRESS_OBJECT_TYPE = lv_address_object_type
         NO_ADDRESS_REFERENCE = lv_no_address_reference
         INSERT_AND_DELETE_ALLOWED = lv_insert_and_delete_allowed
    IMPORTING
         SELECTED_CONS_NUMBER = lv_selected_cons_number
         DATA_HAS_CHANGED = lv_data_has_changed
         AT_EXIT_COMMAND = lv_at_exit_command
    TABLES
         X400_TABLE = lt_x400_table
         SELECTED_CONS_NUMBERS = lt_selected_cons_numbers
    EXCEPTIONS
        PARAMETER_ERROR = 1
        NO_AUTHORITY = 2
        INTERNAL_ERROR = 3
. " ADDR_COMM_DIALOG_X400




ABAP code using 7.40 inline data declarations to call FM ADDR_COMM_DIALOG_X400

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 ADDRNUMBER FROM ADRC INTO @DATA(ld_address_number).
 
 
"SELECT single CONSNUMBER FROM ADR8 INTO @DATA(ld_selected_cons_number).
 
DATA(ld_iv_time_dependent_comm_data) = ' '.
 
DATA(ld_iv_valid_from) = ' '.
 
DATA(ld_iv_valid_to) = ' '.
 
DATA(ld_iv_timestamp) = ' '.
 
 
 
 
"SELECT single HANDLE FROM SZAD_FIELD INTO @DATA(ld_address_handle).
 
"SELECT single FLAG FROM SZAD_FIELD INTO @DATA(ld_data_has_changed).
 
 
"SELECT single PERSNUMBER FROM ADRP INTO @DATA(ld_person_number).
 
 
"SELECT single FLAG FROM SZAD_FIELD INTO @DATA(ld_at_exit_command).
 
"SELECT single HANDLE FROM SZAD_FIELD INTO @DATA(ld_person_handle).
 
"SELECT single MAINT_MODE FROM SZAD_FIELD INTO @DATA(ld_dialog_mode).
DATA(ld_dialog_mode) = 'DISPLAY'.
 
 
"SELECT single ADDR_TYPE FROM SZAD_FIELD INTO @DATA(ld_address_object_type).
DATA(ld_address_object_type) = '1'.
 
"SELECT single FLAG FROM SZAD_FIELD INTO @DATA(ld_no_address_reference).
 
"SELECT single FLAG FROM SZAD_FIELD INTO @DATA(ld_insert_and_delete_allowed).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!