SAP SZRS_DB_REGIOGROUP_SINGLE Function Module for









SZRS_DB_REGIOGROUP_SINGLE is a standard szrs db regiogroup single 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 db regiogroup single FM, simply by entering the name SZRS_DB_REGIOGROUP_SINGLE into the relevant SAP transaction such as SE37 or SE38.

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



Function SZRS_DB_REGIOGROUP_SINGLE 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_DB_REGIOGROUP_SINGLE'"
EXPORTING
X_REGIOGROUP = "Regional group
* X_LANGU = SY-LANGU "Language
* X_ACTUAL = "
* IV_ALSO_DISABLED = ' ' "

IMPORTING
Y_ADRREGGRP = "
Y_ADRREGGRPT = "

EXCEPTIONS
NOT_FOUND = 1
.



IMPORTING Parameters details for SZRS_DB_REGIOGROUP_SINGLE

X_REGIOGROUP - Regional group

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

X_LANGU - Language

Data type: ADRREGGRPT-LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_ACTUAL -

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

IV_ALSO_DISABLED -

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for SZRS_DB_REGIOGROUP_SINGLE

Y_ADRREGGRP -

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

Y_ADRREGGRPT -

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

EXCEPTIONS details

NOT_FOUND - Record does not exist

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

Copy and paste ABAP code example for SZRS_DB_REGIOGROUP_SINGLE 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_y_adrreggrp  TYPE ADRREGGRP, "   
lv_x_regiogroup  TYPE ADRREGGRP-REGIOGROUP, "   
lv_x_langu  TYPE ADRREGGRPT-LANGU, "   SY-LANGU
lv_y_adrreggrpt  TYPE ADRREGGRPT, "   
lv_x_actual  TYPE SY-BATCH, "   
lv_iv_also_disabled  TYPE XFELD. "   SPACE

  CALL FUNCTION 'SZRS_DB_REGIOGROUP_SINGLE'  "
    EXPORTING
         X_REGIOGROUP = lv_x_regiogroup
         X_LANGU = lv_x_langu
         X_ACTUAL = lv_x_actual
         IV_ALSO_DISABLED = lv_iv_also_disabled
    IMPORTING
         Y_ADRREGGRP = lv_y_adrreggrp
         Y_ADRREGGRPT = lv_y_adrreggrpt
    EXCEPTIONS
        NOT_FOUND = 1
. " SZRS_DB_REGIOGROUP_SINGLE




ABAP code using 7.40 inline data declarations to call FM SZRS_DB_REGIOGROUP_SINGLE

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 REGIOGROUP FROM ADRREGGRP INTO @DATA(ld_x_regiogroup).
 
"SELECT single LANGU FROM ADRREGGRPT INTO @DATA(ld_x_langu).
DATA(ld_x_langu) = SY-LANGU.
 
 
"SELECT single BATCH FROM SY INTO @DATA(ld_x_actual).
 
DATA(ld_iv_also_disabled) = ' '.
 


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!