SAP RSTH_HCLASS_INFO Function Module for NOTRANSL: FB, der zur Hierarchieklasse DDIC-Informationen und Texte holt









RSTH_HCLASS_INFO is a standard rsth hclass info SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: FB, der zur Hierarchieklasse DDIC-Informationen und Texte holt 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 rsth hclass info FM, simply by entering the name RSTH_HCLASS_INFO into the relevant SAP transaction such as SE37 or SE38.

Function Group: RSTH
Program Name: SAPLRSTH
Main Program: SAPLRSTH
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RSTH_HCLASS_INFO 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 'RSTH_HCLASS_INFO'"NOTRANSL: FB, der zur Hierarchieklasse DDIC-Informationen und Texte holt
EXPORTING
HCLASS = "BRST Class of hierarchies (Sets, etc.)
* LANGU = SY-LANGU "ABAP System Field: Language Key of Text Environment
* WITH_TEXT = "Checkbox

IMPORTING
EQ_NODE = "Node is also valid characteristic value of basic char.
NODE_INPUT = "Node entry is allowed (Drill-Down reporting)
HCFIENM = "Field Name
HCROLNM = "Data element (semantic domain)
HCTABNM = "Table Name
HCTEXT10 = "Short Field Label
HCTEXT20 = "Medium Field Label
HCTEXT40 = "Long Field Label

EXCEPTIONS
HCLASS_NOT_EXIST = 1
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLRSTH_001 Deliver Hierarchy Information
EXIT_SAPLRSTH_002 User-defined Hierarchies

IMPORTING Parameters details for RSTH_HCLASS_INFO

HCLASS - BRST Class of hierarchies (Sets, etc.)

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

LANGU - ABAP System Field: Language Key of Text Environment

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

WITH_TEXT - Checkbox

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

EXPORTING Parameters details for RSTH_HCLASS_INFO

EQ_NODE - Node is also valid characteristic value of basic char.

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

NODE_INPUT - Node entry is allowed (Drill-Down reporting)

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

HCFIENM - Field Name

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

HCROLNM - Data element (semantic domain)

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

HCTABNM - Table Name

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

HCTEXT10 - Short Field Label

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

HCTEXT20 - Medium Field Label

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

HCTEXT40 - Long Field Label

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

EXCEPTIONS details

HCLASS_NOT_EXIST -

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

Copy and paste ABAP code example for RSTH_HCLASS_INFO 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_hclass  TYPE RSTHVKEY-HCLASS, "   
lv_eq_node  TYPE RSTTYP-BASIC, "   
lv_hclass_not_exist  TYPE RSTTYP, "   
lv_langu  TYPE SY-LANGU, "   SY-LANGU
lv_node_input  TYPE RSTTYP-NODE_INPUT, "   
lv_hcfienm  TYPE RSTHVKEY-FIENM, "   
lv_with_text  TYPE CCVALID-XFELD, "   
lv_hcrolnm  TYPE RSTHVKEY-ROLNM, "   
lv_hctabnm  TYPE RSTHVKEY-TABNM, "   
lv_hctext10  TYPE RSTHINFO-HCTEXT10, "   
lv_hctext20  TYPE RSTHINFO-HCTEXT20, "   
lv_hctext40  TYPE RSTHINFO-HCTEXT40. "   

  CALL FUNCTION 'RSTH_HCLASS_INFO'  "NOTRANSL: FB, der zur Hierarchieklasse DDIC-Informationen und Texte holt
    EXPORTING
         HCLASS = lv_hclass
         LANGU = lv_langu
         WITH_TEXT = lv_with_text
    IMPORTING
         EQ_NODE = lv_eq_node
         NODE_INPUT = lv_node_input
         HCFIENM = lv_hcfienm
         HCROLNM = lv_hcrolnm
         HCTABNM = lv_hctabnm
         HCTEXT10 = lv_hctext10
         HCTEXT20 = lv_hctext20
         HCTEXT40 = lv_hctext40
    EXCEPTIONS
        HCLASS_NOT_EXIST = 1
. " RSTH_HCLASS_INFO




ABAP code using 7.40 inline data declarations to call FM RSTH_HCLASS_INFO

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 HCLASS FROM RSTHVKEY INTO @DATA(ld_hclass).
 
"SELECT single BASIC FROM RSTTYP INTO @DATA(ld_eq_node).
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_langu).
DATA(ld_langu) = SY-LANGU.
 
"SELECT single NODE_INPUT FROM RSTTYP INTO @DATA(ld_node_input).
 
"SELECT single FIENM FROM RSTHVKEY INTO @DATA(ld_hcfienm).
 
"SELECT single XFELD FROM CCVALID INTO @DATA(ld_with_text).
 
"SELECT single ROLNM FROM RSTHVKEY INTO @DATA(ld_hcrolnm).
 
"SELECT single TABNM FROM RSTHVKEY INTO @DATA(ld_hctabnm).
 
"SELECT single HCTEXT10 FROM RSTHINFO INTO @DATA(ld_hctext10).
 
"SELECT single HCTEXT20 FROM RSTHINFO INTO @DATA(ld_hctext20).
 
"SELECT single HCTEXT40 FROM RSTHINFO INTO @DATA(ld_hctext40).
 


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!