SAP RSZ_P_DB_RESOLVE_XREF Function Module for PRIVATE: Resolve Element Cross Reference
RSZ_P_DB_RESOLVE_XREF is a standard rsz p db resolve xref SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for PRIVATE: Resolve Element Cross Reference 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 p db resolve xref FM, simply by entering the name RSZ_P_DB_RESOLVE_XREF 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_P_DB_RESOLVE_XREF 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_P_DB_RESOLVE_XREF'"PRIVATE: Resolve Element Cross Reference.
EXPORTING
* I_TEMPLATE_TYPE = RZD1_C_DEFTP-NOTHING "
* I_INFOCUBE = "
* I_VARIABLE_TYPES = "
* I_VARIABLE_INFOOBJECT = "
* I_ELTUID = ' ' "Element searched for
* I_OBJVERS = RS_C_OBJVERS-ACTIVE "
* I_T_ELTUID = "
* I_USE_BUFFER = "
IMPORTING
E_TH_ELTDIR = "Directory of All Related Elements
E_TH_ELTXREF = "Xref of Dependent Elements
E_TH_COMPDIR = "Component Directory
E_TH_REF_LIST = "
E_TH_MISSING_ELEMENTS = "
E_TH_ELTPROP = "
E_TH_ELTPRIO = "
E_TH_RANGE = "
E_TH_EXT_VAR = "
EXCEPTIONS
INCONSISTENCY = 1 INHERITED_ERROR = 2
IMPORTING Parameters details for RSZ_P_DB_RESOLVE_XREF
I_TEMPLATE_TYPE -
Data type: RZD1_DEFTPDefault: RZD1_C_DEFTP-NOTHING
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_INFOCUBE -
Data type: RSD_INFOCUBEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VARIABLE_TYPES -
Data type: RSZHELP-VARTYPESOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VARIABLE_INFOOBJECT -
Data type: RSD_IOBJNMOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ELTUID - Element searched for
Data type: RSZ_UIDDefault: SPACE
Optional: 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)
I_T_ELTUID -
Data type: RSZ_T_UIDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_USE_BUFFER -
Data type: RS_BOOLOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RSZ_P_DB_RESOLVE_XREF
E_TH_ELTDIR - Directory of All Related Elements
Data type: RZD1_TH_ELTDIROptional: No
Call by Reference: Yes
E_TH_ELTXREF - Xref of Dependent Elements
Data type: RZD1_TH_ELTXREFOptional: No
Call by Reference: Yes
E_TH_COMPDIR - Component Directory
Data type: RZD1_TH_COMPDIROptional: No
Call by Reference: Yes
E_TH_REF_LIST -
Data type: RZD1_TH_REF_LISTOptional: No
Call by Reference: Yes
E_TH_MISSING_ELEMENTS -
Data type: RZD1_TH_REF_LISTOptional: No
Call by Reference: Yes
E_TH_ELTPROP -
Data type: RZD1_TH_ELTPROPOptional: No
Call by Reference: Yes
E_TH_ELTPRIO -
Data type: RZD1_TH_ELTPRIOOptional: No
Call by Reference: Yes
E_TH_RANGE -
Data type: RZD1_TH_RANGEOptional: No
Call by Reference: Yes
E_TH_EXT_VAR -
Data type: RSZ_TH_ELEMENTOptional: No
Call by Reference: Yes
EXCEPTIONS details
INCONSISTENCY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INHERITED_ERROR - Element does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSZ_P_DB_RESOLVE_XREF 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_th_eltdir | TYPE RZD1_TH_ELTDIR, " | |||
| lv_inconsistency | TYPE RZD1_TH_ELTDIR, " | |||
| lv_i_template_type | TYPE RZD1_DEFTP, " RZD1_C_DEFTP-NOTHING | |||
| lv_i_infocube | TYPE RSD_INFOCUBE, " | |||
| lv_e_th_eltxref | TYPE RZD1_TH_ELTXREF, " | |||
| lv_inherited_error | TYPE RZD1_TH_ELTXREF, " | |||
| lv_e_th_compdir | TYPE RZD1_TH_COMPDIR, " | |||
| lv_i_variable_types | TYPE RSZHELP-VARTYPES, " | |||
| lv_e_th_ref_list | TYPE RZD1_TH_REF_LIST, " | |||
| lv_i_variable_infoobject | TYPE RSD_IOBJNM, " | |||
| lv_i_eltuid | TYPE RSZ_UID, " SPACE | |||
| lv_e_th_missing_elements | TYPE RZD1_TH_REF_LIST, " | |||
| lv_i_objvers | TYPE RS_OBJVERS, " RS_C_OBJVERS-ACTIVE | |||
| lv_e_th_eltprop | TYPE RZD1_TH_ELTPROP, " | |||
| lv_i_t_eltuid | TYPE RSZ_T_UID, " | |||
| lv_e_th_eltprio | TYPE RZD1_TH_ELTPRIO, " | |||
| lv_e_th_range | TYPE RZD1_TH_RANGE, " | |||
| lv_i_use_buffer | TYPE RS_BOOL, " | |||
| lv_e_th_ext_var | TYPE RSZ_TH_ELEMENT. " |
|   CALL FUNCTION 'RSZ_P_DB_RESOLVE_XREF' "PRIVATE: Resolve Element Cross Reference |
| EXPORTING | ||
| I_TEMPLATE_TYPE | = lv_i_template_type | |
| I_INFOCUBE | = lv_i_infocube | |
| I_VARIABLE_TYPES | = lv_i_variable_types | |
| I_VARIABLE_INFOOBJECT | = lv_i_variable_infoobject | |
| I_ELTUID | = lv_i_eltuid | |
| I_OBJVERS | = lv_i_objvers | |
| I_T_ELTUID | = lv_i_t_eltuid | |
| I_USE_BUFFER | = lv_i_use_buffer | |
| IMPORTING | ||
| E_TH_ELTDIR | = lv_e_th_eltdir | |
| E_TH_ELTXREF | = lv_e_th_eltxref | |
| E_TH_COMPDIR | = lv_e_th_compdir | |
| E_TH_REF_LIST | = lv_e_th_ref_list | |
| E_TH_MISSING_ELEMENTS | = lv_e_th_missing_elements | |
| E_TH_ELTPROP | = lv_e_th_eltprop | |
| E_TH_ELTPRIO | = lv_e_th_eltprio | |
| E_TH_RANGE | = lv_e_th_range | |
| E_TH_EXT_VAR | = lv_e_th_ext_var | |
| EXCEPTIONS | ||
| INCONSISTENCY = 1 | ||
| INHERITED_ERROR = 2 | ||
| . " RSZ_P_DB_RESOLVE_XREF | ||
ABAP code using 7.40 inline data declarations to call FM RSZ_P_DB_RESOLVE_XREF
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_template_type) | = RZD1_C_DEFTP-NOTHING. | |||
| "SELECT single VARTYPES FROM RSZHELP INTO @DATA(ld_i_variable_types). | ||||
| DATA(ld_i_eltuid) | = ' '. | |||
| DATA(ld_i_objvers) | = RS_C_OBJVERS-ACTIVE. | |||
Search for further information about these or an SAP related objects