SAP COM_HIERARCHY_CAT_SELECT Function Module for









COM_HIERARCHY_CAT_SELECT is a standard com hierarchy cat select 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 com hierarchy cat select FM, simply by entering the name COM_HIERARCHY_CAT_SELECT into the relevant SAP transaction such as SE37 or SE38.

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



Function COM_HIERARCHY_CAT_SELECT 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 'COM_HIERARCHY_CAT_SELECT'"
EXPORTING
* IV_CONTENT = 'MW' "
* IV_HIERARCHY_ID = "
* IT_HIERARCHY_GUID = "Hierarchy GUID List
* IT_CATEGORY_GUID = "Category GUIDs
* IV_INHERITED_DATA = 'X' "

IMPORTING
ET_HIERARCHY = "
ET_HIERARCHY_PRCAT_MAINT = "
ET_HIERARCHYT = "
ET_CATEGORY = "
ET_CATEGORYT = "
ET_PRCAT = "
ET_CAT_SET_REL = "Assignment of Set to Category
ET_CAT_SET_PROD = "Category - Set Assignment (Product-Specific Data)
ET_CAT_ATTR = "
ET_PRCAT_IL_REL = "

EXCEPTIONS
CONTENT_NOT_ALLOWED = 1 NO_ID_INPUT = 2 NO_GUID_LIST = 3 PME_ERROR = 4
.



IMPORTING Parameters details for COM_HIERARCHY_CAT_SELECT

IV_CONTENT -

Data type: COMT_HIERARCHY_CONTENT
Default: 'MW'
Optional: Yes
Call by Reference: Yes

IV_HIERARCHY_ID -

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

IT_HIERARCHY_GUID - Hierarchy GUID List

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

IT_CATEGORY_GUID - Category GUIDs

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

IV_INHERITED_DATA -

Data type: COMT_BOOLEAN
Default: 'X'
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for COM_HIERARCHY_CAT_SELECT

ET_HIERARCHY -

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

ET_HIERARCHY_PRCAT_MAINT -

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

ET_HIERARCHYT -

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

ET_CATEGORY -

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

ET_CATEGORYT -

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

ET_PRCAT -

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

ET_CAT_SET_REL - Assignment of Set to Category

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

ET_CAT_SET_PROD - Category - Set Assignment (Product-Specific Data)

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

ET_CAT_ATTR -

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

ET_PRCAT_IL_REL -

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

EXCEPTIONS details

CONTENT_NOT_ALLOWED -

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

NO_ID_INPUT -

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

NO_GUID_LIST -

Data type:
Optional: No
Call by Reference: Yes

PME_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for COM_HIERARCHY_CAT_SELECT 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_iv_content  TYPE COMT_HIERARCHY_CONTENT, "   'MW'
lv_et_hierarchy  TYPE COMT_HIERARCHY_TAB, "   
lv_content_not_allowed  TYPE COMT_HIERARCHY_TAB, "   
lv_et_hierarchy_prcat_maint  TYPE COMT_HIERARCHY_PRCAT_MAINT_TAB, "   
lv_no_id_input  TYPE COMT_HIERARCHY_PRCAT_MAINT_TAB, "   
lv_et_hierarchyt  TYPE COMT_HIERARCHYT_TAB, "   
lv_iv_hierarchy_id  TYPE COMT_HIERARCHY_ID, "   
lv_et_category  TYPE COMT_CATEGORY_TAB, "   
lv_no_guid_list  TYPE COMT_CATEGORY_TAB, "   
lv_it_hierarchy_guid  TYPE COMT_HIERARCHY_GUID_TAB, "   
lv_pme_error  TYPE COMT_HIERARCHY_GUID_TAB, "   
lv_et_categoryt  TYPE COMT_CATEGORYT_TAB, "   
lv_it_category_guid  TYPE COMT_CATEGORY_GUID_TAB, "   
lv_et_prcat  TYPE COMT_PRCAT_TAB, "   
lv_iv_inherited_data  TYPE COMT_BOOLEAN, "   'X'
lv_et_cat_set_rel  TYPE COMT_CAT_FRAG_REL_TAB, "   
lv_et_cat_set_prod  TYPE COMT_PRCAT_FRAG_REL_TAB, "   
lv_et_cat_attr  TYPE COMT_PRCAT_ATTRIBUTE_INFO_TAB, "   
lv_et_prcat_il_rel  TYPE COMT_PRCAT_IL_REL_TAB. "   

  CALL FUNCTION 'COM_HIERARCHY_CAT_SELECT'  "
    EXPORTING
         IV_CONTENT = lv_iv_content
         IV_HIERARCHY_ID = lv_iv_hierarchy_id
         IT_HIERARCHY_GUID = lv_it_hierarchy_guid
         IT_CATEGORY_GUID = lv_it_category_guid
         IV_INHERITED_DATA = lv_iv_inherited_data
    IMPORTING
         ET_HIERARCHY = lv_et_hierarchy
         ET_HIERARCHY_PRCAT_MAINT = lv_et_hierarchy_prcat_maint
         ET_HIERARCHYT = lv_et_hierarchyt
         ET_CATEGORY = lv_et_category
         ET_CATEGORYT = lv_et_categoryt
         ET_PRCAT = lv_et_prcat
         ET_CAT_SET_REL = lv_et_cat_set_rel
         ET_CAT_SET_PROD = lv_et_cat_set_prod
         ET_CAT_ATTR = lv_et_cat_attr
         ET_PRCAT_IL_REL = lv_et_prcat_il_rel
    EXCEPTIONS
        CONTENT_NOT_ALLOWED = 1
        NO_ID_INPUT = 2
        NO_GUID_LIST = 3
        PME_ERROR = 4
. " COM_HIERARCHY_CAT_SELECT




ABAP code using 7.40 inline data declarations to call FM COM_HIERARCHY_CAT_SELECT

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_iv_content) = 'MW'.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_iv_inherited_data) = 'X'.
 
 
 
 
 


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!