SAP ISM_CONT_COMP_HIER_PARENTS_GET Function Module for IS-M/AM: Read Content Component Hierarchy Bottom Up
ISM_CONT_COMP_HIER_PARENTS_GET is a standard ism cont comp hier parents get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-M/AM: Read Content Component Hierarchy Bottom Up processing and below is the pattern details for this FM, 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 ism cont comp hier parents get FM, simply by entering the name ISM_CONT_COMP_HIER_PARENTS_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: JJI1
Program Name: SAPLJJI1
Main Program: SAPLJJI1
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISM_CONT_COMP_HIER_PARENTS_GET 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 'ISM_CONT_COMP_HIER_PARENTS_GET'"IS-M/AM: Read Content Component Hierarchy Bottom Up.
EXPORTING
PV_CONTENT_COMPONENT = "IS-M: Content component
* PV_CONT_COMP_FIRST_LEVEL = "
* PV_CONT_COMP_SPECIAL_PUBL = "
PV_BOOKING_UNIT = "IS-M/AM: Booking Unit
* PV_DATE = SY-DATUM "Date and Time, Current (Application Server) Date
IMPORTING
PT_PARENT_NODES = "IS-M/AM: Content Components Hierarchy
EXCEPTIONS
ERROR_OCCURRED = 1
IMPORTING Parameters details for ISM_CONT_COMP_HIER_PARENTS_GET
PV_CONTENT_COMPONENT - IS-M: Content component
Data type: INHALTSKOMOptional: No
Call by Reference: Yes
PV_CONT_COMP_FIRST_LEVEL -
Data type: INHALTSKOMOptional: Yes
Call by Reference: Yes
PV_CONT_COMP_SPECIAL_PUBL -
Data type: INHALTSKOMOptional: Yes
Call by Reference: Yes
PV_BOOKING_UNIT - IS-M/AM: Booking Unit
Data type: BELEGEINHOptional: No
Call by Reference: Yes
PV_DATE - Date and Time, Current (Application Server) Date
Data type: SYDATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for ISM_CONT_COMP_HIER_PARENTS_GET
PT_PARENT_NODES - IS-M/AM: Content Components Hierarchy
Data type: JJTIKOHY_TABOptional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR_OCCURRED - Errors have occurred
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISM_CONT_COMP_HIER_PARENTS_GET 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_error_occurred | TYPE STRING, " | |||
| lv_pt_parent_nodes | TYPE JJTIKOHY_TAB, " | |||
| lv_pv_content_component | TYPE INHALTSKOM, " | |||
| lv_pv_cont_comp_first_level | TYPE INHALTSKOM, " | |||
| lv_pv_cont_comp_special_publ | TYPE INHALTSKOM, " | |||
| lv_pv_booking_unit | TYPE BELEGEINH, " | |||
| lv_pv_date | TYPE SYDATUM. " SY-DATUM |
|   CALL FUNCTION 'ISM_CONT_COMP_HIER_PARENTS_GET' "IS-M/AM: Read Content Component Hierarchy Bottom Up |
| EXPORTING | ||
| PV_CONTENT_COMPONENT | = lv_pv_content_component | |
| PV_CONT_COMP_FIRST_LEVEL | = lv_pv_cont_comp_first_level | |
| PV_CONT_COMP_SPECIAL_PUBL | = lv_pv_cont_comp_special_publ | |
| PV_BOOKING_UNIT | = lv_pv_booking_unit | |
| PV_DATE | = lv_pv_date | |
| IMPORTING | ||
| PT_PARENT_NODES | = lv_pt_parent_nodes | |
| EXCEPTIONS | ||
| ERROR_OCCURRED = 1 | ||
| . " ISM_CONT_COMP_HIER_PARENTS_GET | ||
ABAP code using 7.40 inline data declarations to call FM ISM_CONT_COMP_HIER_PARENTS_GET
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_pv_date) | = SY-DATUM. | |||
Search for further information about these or an SAP related objects