Hi Kalpana,
There are 2 Categorization Schemas used one for Subject and the other for Resolution.
First enable the Categorization assignment block to find the active Categorization Schemas which is getting used.
Next goto IC Manager role.
Select Knowledge Management->Categorization Schemas.
Select Status as 'Active' and Description equal to the Schema Description obtained from the Categorization Assignment block.
Perform the Search and select the Schema ID.
Goto Component GSMCS in the Component Workbench and select the view GSMCS/ApplAreas.
Select the Context Node APPLAREAS and place external breakpoint in the GET_SCHEME_VAL method.
In the attribute SCHEME_VAL of the entity you will get the value what you need to input in IV_CATALOG_TYPE. Pick up the value which comes after '/'.
Check whether ER_ASPECT and ER_CATEGORY are initial or not.
Now execute the below methods to fetch the ASP GUID and Category GUID.
* Fetch the Aspect GUID
CALL METHOD lr_aspect->get_asp_guid
RECEIVING
rv_asp_guid = lv_asp_guid.
* Fetch the Category GUID
CALL METHOD lr_category->get_details
IMPORTING
ev_cat = ls_cat.
lv_cat_guid = ls_cat-cat_guid.
Now execute the Method GET_SELECTED_CATEGORY_TREE of the Class CL_CRM_ML_CATEGORY_UTIL with IV_SELECTED_CAT_GUID = Category GUID fetched earlier and IV_SCHEMA_GUID = ASP GUID fetched earlier.
The Internal Table ET_CAT_TREE gives all the Category from Level 1 to Level 4.
Regards.
Deepak Ramchandran.

