SAP SZRS_S_ADRSTREET_CHANGE Function Module for









SZRS_S_ADRSTREET_CHANGE is a standard szrs s adrstreet change 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 szrs s adrstreet change FM, simply by entering the name SZRS_S_ADRSTREET_CHANGE into the relevant SAP transaction such as SE37 or SE38.

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



Function SZRS_S_ADRSTREET_CHANGE 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 'SZRS_S_ADRSTREET_CHANGE'"
EXPORTING
X_COUNTRY = "Country
X_LANGU = "Language
X_STRT_CODE = "Street Number
* X_UPD_ONLINE = "
* X_NO_DIALOG = "
* X_NO_OTHER = "
* X_AUTO = "
* X_OBJ = "

IMPORTING
Y_DB_UPDATE = "
Y_EXIT_TYPE = "
Y_NEW_ADRSTREET = "
Y_NEW_ADRSTREETT = "

EXCEPTIONS
NOT_FOUND = 1 FOREIGN_LOCK = 2 GENERAL_FAULT = 3 INPUT_ERROR = 4 INVALID_AUTO = 5
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLSZRT_001

IMPORTING Parameters details for SZRS_S_ADRSTREET_CHANGE

X_COUNTRY - Country

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

X_LANGU - Language

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

X_STRT_CODE - Street Number

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

X_UPD_ONLINE -

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

X_NO_DIALOG -

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

X_NO_OTHER -

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

X_AUTO -

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

X_OBJ -

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

EXPORTING Parameters details for SZRS_S_ADRSTREET_CHANGE

Y_DB_UPDATE -

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

Y_EXIT_TYPE -

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

Y_NEW_ADRSTREET -

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

Y_NEW_ADRSTREETT -

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

EXCEPTIONS details

NOT_FOUND - Object does not exist

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

FOREIGN_LOCK -

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

GENERAL_FAULT - Other

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

INPUT_ERROR -

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

INVALID_AUTO -

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

Copy and paste ABAP code example for SZRS_S_ADRSTREET_CHANGE 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_not_found  TYPE STRING, "   
lv_x_country  TYPE ADRSTREET-COUNTRY, "   
lv_y_db_update  TYPE RSGEN-DB_UPDATE, "   
lv_x_langu  TYPE ADRSTREETT-LANGU, "   
lv_y_exit_type  TYPE RSGEN-EXIT_TYPE, "   
lv_foreign_lock  TYPE RSGEN, "   
lv_x_strt_code  TYPE ADRSTREET-STRT_CODE, "   
lv_general_fault  TYPE ADRSTREET, "   
lv_y_new_adrstreet  TYPE ADRSTREET, "   
lv_input_error  TYPE ADRSTREET, "   
lv_x_upd_online  TYPE RSGEN-UPD_ONLINE, "   
lv_y_new_adrstreett  TYPE ADRSTREETT, "   
lv_x_no_dialog  TYPE RSGEN-NO_DIALOG, "   
lv_invalid_auto  TYPE RSGEN, "   
lv_x_no_other  TYPE RSGEN-NO_OTHER, "   
lv_x_auto  TYPE RS001_ADRSTREET_AUTO, "   
lv_x_obj  TYPE RS001_ADRSTREET. "   

  CALL FUNCTION 'SZRS_S_ADRSTREET_CHANGE'  "
    EXPORTING
         X_COUNTRY = lv_x_country
         X_LANGU = lv_x_langu
         X_STRT_CODE = lv_x_strt_code
         X_UPD_ONLINE = lv_x_upd_online
         X_NO_DIALOG = lv_x_no_dialog
         X_NO_OTHER = lv_x_no_other
         X_AUTO = lv_x_auto
         X_OBJ = lv_x_obj
    IMPORTING
         Y_DB_UPDATE = lv_y_db_update
         Y_EXIT_TYPE = lv_y_exit_type
         Y_NEW_ADRSTREET = lv_y_new_adrstreet
         Y_NEW_ADRSTREETT = lv_y_new_adrstreett
    EXCEPTIONS
        NOT_FOUND = 1
        FOREIGN_LOCK = 2
        GENERAL_FAULT = 3
        INPUT_ERROR = 4
        INVALID_AUTO = 5
. " SZRS_S_ADRSTREET_CHANGE




ABAP code using 7.40 inline data declarations to call FM SZRS_S_ADRSTREET_CHANGE

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 COUNTRY FROM ADRSTREET INTO @DATA(ld_x_country).
 
"SELECT single DB_UPDATE FROM RSGEN INTO @DATA(ld_y_db_update).
 
"SELECT single LANGU FROM ADRSTREETT INTO @DATA(ld_x_langu).
 
"SELECT single EXIT_TYPE FROM RSGEN INTO @DATA(ld_y_exit_type).
 
 
"SELECT single STRT_CODE FROM ADRSTREET INTO @DATA(ld_x_strt_code).
 
 
 
 
"SELECT single UPD_ONLINE FROM RSGEN INTO @DATA(ld_x_upd_online).
 
 
"SELECT single NO_DIALOG FROM RSGEN INTO @DATA(ld_x_no_dialog).
 
 
"SELECT single NO_OTHER FROM RSGEN INTO @DATA(ld_x_no_other).
 
 
 


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!