SAP ADDR_PERS_COMP_DIALOG_PREPARE Function Module for Sets address maintenance special case parameters (contact person)
ADDR_PERS_COMP_DIALOG_PREPARE is a standard addr pers comp dialog prepare SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Sets address maintenance special case parameters (contact person) processing and below is the pattern details for this FM, 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 pers comp dialog prepare FM, simply by entering the name ADDR_PERS_COMP_DIALOG_PREPARE into the relevant SAP transaction such as SE37 or SE38.
Function Group: SZA5
Program Name: SAPLSZA5
Main Program: SAPLSZA5
Appliation area: S
Release date: 02-Sep-1999
Mode(Normal, Remote etc): Normal Function Module
Update:
Function ADDR_PERS_COMP_DIALOG_PREPARE 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_PERS_COMP_DIALOG_PREPARE'"Sets address maintenance special case parameters (contact person).
EXPORTING
* FIELD_SELECTION_COMP = ' ' "Field selection control template (company)
* CHANGE_DEFAULT_COMM_TYPES_C = ' ' "Communication type on/off (company)
* CHANGE_DEFAULT_COMM_TYPES_PC = ' ' "Communication type on/off (contact person)
* FRAME_TEXT = ' ' "Dynamic frame texts
* DEFAULT_URI_TYPE = ' ' "URI type proposal value
* MAINTAIN_SSF_PROFILE = ' ' "Show SSF profile and RFC destination
* SHOW_HOMEFLAG = ' ' "Show Homeflag button
* SHOW_PUSHBOTTONS_AT_TOP = ' ' "Display toolbar (subscreen only)
* USE_PSEUDO_REQUIRED_FIELDS = ' ' "Display Required Entry Fields as Pseudo Required Entry Fields
* IV_TIME_DEPENDENCE = ' ' "Time-Specific Maintenance of Communication Data
* FIELD_SELECTION_PERS_COMP = ' ' "Contact person field selection control template
* FS_COMP_FOR_NATION = ' ' "Field Selection Control Structure (Bus. Address Services)
* FS_PERS_COMP_FOR_NATION = ' ' "Field Selection Control Structure (Bus. Address Services)
* USE_FS_FOR_NATION = ' ' "Checkbox field
* KEYWORDS_COMP = ' ' "Dynamic keywords structure (company)
* KEYWORDS_PERS_COMP = ' ' "Dynamic keywords structure (contact person)
* TITLEBAR_COMP = ' ' "Maintenance screen title line (company)
* TITLEBAR_PERS_COMP = ' ' "Maintenance screen title line (contact person)
TABLES
* EXCLUDED_FUNCTIONS_COMP = "Functions to be excluded (GUI status; company)
* EXCLUDED_FUNCTIONS_PERS_COMP = "Functions to be excluded (contact person)
* INCLUDED_FUNCTIONS_PERS_COMP = "Additional functions (assign other company)
* ERROR_TABLE = "Table with errors, warnings, information
EXCEPTIONS
INTERNAL_ERROR = 1
IMPORTING Parameters details for ADDR_PERS_COMP_DIALOG_PREPARE
FIELD_SELECTION_COMP - Field selection control template (company)
Data type: ADDR1_FSEL-FISELDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGE_DEFAULT_COMM_TYPES_C - Communication type on/off (company)
Data type: ADDR_COMMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGE_DEFAULT_COMM_TYPES_PC - Communication type on/off (contact person)
Data type: ADDR_COMMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FRAME_TEXT - Dynamic frame texts
Data type: ADDR_FRAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DEFAULT_URI_TYPE - URI type proposal value
Data type: ADURI-URI_TYPEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MAINTAIN_SSF_PROFILE - Show SSF profile and RFC destination
Data type: SZAD_FIELD-FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SHOW_HOMEFLAG - Show Homeflag button
Data type: SZAD_FIELD-FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SHOW_PUSHBOTTONS_AT_TOP - Display toolbar (subscreen only)
Data type: SZAD_FIELD-FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
USE_PSEUDO_REQUIRED_FIELDS - Display Required Entry Fields as Pseudo Required Entry Fields
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_TIME_DEPENDENCE - Time-Specific Maintenance of Communication Data
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FIELD_SELECTION_PERS_COMP - Contact person field selection control template
Data type: ADDR3_FSEL-FISELDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FS_COMP_FOR_NATION - Field Selection Control Structure (Bus. Address Services)
Data type: ADDR1_FSEL-FISELDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FS_PERS_COMP_FOR_NATION - Field Selection Control Structure (Bus. Address Services)
Data type: ADDR3_FSEL-FISELDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
USE_FS_FOR_NATION - Checkbox field
Data type: SZAD_FIELD-FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KEYWORDS_COMP - Dynamic keywords structure (company)
Data type: ADDR1_KEYWDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KEYWORDS_PERS_COMP - Dynamic keywords structure (contact person)
Data type: ADDR3_KEYWDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TITLEBAR_COMP - Maintenance screen title line (company)
Data type: SY-TITLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TITLEBAR_PERS_COMP - Maintenance screen title line (contact person)
Data type: SY-TITLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ADDR_PERS_COMP_DIALOG_PREPARE
EXCLUDED_FUNCTIONS_COMP - Functions to be excluded (GUI status; company)
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCLUDED_FUNCTIONS_PERS_COMP - Functions to be excluded (contact person)
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
INCLUDED_FUNCTIONS_PERS_COMP - Additional functions (assign other company)
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
ERROR_TABLE - Table with errors, warnings, information
Data type: ADDR_ERROROptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INTERNAL_ERROR - Serious internal error (MESSAGE A...)
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ADDR_PERS_COMP_DIALOG_PREPARE 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_internal_error | TYPE STRING, " | |||
lv_field_selection_comp | TYPE ADDR1_FSEL-FISEL, " SPACE | |||
lt_excluded_functions_comp | TYPE STANDARD TABLE OF ADDR1_FSEL, " | |||
lv_change_default_comm_types_c | TYPE ADDR_COMM, " SPACE | |||
lv_change_default_comm_types_pc | TYPE ADDR_COMM, " SPACE | |||
lv_frame_text | TYPE ADDR_FRAME, " SPACE | |||
lv_default_uri_type | TYPE ADURI-URI_TYPE, " SPACE | |||
lv_maintain_ssf_profile | TYPE SZAD_FIELD-FLAG, " SPACE | |||
lv_show_homeflag | TYPE SZAD_FIELD-FLAG, " SPACE | |||
lv_show_pushbottons_at_top | TYPE SZAD_FIELD-FLAG, " SPACE | |||
lv_use_pseudo_required_fields | TYPE XFELD, " SPACE | |||
lv_iv_time_dependence | TYPE XFELD, " SPACE | |||
lv_field_selection_pers_comp | TYPE ADDR3_FSEL-FISEL, " SPACE | |||
lt_excluded_functions_pers_comp | TYPE STANDARD TABLE OF ADDR3_FSEL, " | |||
lv_fs_comp_for_nation | TYPE ADDR1_FSEL-FISEL, " SPACE | |||
lt_included_functions_pers_comp | TYPE STANDARD TABLE OF ADDR1_FSEL, " | |||
lt_error_table | TYPE STANDARD TABLE OF ADDR_ERROR, " | |||
lv_fs_pers_comp_for_nation | TYPE ADDR3_FSEL-FISEL, " SPACE | |||
lv_use_fs_for_nation | TYPE SZAD_FIELD-FLAG, " SPACE | |||
lv_keywords_comp | TYPE ADDR1_KEYW, " SPACE | |||
lv_keywords_pers_comp | TYPE ADDR3_KEYW, " SPACE | |||
lv_titlebar_comp | TYPE SY-TITLE, " SPACE | |||
lv_titlebar_pers_comp | TYPE SY-TITLE. " SPACE |
  CALL FUNCTION 'ADDR_PERS_COMP_DIALOG_PREPARE' "Sets address maintenance special case parameters (contact person) |
EXPORTING | ||
FIELD_SELECTION_COMP | = lv_field_selection_comp | |
CHANGE_DEFAULT_COMM_TYPES_C | = lv_change_default_comm_types_c | |
CHANGE_DEFAULT_COMM_TYPES_PC | = lv_change_default_comm_types_pc | |
FRAME_TEXT | = lv_frame_text | |
DEFAULT_URI_TYPE | = lv_default_uri_type | |
MAINTAIN_SSF_PROFILE | = lv_maintain_ssf_profile | |
SHOW_HOMEFLAG | = lv_show_homeflag | |
SHOW_PUSHBOTTONS_AT_TOP | = lv_show_pushbottons_at_top | |
USE_PSEUDO_REQUIRED_FIELDS | = lv_use_pseudo_required_fields | |
IV_TIME_DEPENDENCE | = lv_iv_time_dependence | |
FIELD_SELECTION_PERS_COMP | = lv_field_selection_pers_comp | |
FS_COMP_FOR_NATION | = lv_fs_comp_for_nation | |
FS_PERS_COMP_FOR_NATION | = lv_fs_pers_comp_for_nation | |
USE_FS_FOR_NATION | = lv_use_fs_for_nation | |
KEYWORDS_COMP | = lv_keywords_comp | |
KEYWORDS_PERS_COMP | = lv_keywords_pers_comp | |
TITLEBAR_COMP | = lv_titlebar_comp | |
TITLEBAR_PERS_COMP | = lv_titlebar_pers_comp | |
TABLES | ||
EXCLUDED_FUNCTIONS_COMP | = lt_excluded_functions_comp | |
EXCLUDED_FUNCTIONS_PERS_COMP | = lt_excluded_functions_pers_comp | |
INCLUDED_FUNCTIONS_PERS_COMP | = lt_included_functions_pers_comp | |
ERROR_TABLE | = lt_error_table | |
EXCEPTIONS | ||
INTERNAL_ERROR = 1 | ||
. " ADDR_PERS_COMP_DIALOG_PREPARE |
ABAP code using 7.40 inline data declarations to call FM ADDR_PERS_COMP_DIALOG_PREPARE
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 FISEL FROM ADDR1_FSEL INTO @DATA(ld_field_selection_comp). | ||||
DATA(ld_field_selection_comp) | = ' '. | |||
DATA(ld_change_default_comm_types_c) | = ' '. | |||
DATA(ld_change_default_comm_types_pc) | = ' '. | |||
DATA(ld_frame_text) | = ' '. | |||
"SELECT single URI_TYPE FROM ADURI INTO @DATA(ld_default_uri_type). | ||||
DATA(ld_default_uri_type) | = ' '. | |||
"SELECT single FLAG FROM SZAD_FIELD INTO @DATA(ld_maintain_ssf_profile). | ||||
DATA(ld_maintain_ssf_profile) | = ' '. | |||
"SELECT single FLAG FROM SZAD_FIELD INTO @DATA(ld_show_homeflag). | ||||
DATA(ld_show_homeflag) | = ' '. | |||
"SELECT single FLAG FROM SZAD_FIELD INTO @DATA(ld_show_pushbottons_at_top). | ||||
DATA(ld_show_pushbottons_at_top) | = ' '. | |||
DATA(ld_use_pseudo_required_fields) | = ' '. | |||
DATA(ld_iv_time_dependence) | = ' '. | |||
"SELECT single FISEL FROM ADDR3_FSEL INTO @DATA(ld_field_selection_pers_comp). | ||||
DATA(ld_field_selection_pers_comp) | = ' '. | |||
"SELECT single FISEL FROM ADDR1_FSEL INTO @DATA(ld_fs_comp_for_nation). | ||||
DATA(ld_fs_comp_for_nation) | = ' '. | |||
"SELECT single FISEL FROM ADDR3_FSEL INTO @DATA(ld_fs_pers_comp_for_nation). | ||||
DATA(ld_fs_pers_comp_for_nation) | = ' '. | |||
"SELECT single FLAG FROM SZAD_FIELD INTO @DATA(ld_use_fs_for_nation). | ||||
DATA(ld_use_fs_for_nation) | = ' '. | |||
DATA(ld_keywords_comp) | = ' '. | |||
DATA(ld_keywords_pers_comp) | = ' '. | |||
"SELECT single TITLE FROM SY INTO @DATA(ld_titlebar_comp). | ||||
DATA(ld_titlebar_comp) | = ' '. | |||
"SELECT single TITLE FROM SY INTO @DATA(ld_titlebar_pers_comp). | ||||
DATA(ld_titlebar_pers_comp) | = ' '. | |||
Search for further information about these or an SAP related objects