SAP RSZ_0_DB_COMP_GET Function Module for TEST: Load Component and All Its Dependent Components
RSZ_0_DB_COMP_GET is a standard rsz 0 db comp 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 TEST: Load Component and All Its Dependent Components 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 0 db comp get FM, simply by entering the name RSZ_0_DB_COMP_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: RZD1
Program Name: SAPLRZD1
Main Program: SAPLRZD1
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSZ_0_DB_COMP_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_0_DB_COMP_GET'"TEST: Load Component and All Its Dependent Components.
EXPORTING
* I_COMPID = "
* I_OBJVERS = RS_C_OBJVERS-ACTIVE "
IMPORTING
E_T_ELTDIR = "
E_T_SELECT = "
E_T_RANGE = "
E_T_CALC = "
E_T_CEL = "
E_T_GLOBV = "
E_T_ELTTXT = "
E_T_ELTPROP = "
E_T_ELTPRIO = "
E_T_ELTATTR = "
E_T_ELTXREF = "
E_T_COMPDIR = "
E_T_COMPIC = "
E_T_CHANGES = "
CHANGING
* C_COMPUID = "
EXCEPTIONS
COMPONENT_NOT_FOUND = 1
IMPORTING Parameters details for RSZ_0_DB_COMP_GET
I_COMPID -
Data type: RZD1_COMPIDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_OBJVERS -
Data type: RS_OBJVERSDefault: RS_C_OBJVERS-ACTIVE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RSZ_0_DB_COMP_GET
E_T_ELTDIR -
Data type: RZD1_T_ELTDIROptional: No
Call by Reference: No ( called with pass by value option)
E_T_SELECT -
Data type: RZD1_T_SELECTOptional: No
Call by Reference: No ( called with pass by value option)
E_T_RANGE -
Data type: RZD1_T_RANGEOptional: No
Call by Reference: No ( called with pass by value option)
E_T_CALC -
Data type: RZD1_T_CALCOptional: No
Call by Reference: No ( called with pass by value option)
E_T_CEL -
Data type: RZD1_T_CELOptional: No
Call by Reference: No ( called with pass by value option)
E_T_GLOBV -
Data type: RZD1_T_GLOBVOptional: No
Call by Reference: No ( called with pass by value option)
E_T_ELTTXT -
Data type: RZD1_T_ELTTXTOptional: No
Call by Reference: No ( called with pass by value option)
E_T_ELTPROP -
Data type: RZD1_T_ELTPROPOptional: No
Call by Reference: No ( called with pass by value option)
E_T_ELTPRIO -
Data type: RZD1_T_ELTPRIOOptional: No
Call by Reference: No ( called with pass by value option)
E_T_ELTATTR -
Data type: RZD1_T_ELTATTROptional: No
Call by Reference: No ( called with pass by value option)
E_T_ELTXREF -
Data type: RZD1_T_ELTXREFOptional: No
Call by Reference: No ( called with pass by value option)
E_T_COMPDIR -
Data type: RZD1_T_COMPDIROptional: No
Call by Reference: No ( called with pass by value option)
E_T_COMPIC -
Data type: RZD1_T_COMPICOptional: No
Call by Reference: No ( called with pass by value option)
E_T_CHANGES -
Data type: RZD1_T_CHANGESOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for RSZ_0_DB_COMP_GET
C_COMPUID -
Data type: RSZ_UIDOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
COMPONENT_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSZ_0_DB_COMP_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_i_compid | TYPE RZD1_COMPID, " | |||
| lv_c_compuid | TYPE RSZ_UID, " | |||
| lv_e_t_eltdir | TYPE RZD1_T_ELTDIR, " | |||
| lv_component_not_found | TYPE RZD1_T_ELTDIR, " | |||
| lv_e_t_select | TYPE RZD1_T_SELECT, " | |||
| lv_e_t_range | TYPE RZD1_T_RANGE, " | |||
| lv_e_t_calc | TYPE RZD1_T_CALC, " | |||
| lv_e_t_cel | TYPE RZD1_T_CEL, " | |||
| lv_e_t_globv | TYPE RZD1_T_GLOBV, " | |||
| lv_i_objvers | TYPE RS_OBJVERS, " RS_C_OBJVERS-ACTIVE | |||
| lv_e_t_elttxt | TYPE RZD1_T_ELTTXT, " | |||
| lv_e_t_eltprop | TYPE RZD1_T_ELTPROP, " | |||
| lv_e_t_eltprio | TYPE RZD1_T_ELTPRIO, " | |||
| lv_e_t_eltattr | TYPE RZD1_T_ELTATTR, " | |||
| lv_e_t_eltxref | TYPE RZD1_T_ELTXREF, " | |||
| lv_e_t_compdir | TYPE RZD1_T_COMPDIR, " | |||
| lv_e_t_compic | TYPE RZD1_T_COMPIC, " | |||
| lv_e_t_changes | TYPE RZD1_T_CHANGES. " |
|   CALL FUNCTION 'RSZ_0_DB_COMP_GET' "TEST: Load Component and All Its Dependent Components |
| EXPORTING | ||
| I_COMPID | = lv_i_compid | |
| I_OBJVERS | = lv_i_objvers | |
| IMPORTING | ||
| E_T_ELTDIR | = lv_e_t_eltdir | |
| E_T_SELECT | = lv_e_t_select | |
| E_T_RANGE | = lv_e_t_range | |
| E_T_CALC | = lv_e_t_calc | |
| E_T_CEL | = lv_e_t_cel | |
| E_T_GLOBV | = lv_e_t_globv | |
| E_T_ELTTXT | = lv_e_t_elttxt | |
| E_T_ELTPROP | = lv_e_t_eltprop | |
| E_T_ELTPRIO | = lv_e_t_eltprio | |
| E_T_ELTATTR | = lv_e_t_eltattr | |
| E_T_ELTXREF | = lv_e_t_eltxref | |
| E_T_COMPDIR | = lv_e_t_compdir | |
| E_T_COMPIC | = lv_e_t_compic | |
| E_T_CHANGES | = lv_e_t_changes | |
| CHANGING | ||
| C_COMPUID | = lv_c_compuid | |
| EXCEPTIONS | ||
| COMPONENT_NOT_FOUND = 1 | ||
| . " RSZ_0_DB_COMP_GET | ||
ABAP code using 7.40 inline data declarations to call FM RSZ_0_DB_COMP_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.| DATA(ld_i_objvers) | = RS_C_OBJVERS-ACTIVE. | |||
Search for further information about these or an SAP related objects