SAP BBP_CATEGORY_READ Function Module for
BBP_CATEGORY_READ is a standard bbp category read 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 bbp category read FM, simply by entering the name BBP_CATEGORY_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: BBP_PDC
Program Name: SAPLBBP_PDC
Main Program: SAPLBBP_PDC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BBP_CATEGORY_READ 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 'BBP_CATEGORY_READ'".
EXPORTING
* IV_CATEGORY_GUID = "
* IV_PRODUCT_TYPE = "
* IT_CATEGORY_GUIDS = "
* IV_CATEGORY_ID = "
* IV_HIERARCHY_GUID = "
* IV_MANDT = SY-MANDT "
* IV_LOGSYS = "
* IV_OBJECT_CATEGORIES = ' ' "
* IV_ONLY_TEXT = ' ' "
* IV_LANGU = SY-LANGU "
* IV_APPLICATION = '02' "
IMPORTING
EV_CATEGORY_GUID = "
ET_CATEGORYT = "
EV_CATEGORY_ID = "
EV_PRODUCT_TYPE = "
ES_CATEGORY = "
ES_CATEGORYT = "
ES_PRCAT = "
ET_CATEGORY_GUIDS = "
ET_CATEGORY = "
ET_CATEGORY_DATA = "
EXCEPTIONS
NOT_FOUND = 1 HIERARCHY_NOT_FOUND = 2 WRONG_HIERARCHY = 3
IMPORTING Parameters details for BBP_CATEGORY_READ
IV_CATEGORY_GUID -
Data type: COMT_CATEGORY_GUIDOptional: Yes
Call by Reference: Yes
IV_PRODUCT_TYPE -
Data type: COMT_PRODUCT_TYPEOptional: Yes
Call by Reference: Yes
IT_CATEGORY_GUIDS -
Data type: BBPT_GUIDOptional: Yes
Call by Reference: Yes
IV_CATEGORY_ID -
Data type: COMT_CATEGORY_IDOptional: Yes
Call by Reference: Yes
IV_HIERARCHY_GUID -
Data type: COMT_HIERARCHY_GUIDOptional: Yes
Call by Reference: Yes
IV_MANDT -
Data type: MANDTDefault: SY-MANDT
Optional: Yes
Call by Reference: Yes
IV_LOGSYS -
Data type: COMT_LOGSYSOptional: Yes
Call by Reference: Yes
IV_OBJECT_CATEGORIES -
Data type: COMT_BOOLEANDefault: SPACE
Optional: Yes
Call by Reference: Yes
IV_ONLY_TEXT -
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
IV_LANGU -
Data type: SYLANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: Yes
IV_APPLICATION -
Data type: COMT_APPLICATIONDefault: '02'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for BBP_CATEGORY_READ
EV_CATEGORY_GUID -
Data type: COMT_CATEGORY_GUIDOptional: No
Call by Reference: No ( called with pass by value option)
ET_CATEGORYT -
Data type: COMT_CATEGORYT_TABOptional: No
Call by Reference: Yes
EV_CATEGORY_ID -
Data type: COMT_CATEGORY_IDOptional: No
Call by Reference: No ( called with pass by value option)
EV_PRODUCT_TYPE -
Data type: COMT_PRODUCT_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
ES_CATEGORY -
Data type: COMT_CATEGORYOptional: No
Call by Reference: No ( called with pass by value option)
ES_CATEGORYT -
Data type: COMT_CATEGORYTOptional: No
Call by Reference: No ( called with pass by value option)
ES_PRCAT -
Data type: COMT_PRCATOptional: No
Call by Reference: No ( called with pass by value option)
ET_CATEGORY_GUIDS -
Data type: BBPT_GUIDOptional: No
Call by Reference: Yes
ET_CATEGORY -
Data type: COMT_CATEGORY_TABOptional: No
Call by Reference: Yes
ET_CATEGORY_DATA -
Data type: COMT_PRODUCT_CATEGORY_API_TABOptional: No
Call by Reference: Yes
EXCEPTIONS details
NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
HIERARCHY_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
WRONG_HIERARCHY -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for BBP_CATEGORY_READ 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_not_found | TYPE STRING, " | |||
| lv_ev_category_guid | TYPE COMT_CATEGORY_GUID, " | |||
| lv_iv_category_guid | TYPE COMT_CATEGORY_GUID, " | |||
| lv_et_categoryt | TYPE COMT_CATEGORYT_TAB, " | |||
| lv_iv_product_type | TYPE COMT_PRODUCT_TYPE, " | |||
| lv_it_category_guids | TYPE BBPT_GUID, " | |||
| lv_ev_category_id | TYPE COMT_CATEGORY_ID, " | |||
| lv_iv_category_id | TYPE COMT_CATEGORY_ID, " | |||
| lv_hierarchy_not_found | TYPE COMT_CATEGORY_ID, " | |||
| lv_ev_product_type | TYPE COMT_PRODUCT_TYPE, " | |||
| lv_wrong_hierarchy | TYPE COMT_PRODUCT_TYPE, " | |||
| lv_iv_hierarchy_guid | TYPE COMT_HIERARCHY_GUID, " | |||
| lv_iv_mandt | TYPE MANDT, " SY-MANDT | |||
| lv_es_category | TYPE COMT_CATEGORY, " | |||
| lv_iv_logsys | TYPE COMT_LOGSYS, " | |||
| lv_es_categoryt | TYPE COMT_CATEGORYT, " | |||
| lv_es_prcat | TYPE COMT_PRCAT, " | |||
| lv_iv_object_categories | TYPE COMT_BOOLEAN, " SPACE | |||
| lv_iv_only_text | TYPE XFELD, " SPACE | |||
| lv_et_category_guids | TYPE BBPT_GUID, " | |||
| lv_iv_langu | TYPE SYLANGU, " SY-LANGU | |||
| lv_et_category | TYPE COMT_CATEGORY_TAB, " | |||
| lv_iv_application | TYPE COMT_APPLICATION, " '02' | |||
| lv_et_category_data | TYPE COMT_PRODUCT_CATEGORY_API_TAB. " |
|   CALL FUNCTION 'BBP_CATEGORY_READ' " |
| EXPORTING | ||
| IV_CATEGORY_GUID | = lv_iv_category_guid | |
| IV_PRODUCT_TYPE | = lv_iv_product_type | |
| IT_CATEGORY_GUIDS | = lv_it_category_guids | |
| IV_CATEGORY_ID | = lv_iv_category_id | |
| IV_HIERARCHY_GUID | = lv_iv_hierarchy_guid | |
| IV_MANDT | = lv_iv_mandt | |
| IV_LOGSYS | = lv_iv_logsys | |
| IV_OBJECT_CATEGORIES | = lv_iv_object_categories | |
| IV_ONLY_TEXT | = lv_iv_only_text | |
| IV_LANGU | = lv_iv_langu | |
| IV_APPLICATION | = lv_iv_application | |
| IMPORTING | ||
| EV_CATEGORY_GUID | = lv_ev_category_guid | |
| ET_CATEGORYT | = lv_et_categoryt | |
| EV_CATEGORY_ID | = lv_ev_category_id | |
| EV_PRODUCT_TYPE | = lv_ev_product_type | |
| ES_CATEGORY | = lv_es_category | |
| ES_CATEGORYT | = lv_es_categoryt | |
| ES_PRCAT | = lv_es_prcat | |
| ET_CATEGORY_GUIDS | = lv_et_category_guids | |
| ET_CATEGORY | = lv_et_category | |
| ET_CATEGORY_DATA | = lv_et_category_data | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| HIERARCHY_NOT_FOUND = 2 | ||
| WRONG_HIERARCHY = 3 | ||
| . " BBP_CATEGORY_READ | ||
ABAP code using 7.40 inline data declarations to call FM BBP_CATEGORY_READ
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_mandt) | = SY-MANDT. | |||
| DATA(ld_iv_object_categories) | = ' '. | |||
| DATA(ld_iv_only_text) | = ' '. | |||
| DATA(ld_iv_langu) | = SY-LANGU. | |||
| DATA(ld_iv_application) | = '02'. | |||
Search for further information about these or an SAP related objects