BBP_CATEGORY_READ is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name BBP_CATEGORY_READ into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
BBP_PDC
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'BBP_CATEGORY_READ' "
* EXPORTING
* iv_category_guid = " comt_category_guid
* iv_category_id = " comt_category_id
* iv_hierarchy_guid = " comt_hierarchy_guid
* iv_mandt = SY-MANDT " mandt
* iv_logsys = " comt_logsys
* iv_object_categories = SPACE " comt_boolean
* iv_only_text = SPACE " xfeld
* iv_langu = SY-LANGU " sylangu
* iv_application = '02' " comt_application
* iv_product_type = " comt_product_type
* it_category_guids = " bbpt_guid
IMPORTING
ev_category_guid = " comt_category_guid
ev_category_id = " comt_category_id
ev_product_type = " comt_product_type
es_category = " comt_category
es_categoryt = " comt_categoryt
es_prcat = " comt_prcat
et_category_guids = " bbpt_guid
et_category = " comt_category_tab
et_category_data = " comt_product_category_api_tab
et_categoryt = " comt_categoryt_tab
EXCEPTIONS
NOT_FOUND = 1 "
HIERARCHY_NOT_FOUND = 2 "
WRONG_HIERARCHY = 3 "
. " BBP_CATEGORY_READ
The ABAP code below is a full code listing to execute function module BBP_CATEGORY_READ including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_ev_category_guid | TYPE COMT_CATEGORY_GUID , |
| ld_ev_category_id | TYPE COMT_CATEGORY_ID , |
| ld_ev_product_type | TYPE COMT_PRODUCT_TYPE , |
| ld_es_category | TYPE COMT_CATEGORY , |
| ld_es_categoryt | TYPE COMT_CATEGORYT , |
| ld_es_prcat | TYPE COMT_PRCAT , |
| ld_et_category_guids | TYPE BBPT_GUID , |
| ld_et_category | TYPE COMT_CATEGORY_TAB , |
| ld_et_category_data | TYPE COMT_PRODUCT_CATEGORY_API_TAB , |
| ld_et_categoryt | TYPE COMT_CATEGORYT_TAB . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_ev_category_guid | TYPE COMT_CATEGORY_GUID , |
| ld_iv_category_guid | TYPE COMT_CATEGORY_GUID , |
| ld_iv_category_id | TYPE COMT_CATEGORY_ID , |
| ld_ev_category_id | TYPE COMT_CATEGORY_ID , |
| ld_iv_hierarchy_guid | TYPE COMT_HIERARCHY_GUID , |
| ld_ev_product_type | TYPE COMT_PRODUCT_TYPE , |
| ld_es_category | TYPE COMT_CATEGORY , |
| ld_iv_mandt | TYPE MANDT , |
| ld_es_categoryt | TYPE COMT_CATEGORYT , |
| ld_iv_logsys | TYPE COMT_LOGSYS , |
| ld_es_prcat | TYPE COMT_PRCAT , |
| ld_iv_object_categories | TYPE COMT_BOOLEAN , |
| ld_et_category_guids | TYPE BBPT_GUID , |
| ld_iv_only_text | TYPE XFELD , |
| ld_et_category | TYPE COMT_CATEGORY_TAB , |
| ld_iv_langu | TYPE SYLANGU , |
| ld_et_category_data | TYPE COMT_PRODUCT_CATEGORY_API_TAB , |
| ld_iv_application | TYPE COMT_APPLICATION , |
| ld_et_categoryt | TYPE COMT_CATEGORYT_TAB , |
| ld_iv_product_type | TYPE COMT_PRODUCT_TYPE , |
| ld_it_category_guids | TYPE BBPT_GUID . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BBP_CATEGORY_READ or its description.