Hi Pablo,
Please use below function module to get all levels of Categorization
SELECT SINGLE subject_profile
FROM crmc_activity_h " fully buffered table
INTO lv_subject_profile
WHERE process_type = 'Z010'.
IF sy-subrc = 0.
* Get catalog, code group etc
CALL FUNCTION 'CRM_SUBJECT_PROF_CODES_PROVIDE'
EXPORTING
i_subject_profile = lv_subject_profile
i_langu = sy-langu
TABLES
e_code_tab = lt_codes
EXCEPTIONS
no_valid_entry = 1
no_entry = 2
OTHERS = 3.
Regards
Abdul Rasheed