SAP ADDR_EXP_SUBSCREEN Function Module for









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

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



Function ADDR_EXP_SUBSCREEN 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_EXP_SUBSCREEN'"
EXPORTING
* ADDRESS_NUMBER = ' ' "Address number
* SET_CURSOR_MODE = '1' "Indicator: Automatic Cursor Positioning Permitted
* SPA_GPA_IN_OPTIONAL_ADDRESS = 'X' "
* IV_VALID_FROM = ' ' "Communication Data: Valid From (JJJJMMTTSSMMSS)
* IV_VALID_TO = ' ' "Communication Data: Valid Until (JJJJMMTTSSMMSS)
* IV_SUGGESTED_VALID_FROM = "
* IV_SUGGESTED_VALID_TO = "
* NATION = ' ' "
* ADDRESS_HANDLE = ' ' "Address handle for address creation
* ADDRESS_GROUP = "Address group (key)
* DIALOG_MODE = 'DISPLAY' "Dialog mode: 'CREATE', 'CHANGE', 'DISPLAY'
* SUGGESTED_VALUES = "Field string created with proposals
* SUGGESTED_COMM_VALUES = "
* ADDRESS_IS_OPTIONAL = ' ' "Flag: Address input is optional
* CHECK_ADDRESS = 'X' "Flag: Check address contents
* CURSOR_FIELD = "

EXCEPTIONS
ADDRESS_NOT_EXIST = 1 GROUP_NOT_VALID = 2 PARAMETER_ERROR = 3 INTERNAL_ERROR = 4 NATION_NOT_VALID = 5
.



IMPORTING Parameters details for ADDR_EXP_SUBSCREEN

ADDRESS_NUMBER - Address number

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

SET_CURSOR_MODE - Indicator: Automatic Cursor Positioning Permitted

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

SPA_GPA_IN_OPTIONAL_ADDRESS -

Data type: XFELD
Default: 'X'
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_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

NATION -

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

ADDRESS_HANDLE - Address handle for address creation

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

ADDRESS_GROUP - Address group (key)

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

DIALOG_MODE - Dialog mode: 'CREATE', 'CHANGE', 'DISPLAY'

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

SUGGESTED_VALUES - Field string created with proposals

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

SUGGESTED_COMM_VALUES -

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

ADDRESS_IS_OPTIONAL - Flag: Address input is optional

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

CHECK_ADDRESS - Flag: Check address contents

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

CURSOR_FIELD -

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

EXCEPTIONS details

ADDRESS_NOT_EXIST - Address number does not exist

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

GROUP_NOT_VALID - Address group does not exist or is invalid

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

PARAMETER_ERROR - Invalid parameter values

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

INTERNAL_ERROR - Fatal error (internal)

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

NATION_NOT_VALID -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ADDR_EXP_SUBSCREEN 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_address_number  TYPE ADRC-ADDRNUMBER, "   SPACE
lv_address_not_exist  TYPE ADRC, "   
lv_set_cursor_mode  TYPE AD_SCMODE, "   '1'
lv_spa_gpa_in_optional_address  TYPE XFELD, "   'X'
lv_iv_valid_from  TYPE AD_VALFROM, "   SPACE
lv_iv_valid_to  TYPE AD_VALTO, "   SPACE
lv_iv_suggested_valid_from  TYPE AD_VALFROM, "   
lv_iv_suggested_valid_to  TYPE AD_VALTO, "   
lv_nation  TYPE ADRC-NATION, "   SPACE
lv_address_handle  TYPE SZAD_FIELD-HANDLE, "   SPACE
lv_group_not_valid  TYPE SZAD_FIELD, "   
lv_address_group  TYPE ADRG-ADDR_GROUP, "   
lv_parameter_error  TYPE ADRG, "   
lv_dialog_mode  TYPE SZAD_FIELD-MAINT_MODE, "   'DISPLAY'
lv_internal_error  TYPE SZAD_FIELD, "   
lv_nation_not_valid  TYPE SZAD_FIELD, "   
lv_suggested_values  TYPE ADDR1_DATA, "   
lv_suggested_comm_values  TYPE ADDR1_COMM, "   
lv_address_is_optional  TYPE SZAD_FIELD-FLAG, "   SPACE
lv_check_address  TYPE SZAD_FIELD-FLAG, "   'X'
lv_cursor_field  TYPE SCRFNAME. "   

  CALL FUNCTION 'ADDR_EXP_SUBSCREEN'  "
    EXPORTING
         ADDRESS_NUMBER = lv_address_number
         SET_CURSOR_MODE = lv_set_cursor_mode
         SPA_GPA_IN_OPTIONAL_ADDRESS = lv_spa_gpa_in_optional_address
         IV_VALID_FROM = lv_iv_valid_from
         IV_VALID_TO = lv_iv_valid_to
         IV_SUGGESTED_VALID_FROM = lv_iv_suggested_valid_from
         IV_SUGGESTED_VALID_TO = lv_iv_suggested_valid_to
         NATION = lv_nation
         ADDRESS_HANDLE = lv_address_handle
         ADDRESS_GROUP = lv_address_group
         DIALOG_MODE = lv_dialog_mode
         SUGGESTED_VALUES = lv_suggested_values
         SUGGESTED_COMM_VALUES = lv_suggested_comm_values
         ADDRESS_IS_OPTIONAL = lv_address_is_optional
         CHECK_ADDRESS = lv_check_address
         CURSOR_FIELD = lv_cursor_field
    EXCEPTIONS
        ADDRESS_NOT_EXIST = 1
        GROUP_NOT_VALID = 2
        PARAMETER_ERROR = 3
        INTERNAL_ERROR = 4
        NATION_NOT_VALID = 5
. " ADDR_EXP_SUBSCREEN




ABAP code using 7.40 inline data declarations to call FM ADDR_EXP_SUBSCREEN

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).
DATA(ld_address_number) = ' '.
 
 
DATA(ld_set_cursor_mode) = '1'.
 
DATA(ld_spa_gpa_in_optional_address) = 'X'.
 
DATA(ld_iv_valid_from) = ' '.
 
DATA(ld_iv_valid_to) = ' '.
 
 
 
"SELECT single NATION FROM ADRC INTO @DATA(ld_nation).
DATA(ld_nation) = ' '.
 
"SELECT single HANDLE FROM SZAD_FIELD INTO @DATA(ld_address_handle).
DATA(ld_address_handle) = ' '.
 
 
"SELECT single ADDR_GROUP FROM ADRG INTO @DATA(ld_address_group).
 
 
"SELECT single MAINT_MODE FROM SZAD_FIELD INTO @DATA(ld_dialog_mode).
DATA(ld_dialog_mode) = 'DISPLAY'.
 
 
 
 
 
"SELECT single FLAG FROM SZAD_FIELD INTO @DATA(ld_address_is_optional).
DATA(ld_address_is_optional) = ' '.
 
"SELECT single FLAG FROM SZAD_FIELD INTO @DATA(ld_check_address).
DATA(ld_check_address) = 'X'.
 
 


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!