SAP SZRS_O_ADRPSTCODE_OPEN Function Module for
SZRS_O_ADRPSTCODE_OPEN is a standard szrs o adrpstcode open 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 o adrpstcode open FM, simply by entering the name SZRS_O_ADRPSTCODE_OPEN into the relevant SAP transaction such as SE37 or SE38.
Function Group: SZRP
Program Name: SAPLSZRP
Main Program: SAPLSZRP
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SZRS_O_ADRPSTCODE_OPEN 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_O_ADRPSTCODE_OPEN'".
EXPORTING
X_COUNTRY = "Country
* X_NO_OTHER = "
X_POST_CODE = "City Number
* X_NRNR = "Number Range
X_WMODE = "
* X_UPD_ONLINE = "Flag: Update directly online
* X_NO_DIALOG = "
* X_AUTO = "Automation data for controlling object
* X_DB_ADRPSTCODE = "
* X_NO_CHANGE = "
IMPORTING
Y_OBJ = "Object Data
Y_AUTO = "
EXCEPTIONS
NOT_FOUND = 1 EXISTING = 2 FOREIGN_LOCK = 3 NUMBER_ERROR = 4 SYSTEM_ERROR = 5 NO_COUNTRY = 6 NO_NUMBER = 7 WRONG_FORMAT = 8 DATA_INCONSISTENCY = 9
IMPORTING Parameters details for SZRS_O_ADRPSTCODE_OPEN
X_COUNTRY - Country
Data type: ADRPSTCODE-COUNTRYOptional: No
Call by Reference: No ( called with pass by value option)
X_NO_OTHER -
Data type: RSGEN-NO_OTHEROptional: Yes
Call by Reference: No ( called with pass by value option)
X_POST_CODE - City Number
Data type: ADRPSTCODE-POST_CODEOptional: No
Call by Reference: No ( called with pass by value option)
X_NRNR - Number Range
Data type: ADRPSTCDD-NRNROptional: Yes
Call by Reference: No ( called with pass by value option)
X_WMODE -
Data type: RSGEN-WMODEOptional: No
Call by Reference: No ( called with pass by value option)
X_UPD_ONLINE - Flag: Update directly online
Data type: RSGEN-UPD_ONLINEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_NO_DIALOG -
Data type: RSGEN-NO_DIALOGOptional: Yes
Call by Reference: No ( called with pass by value option)
X_AUTO - Automation data for controlling object
Data type: RS001_ADRPSTCODE_AUTOOptional: Yes
Call by Reference: Yes
X_DB_ADRPSTCODE -
Data type: ADRPSTCODEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_NO_CHANGE -
Data type: RSGEN-NO_CHANGEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SZRS_O_ADRPSTCODE_OPEN
Y_OBJ - Object Data
Data type: RS001_ADRPSTCODEOptional: No
Call by Reference: Yes
Y_AUTO -
Data type: RS001_ADRPSTCODE_AUTOOptional: No
Call by Reference: Yes
EXCEPTIONS details
NOT_FOUND - Object Not Found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXISTING - Object Already Exists
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)
NUMBER_ERROR - Error in Number Assignment
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SYSTEM_ERROR - General system error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_COUNTRY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_NUMBER -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_FORMAT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DATA_INCONSISTENCY - Inconsistent data
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SZRS_O_ADRPSTCODE_OPEN 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_y_obj | TYPE RS001_ADRPSTCODE, " | |||
| lv_not_found | TYPE RS001_ADRPSTCODE, " | |||
| lv_x_country | TYPE ADRPSTCODE-COUNTRY, " | |||
| lv_x_no_other | TYPE RSGEN-NO_OTHER, " | |||
| lv_y_auto | TYPE RS001_ADRPSTCODE_AUTO, " | |||
| lv_existing | TYPE RS001_ADRPSTCODE_AUTO, " | |||
| lv_x_post_code | TYPE ADRPSTCODE-POST_CODE, " | |||
| lv_x_nrnr | TYPE ADRPSTCDD-NRNR, " | |||
| lv_foreign_lock | TYPE ADRPSTCDD, " | |||
| lv_x_wmode | TYPE RSGEN-WMODE, " | |||
| lv_number_error | TYPE RSGEN, " | |||
| lv_system_error | TYPE RSGEN, " | |||
| lv_x_upd_online | TYPE RSGEN-UPD_ONLINE, " | |||
| lv_no_country | TYPE RSGEN, " | |||
| lv_x_no_dialog | TYPE RSGEN-NO_DIALOG, " | |||
| lv_x_auto | TYPE RS001_ADRPSTCODE_AUTO, " | |||
| lv_no_number | TYPE RS001_ADRPSTCODE_AUTO, " | |||
| lv_wrong_format | TYPE RS001_ADRPSTCODE_AUTO, " | |||
| lv_x_db_adrpstcode | TYPE ADRPSTCODE, " | |||
| lv_x_no_change | TYPE RSGEN-NO_CHANGE, " | |||
| lv_data_inconsistency | TYPE RSGEN. " |
|   CALL FUNCTION 'SZRS_O_ADRPSTCODE_OPEN' " |
| EXPORTING | ||
| X_COUNTRY | = lv_x_country | |
| X_NO_OTHER | = lv_x_no_other | |
| X_POST_CODE | = lv_x_post_code | |
| X_NRNR | = lv_x_nrnr | |
| X_WMODE | = lv_x_wmode | |
| X_UPD_ONLINE | = lv_x_upd_online | |
| X_NO_DIALOG | = lv_x_no_dialog | |
| X_AUTO | = lv_x_auto | |
| X_DB_ADRPSTCODE | = lv_x_db_adrpstcode | |
| X_NO_CHANGE | = lv_x_no_change | |
| IMPORTING | ||
| Y_OBJ | = lv_y_obj | |
| Y_AUTO | = lv_y_auto | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| EXISTING = 2 | ||
| FOREIGN_LOCK = 3 | ||
| NUMBER_ERROR = 4 | ||
| SYSTEM_ERROR = 5 | ||
| NO_COUNTRY = 6 | ||
| NO_NUMBER = 7 | ||
| WRONG_FORMAT = 8 | ||
| DATA_INCONSISTENCY = 9 | ||
| . " SZRS_O_ADRPSTCODE_OPEN | ||
ABAP code using 7.40 inline data declarations to call FM SZRS_O_ADRPSTCODE_OPEN
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 ADRPSTCODE INTO @DATA(ld_x_country). | ||||
| "SELECT single NO_OTHER FROM RSGEN INTO @DATA(ld_x_no_other). | ||||
| "SELECT single POST_CODE FROM ADRPSTCODE INTO @DATA(ld_x_post_code). | ||||
| "SELECT single NRNR FROM ADRPSTCDD INTO @DATA(ld_x_nrnr). | ||||
| "SELECT single WMODE FROM RSGEN INTO @DATA(ld_x_wmode). | ||||
| "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_CHANGE FROM RSGEN INTO @DATA(ld_x_no_change). | ||||
Search for further information about these or an SAP related objects