SAP RSZ_DB_QUERY_GET Function Module for Load Query
RSZ_DB_QUERY_GET is a standard rsz db query get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Load Query 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 rsz db query get FM, simply by entering the name RSZ_DB_QUERY_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: RZD1
Program Name: SAPLRZD1
Main Program: SAPLRZD1
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSZ_DB_QUERY_GET 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 'RSZ_DB_QUERY_GET'"Load Query.
EXPORTING
* I_COMPUID = ' ' "
* I_TH_ELTXREF = "
* I_TH_COMPDIR = "
* I_TH_COMPIC = "
* I_TH_SELECT = "
* I_TH_RANGE = "
* I_TH_CALC = "
* I_TH_CEL = "
* I_TH_GLOBV = "
* I_OBJVERS = RS_C_OBJVERS-ACTIVE "
* I_USE_XREF_BUFFER = "Boolean
* I_CHECK_MODE = "Boolean
* I_TH_ELTDIR = "
* I_TH_ELTTXT = "
* I_TH_ELTPROP = "
* I_TH_ELTPRIO = "
* I_TH_ELTATTR = "
IMPORTING
E_COMPUID = "UUID in Compressed Form
E_TH_MAP = "
E_SUBRC = "Return Value, Return Value After ABAP Statements
E_T_PRPTYS = "Transport structure for query-based properties
E_T_DIM = "Catalog of the dimensions
E_T_ATR = "BRAIN Interface: Attributes->IObj relationship
E_T_MEM = "Catalog of the members of different dimensions
E_T_CEL = "Cell properties
E_T_CON = "Catalog of Conditions and Exceptions
E_T_FAC = "Catalog of Parts of Conditions and Exceptions
IMPORTING Parameters details for RSZ_DB_QUERY_GET
I_COMPUID -
Data type: RSZ_UIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TH_ELTXREF -
Data type: RZD1_TH_ELTXREFOptional: Yes
Call by Reference: Yes
I_TH_COMPDIR -
Data type: RZD1_TH_COMPDIROptional: Yes
Call by Reference: Yes
I_TH_COMPIC -
Data type: RZD1_TH_COMPICOptional: Yes
Call by Reference: Yes
I_TH_SELECT -
Data type: RZD1_TH_SELECTOptional: Yes
Call by Reference: Yes
I_TH_RANGE -
Data type: RZD1_TH_RANGEOptional: Yes
Call by Reference: Yes
I_TH_CALC -
Data type: RZD1_TH_CALCOptional: Yes
Call by Reference: Yes
I_TH_CEL -
Data type: RZD1_TH_CELOptional: Yes
Call by Reference: Yes
I_TH_GLOBV -
Data type: RZD1_TH_GLOBVOptional: Yes
Call by Reference: Yes
I_OBJVERS -
Data type: RS_OBJVERSDefault: RS_C_OBJVERS-ACTIVE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_USE_XREF_BUFFER - Boolean
Data type: RS_BOOLOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CHECK_MODE - Boolean
Data type: RS_BOOLOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TH_ELTDIR -
Data type: RZD1_TH_ELTDIROptional: Yes
Call by Reference: Yes
I_TH_ELTTXT -
Data type: RZD1_TH_ELTTXTOptional: Yes
Call by Reference: Yes
I_TH_ELTPROP -
Data type: RZD1_TH_ELTPROPOptional: Yes
Call by Reference: Yes
I_TH_ELTPRIO -
Data type: RZD1_TH_ELTPRIOOptional: Yes
Call by Reference: Yes
I_TH_ELTATTR -
Data type: RZD1_TH_ELTATTROptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for RSZ_DB_QUERY_GET
E_COMPUID - UUID in Compressed Form
Data type: RSZCOMPDIR-COMPUIDOptional: No
Call by Reference: No ( called with pass by value option)
E_TH_MAP -
Data type: RZD1_TH_MAPOptional: No
Call by Reference: Yes
E_SUBRC - Return Value, Return Value After ABAP Statements
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
E_T_PRPTYS - Transport structure for query-based properties
Data type: RRX1_T_PRPTYSOptional: No
Call by Reference: Yes
E_T_DIM - Catalog of the dimensions
Data type: RRX1_T_DIMOptional: No
Call by Reference: Yes
E_T_ATR - BRAIN Interface: Attributes->IObj relationship
Data type: RRX1_T_ATROptional: No
Call by Reference: Yes
E_T_MEM - Catalog of the members of different dimensions
Data type: RRX1_T_MEMOptional: No
Call by Reference: Yes
E_T_CEL - Cell properties
Data type: RRX1_T_CELOptional: No
Call by Reference: Yes
E_T_CON - Catalog of Conditions and Exceptions
Data type: RRX1_T_CONOptional: No
Call by Reference: Yes
E_T_FAC - Catalog of Parts of Conditions and Exceptions
Data type: RRX1_T_FACOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSZ_DB_QUERY_GET 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_e_compuid | TYPE RSZCOMPDIR-COMPUID, " | |||
| lv_i_compuid | TYPE RSZ_UID, " SPACE | |||
| lv_e_th_map | TYPE RZD1_TH_MAP, " | |||
| lv_i_th_eltxref | TYPE RZD1_TH_ELTXREF, " | |||
| lv_i_th_compdir | TYPE RZD1_TH_COMPDIR, " | |||
| lv_i_th_compic | TYPE RZD1_TH_COMPIC, " | |||
| lv_i_th_select | TYPE RZD1_TH_SELECT, " | |||
| lv_i_th_range | TYPE RZD1_TH_RANGE, " | |||
| lv_i_th_calc | TYPE RZD1_TH_CALC, " | |||
| lv_i_th_cel | TYPE RZD1_TH_CEL, " | |||
| lv_i_th_globv | TYPE RZD1_TH_GLOBV, " | |||
| lv_e_subrc | TYPE SY-SUBRC, " | |||
| lv_i_objvers | TYPE RS_OBJVERS, " RS_C_OBJVERS-ACTIVE | |||
| lv_e_t_prptys | TYPE RRX1_T_PRPTYS, " | |||
| lv_i_use_xref_buffer | TYPE RS_BOOL, " | |||
| lv_e_t_dim | TYPE RRX1_T_DIM, " | |||
| lv_i_check_mode | TYPE RS_BOOL, " | |||
| lv_e_t_atr | TYPE RRX1_T_ATR, " | |||
| lv_i_th_eltdir | TYPE RZD1_TH_ELTDIR, " | |||
| lv_e_t_mem | TYPE RRX1_T_MEM, " | |||
| lv_i_th_elttxt | TYPE RZD1_TH_ELTTXT, " | |||
| lv_e_t_cel | TYPE RRX1_T_CEL, " | |||
| lv_i_th_eltprop | TYPE RZD1_TH_ELTPROP, " | |||
| lv_e_t_con | TYPE RRX1_T_CON, " | |||
| lv_i_th_eltprio | TYPE RZD1_TH_ELTPRIO, " | |||
| lv_e_t_fac | TYPE RRX1_T_FAC, " | |||
| lv_i_th_eltattr | TYPE RZD1_TH_ELTATTR. " |
|   CALL FUNCTION 'RSZ_DB_QUERY_GET' "Load Query |
| EXPORTING | ||
| I_COMPUID | = lv_i_compuid | |
| I_TH_ELTXREF | = lv_i_th_eltxref | |
| I_TH_COMPDIR | = lv_i_th_compdir | |
| I_TH_COMPIC | = lv_i_th_compic | |
| I_TH_SELECT | = lv_i_th_select | |
| I_TH_RANGE | = lv_i_th_range | |
| I_TH_CALC | = lv_i_th_calc | |
| I_TH_CEL | = lv_i_th_cel | |
| I_TH_GLOBV | = lv_i_th_globv | |
| I_OBJVERS | = lv_i_objvers | |
| I_USE_XREF_BUFFER | = lv_i_use_xref_buffer | |
| I_CHECK_MODE | = lv_i_check_mode | |
| I_TH_ELTDIR | = lv_i_th_eltdir | |
| I_TH_ELTTXT | = lv_i_th_elttxt | |
| I_TH_ELTPROP | = lv_i_th_eltprop | |
| I_TH_ELTPRIO | = lv_i_th_eltprio | |
| I_TH_ELTATTR | = lv_i_th_eltattr | |
| IMPORTING | ||
| E_COMPUID | = lv_e_compuid | |
| E_TH_MAP | = lv_e_th_map | |
| E_SUBRC | = lv_e_subrc | |
| E_T_PRPTYS | = lv_e_t_prptys | |
| E_T_DIM | = lv_e_t_dim | |
| E_T_ATR | = lv_e_t_atr | |
| E_T_MEM | = lv_e_t_mem | |
| E_T_CEL | = lv_e_t_cel | |
| E_T_CON | = lv_e_t_con | |
| E_T_FAC | = lv_e_t_fac | |
| . " RSZ_DB_QUERY_GET | ||
ABAP code using 7.40 inline data declarations to call FM RSZ_DB_QUERY_GET
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 COMPUID FROM RSZCOMPDIR INTO @DATA(ld_e_compuid). | ||||
| DATA(ld_i_compuid) | = ' '. | |||
| "SELECT single SUBRC FROM SY INTO @DATA(ld_e_subrc). | ||||
| DATA(ld_i_objvers) | = RS_C_OBJVERS-ACTIVE. | |||
Search for further information about these or an SAP related objects