SAP RZI_COMPONENT_TEXTS_GET Function Module for Get all texts of a reporting component









RZI_COMPONENT_TEXTS_GET is a standard rzi component texts 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 Get all texts of a reporting component 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 rzi component texts get FM, simply by entering the name RZI_COMPONENT_TEXTS_GET into the relevant SAP transaction such as SE37 or SE38.

Function Group: RZI0
Program Name: SAPLRZI0
Main Program: SAPLRZI0
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RZI_COMPONENT_TEXTS_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 'RZI_COMPONENT_TEXTS_GET'"Get all texts of a reporting component
EXPORTING
* I_COMPONENT_ID = "Name (ID) of a Reporting Component
* I_SMODE = "Special reports
* I_COMPONENT_UID = "Gets the Text for This Exact UID
* I_T_TEXT_ELT = "Gets the texts for all UIDs in this table
* I_TH_TEXT_HINT = "Optimization: Get Info for Text
* I_LANGUAGE = SY-LANGU "Gets the Texts in the Requested Language
* I_CHECK_MODE = RS_C_FALSE "Gets the Texts for Transient Queries
* I_WITH_ALL_ELEMENTS = RS_C_FALSE "ONLY WITH I_COMPONENT_UID: Resolves the component and gets all element texts
* I_WITH_0DAT = RS_C_FALSE "Gets the text also for default key date variable
* I_INFOPROV = "InfoProvider

IMPORTING
E_COMP_TEXT = "Long Description
E_TH_ELTTXT = "

EXCEPTIONS
ELEMENT_NOT_FOUND = 1
.



IMPORTING Parameters details for RZI_COMPONENT_TEXTS_GET

I_COMPONENT_ID - Name (ID) of a Reporting Component

Data type: RSZCOMPID
Optional: Yes
Call by Reference: Yes

I_SMODE - Special reports

Data type: RSSMODE
Optional: Yes
Call by Reference: Yes

I_COMPONENT_UID - Gets the Text for This Exact UID

Data type: RSZ_UID
Optional: Yes
Call by Reference: Yes

I_T_TEXT_ELT - Gets the texts for all UIDs in this table

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

I_TH_TEXT_HINT - Optimization: Get Info for Text

Data type: RSZI_TH_ELT_TEXT_HINT
Optional: Yes
Call by Reference: Yes

I_LANGUAGE - Gets the Texts in the Requested Language

Data type: SY-LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: Yes

I_CHECK_MODE - Gets the Texts for Transient Queries

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: Yes

I_WITH_ALL_ELEMENTS - ONLY WITH I_COMPONENT_UID: Resolves the component and gets all element texts

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: Yes

I_WITH_0DAT - Gets the text also for default key date variable

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: Yes

I_INFOPROV - InfoProvider

Data type: RSINFOPROV
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for RZI_COMPONENT_TEXTS_GET

E_COMP_TEXT - Long Description

Data type: RSTXTLG
Optional: No
Call by Reference: Yes

E_TH_ELTTXT -

Data type: RZI0_TH_ELTTXT
Optional: No
Call by Reference: Yes

EXCEPTIONS details

ELEMENT_NOT_FOUND -

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

Copy and paste ABAP code example for RZI_COMPONENT_TEXTS_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_comp_text  TYPE RSTXTLG, "   
lv_i_component_id  TYPE RSZCOMPID, "   
lv_element_not_found  TYPE RSZCOMPID, "   
lv_i_smode  TYPE RSSMODE, "   
lv_e_th_elttxt  TYPE RZI0_TH_ELTTXT, "   
lv_i_component_uid  TYPE RSZ_UID, "   
lv_i_t_text_elt  TYPE RZD1_T_GUID, "   
lv_i_th_text_hint  TYPE RSZI_TH_ELT_TEXT_HINT, "   
lv_i_language  TYPE SY-LANGU, "   SY-LANGU
lv_i_check_mode  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_with_all_elements  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_with_0dat  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_infoprov  TYPE RSINFOPROV. "   

  CALL FUNCTION 'RZI_COMPONENT_TEXTS_GET'  "Get all texts of a reporting component
    EXPORTING
         I_COMPONENT_ID = lv_i_component_id
         I_SMODE = lv_i_smode
         I_COMPONENT_UID = lv_i_component_uid
         I_T_TEXT_ELT = lv_i_t_text_elt
         I_TH_TEXT_HINT = lv_i_th_text_hint
         I_LANGUAGE = lv_i_language
         I_CHECK_MODE = lv_i_check_mode
         I_WITH_ALL_ELEMENTS = lv_i_with_all_elements
         I_WITH_0DAT = lv_i_with_0dat
         I_INFOPROV = lv_i_infoprov
    IMPORTING
         E_COMP_TEXT = lv_e_comp_text
         E_TH_ELTTXT = lv_e_th_elttxt
    EXCEPTIONS
        ELEMENT_NOT_FOUND = 1
. " RZI_COMPONENT_TEXTS_GET




ABAP code using 7.40 inline data declarations to call FM RZI_COMPONENT_TEXTS_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 LANGU FROM SY INTO @DATA(ld_i_language).
DATA(ld_i_language) = SY-LANGU.
 
DATA(ld_i_check_mode) = RS_C_FALSE.
 
DATA(ld_i_with_all_elements) = RS_C_FALSE.
 
DATA(ld_i_with_0dat) = RS_C_FALSE.
 
 


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!