SAP CLHI_STRUCTURE_CLASSES Function Module for









CLHI_STRUCTURE_CLASSES is a standard clhi structure classes SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 clhi structure classes FM, simply by entering the name CLHI_STRUCTURE_CLASSES into the relevant SAP transaction such as SE37 or SE38.

Function Group: CLHI
Program Name: SAPLCLHI
Main Program: SAPLCLHI
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CLHI_STRUCTURE_CLASSES 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 'CLHI_STRUCTURE_CLASSES'"
EXPORTING
I_KLART = "Class Type
* I_GRAPHIC = ' ' "
* I_HEREDITABLE = ' ' "
* I_INCLUDING_TEXT = 'X' "
I_LANGUAGE = "Language
* I_NO_CLASSIFICATION = ' ' "
* I_VIEW = 'K' "Standard view
* I_DATE = SY-DATUM "
* I_CHANGE_NUMBER = ' ' "Change Number
* I_NO_OBJECTS = "
* I_SORT_BY_CLASS = 'X' "
* I_CLASS = "
* I_EXCLUDE_CLINT = "
* I_CALLED_BY_CLASSIFY = ' ' "
* I_STRUCTURED_LIST = 'X' "
* I_ONE_STEP = ' ' "
* I_CLINT = "
* I_BUP = ' ' "
* I_TDWN = ' ' "
* I_BATCH = ' ' "
* I_OBJECT = ' ' "
* I_OBJ_ID = ' ' "
* I_ENQUEUE = ' ' "

TABLES
DATEN = "
* INDEX = "
* EXP_KLAH = "

EXCEPTIONS
CLASS_NOT_VALID = 1 CLASSTYPE_NOT_VALID = 2
.



IMPORTING Parameters details for CLHI_STRUCTURE_CLASSES

I_KLART - Class Type

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

I_GRAPHIC -

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

I_HEREDITABLE -

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

I_INCLUDING_TEXT -

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

I_LANGUAGE - Language

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

I_NO_CLASSIFICATION -

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

I_VIEW - Standard view

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

I_DATE -

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

I_CHANGE_NUMBER - Change Number

Data type: KSSK-AENNR
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NO_OBJECTS -

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

I_SORT_BY_CLASS -

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

I_CLASS -

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

I_EXCLUDE_CLINT -

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

I_CALLED_BY_CLASSIFY -

Data type: RMCLF-KREUZ
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_STRUCTURED_LIST -

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

I_ONE_STEP -

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

I_CLINT -

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

I_BUP -

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

I_TDWN -

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

I_BATCH -

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

I_OBJECT -

Data type: KSSK-OBJEK
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_OBJ_ID -

Data type: KSSK-MAFID
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ENQUEUE -

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

TABLES Parameters details for CLHI_STRUCTURE_CLASSES

DATEN -

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

INDEX -

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

EXP_KLAH -

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

EXCEPTIONS details

CLASS_NOT_VALID -

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

CLASSTYPE_NOT_VALID -

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

Copy and paste ABAP code example for CLHI_STRUCTURE_CLASSES 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:
lt_daten  TYPE STANDARD TABLE OF GHCL, "   
lv_i_klart  TYPE KLAH-KLART, "   
lv_class_not_valid  TYPE KLAH, "   
lv_i_graphic  TYPE KLAH, "   SPACE
lv_i_hereditable  TYPE KLAH, "   ' '
lv_i_including_text  TYPE KLAH, "   'X'
lv_i_language  TYPE SY-LANGU, "   
lv_i_no_classification  TYPE SY, "   ' '
lv_i_view  TYPE SY, "   'K'
lv_i_date  TYPE SY-DATUM, "   SY-DATUM
lv_i_change_number  TYPE KSSK-AENNR, "   ' '
lv_i_no_objects  TYPE KSSK, "   
lv_i_sort_by_class  TYPE KSSK, "   'X'
lt_index  TYPE STANDARD TABLE OF KSSK, "   
lv_i_class  TYPE KLAH-CLASS, "   
lv_classtype_not_valid  TYPE KLAH, "   
lv_i_exclude_clint  TYPE KLAH-CLINT, "   
lv_i_called_by_classify  TYPE RMCLF-KREUZ, "   SPACE
lv_i_structured_list  TYPE RMCLF, "   'X'
lv_i_one_step  TYPE RMCLF, "   ' '
lv_i_clint  TYPE KLAH-CLINT, "   
lt_exp_klah  TYPE STANDARD TABLE OF KLAH, "   
lv_i_bup  TYPE KLAH, "   ' '
lv_i_tdwn  TYPE KLAH, "   ' '
lv_i_batch  TYPE KLAH, "   SPACE
lv_i_object  TYPE KSSK-OBJEK, "   SPACE
lv_i_obj_id  TYPE KSSK-MAFID, "   SPACE
lv_i_enqueue  TYPE KSSK. "   ' '

  CALL FUNCTION 'CLHI_STRUCTURE_CLASSES'  "
    EXPORTING
         I_KLART = lv_i_klart
         I_GRAPHIC = lv_i_graphic
         I_HEREDITABLE = lv_i_hereditable
         I_INCLUDING_TEXT = lv_i_including_text
         I_LANGUAGE = lv_i_language
         I_NO_CLASSIFICATION = lv_i_no_classification
         I_VIEW = lv_i_view
         I_DATE = lv_i_date
         I_CHANGE_NUMBER = lv_i_change_number
         I_NO_OBJECTS = lv_i_no_objects
         I_SORT_BY_CLASS = lv_i_sort_by_class
         I_CLASS = lv_i_class
         I_EXCLUDE_CLINT = lv_i_exclude_clint
         I_CALLED_BY_CLASSIFY = lv_i_called_by_classify
         I_STRUCTURED_LIST = lv_i_structured_list
         I_ONE_STEP = lv_i_one_step
         I_CLINT = lv_i_clint
         I_BUP = lv_i_bup
         I_TDWN = lv_i_tdwn
         I_BATCH = lv_i_batch
         I_OBJECT = lv_i_object
         I_OBJ_ID = lv_i_obj_id
         I_ENQUEUE = lv_i_enqueue
    TABLES
         DATEN = lt_daten
         INDEX = lt_index
         EXP_KLAH = lt_exp_klah
    EXCEPTIONS
        CLASS_NOT_VALID = 1
        CLASSTYPE_NOT_VALID = 2
. " CLHI_STRUCTURE_CLASSES




ABAP code using 7.40 inline data declarations to call FM CLHI_STRUCTURE_CLASSES

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 KLART FROM KLAH INTO @DATA(ld_i_klart).
 
 
DATA(ld_i_graphic) = ' '.
 
DATA(ld_i_hereditable) = ' '.
 
DATA(ld_i_including_text) = 'X'.
 
"SELECT single LANGU FROM SY INTO @DATA(ld_i_language).
 
DATA(ld_i_no_classification) = ' '.
 
DATA(ld_i_view) = 'K'.
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_date).
DATA(ld_i_date) = SY-DATUM.
 
"SELECT single AENNR FROM KSSK INTO @DATA(ld_i_change_number).
DATA(ld_i_change_number) = ' '.
 
 
DATA(ld_i_sort_by_class) = 'X'.
 
 
"SELECT single CLASS FROM KLAH INTO @DATA(ld_i_class).
 
 
"SELECT single CLINT FROM KLAH INTO @DATA(ld_i_exclude_clint).
 
"SELECT single KREUZ FROM RMCLF INTO @DATA(ld_i_called_by_classify).
DATA(ld_i_called_by_classify) = ' '.
 
DATA(ld_i_structured_list) = 'X'.
 
DATA(ld_i_one_step) = ' '.
 
"SELECT single CLINT FROM KLAH INTO @DATA(ld_i_clint).
 
 
DATA(ld_i_bup) = ' '.
 
DATA(ld_i_tdwn) = ' '.
 
DATA(ld_i_batch) = ' '.
 
"SELECT single OBJEK FROM KSSK INTO @DATA(ld_i_object).
DATA(ld_i_object) = ' '.
 
"SELECT single MAFID FROM KSSK INTO @DATA(ld_i_obj_id).
DATA(ld_i_obj_id) = ' '.
 
DATA(ld_i_enqueue) = ' '.
 


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!