SAP ISM_HIERARCHY_DATA_PROVIDE Function Module for ISM-PMD: Generate Media Master Record Hierarchy for One or All Materials









ISM_HIERARCHY_DATA_PROVIDE is a standard ism hierarchy data provide SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for ISM-PMD: Generate Media Master Record Hierarchy for One or All Materials 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 hierarchy data provide FM, simply by entering the name ISM_HIERARCHY_DATA_PROVIDE into the relevant SAP transaction such as SE37 or SE38.

Function Group: JPISM02
Program Name: SAPLJPISM02
Main Program: SAPLJPISM02
Appliation area: J
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ISM_HIERARCHY_DATA_PROVIDE 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_HIERARCHY_DATA_PROVIDE'"ISM-PMD: Generate Media Master Record Hierarchy for One or All Materials
EXPORTING
* PV_I_MATNR = "Material Number
* PV_I_FLAG_ONLY_RELAT_DATA = ' ' "
* PV_I_NOT_ALLOCATED_DATA = ' ' "IS-M: Select Data not Assigned
* PV_I_FROM_DATE = "
* PV_I_TO_DATE = "

TABLES
PT_E_HIERARCHY_DATA = "ISM-PMD: Media Master Record Hierarchy
* PT_I_MARA = "General material data
* PT_E_MARA = "General material data
* PT_E_MAKT = "Material Descriptions
* PT_E_JPTMARA = "Media-Specific Cross-Organization Material Data

EXCEPTIONS
NO_MEDIA_MASTER_DATA = 1 MATNR_IS_ISSUE_LEVEL = 2 MATNR_LEVEL_NOT_PROVIDED = 3 MATNR_NOT_FOUND = 4
.



IMPORTING Parameters details for ISM_HIERARCHY_DATA_PROVIDE

PV_I_MATNR - Material Number

Data type: MARA-MATNR
Optional: Yes
Call by Reference: Yes

PV_I_FLAG_ONLY_RELAT_DATA -

Data type: C
Default: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)

PV_I_NOT_ALLOCATED_DATA - IS-M: Select Data not Assigned

Data type: RJP_TREE_CONTROL-NO_ALLOCATED_DATA
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

PV_I_FROM_DATE -

Data type: ISMPUBLDATE
Optional: Yes
Call by Reference: No ( called with pass by value option)

PV_I_TO_DATE -

Data type: ISMPUBLDATE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for ISM_HIERARCHY_DATA_PROVIDE

PT_E_HIERARCHY_DATA - ISM-PMD: Media Master Record Hierarchy

Data type: RJP_HIERARCHY_DATA
Optional: No
Call by Reference: Yes

PT_I_MARA - General material data

Data type: MARA
Optional: Yes
Call by Reference: Yes

PT_E_MARA - General material data

Data type: MARA
Optional: Yes
Call by Reference: Yes

PT_E_MAKT - Material Descriptions

Data type: MAKT
Optional: Yes
Call by Reference: Yes

PT_E_JPTMARA - Media-Specific Cross-Organization Material Data

Data type: JPTMARA
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NO_MEDIA_MASTER_DATA -

Data type:
Optional: No
Call by Reference: Yes

MATNR_IS_ISSUE_LEVEL -

Data type:
Optional: No
Call by Reference: Yes

MATNR_LEVEL_NOT_PROVIDED -

Data type:
Optional: No
Call by Reference: Yes

MATNR_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ISM_HIERARCHY_DATA_PROVIDE 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_pv_i_matnr  TYPE MARA-MATNR, "   
lt_pt_e_hierarchy_data  TYPE STANDARD TABLE OF RJP_HIERARCHY_DATA, "   
lv_no_media_master_data  TYPE RJP_HIERARCHY_DATA, "   
lt_pt_i_mara  TYPE STANDARD TABLE OF MARA, "   
lv_matnr_is_issue_level  TYPE MARA, "   
lv_pv_i_flag_only_relat_data  TYPE C, "   SPACE
lt_pt_e_mara  TYPE STANDARD TABLE OF MARA, "   
lv_pv_i_not_allocated_data  TYPE RJP_TREE_CONTROL-NO_ALLOCATED_DATA, "   SPACE
lv_matnr_level_not_provided  TYPE RJP_TREE_CONTROL, "   
lt_pt_e_makt  TYPE STANDARD TABLE OF MAKT, "   
lv_pv_i_from_date  TYPE ISMPUBLDATE, "   
lv_matnr_not_found  TYPE ISMPUBLDATE, "   
lt_pt_e_jptmara  TYPE STANDARD TABLE OF JPTMARA, "   
lv_pv_i_to_date  TYPE ISMPUBLDATE. "   

  CALL FUNCTION 'ISM_HIERARCHY_DATA_PROVIDE'  "ISM-PMD: Generate Media Master Record Hierarchy for One or All Materials
    EXPORTING
         PV_I_MATNR = lv_pv_i_matnr
         PV_I_FLAG_ONLY_RELAT_DATA = lv_pv_i_flag_only_relat_data
         PV_I_NOT_ALLOCATED_DATA = lv_pv_i_not_allocated_data
         PV_I_FROM_DATE = lv_pv_i_from_date
         PV_I_TO_DATE = lv_pv_i_to_date
    TABLES
         PT_E_HIERARCHY_DATA = lt_pt_e_hierarchy_data
         PT_I_MARA = lt_pt_i_mara
         PT_E_MARA = lt_pt_e_mara
         PT_E_MAKT = lt_pt_e_makt
         PT_E_JPTMARA = lt_pt_e_jptmara
    EXCEPTIONS
        NO_MEDIA_MASTER_DATA = 1
        MATNR_IS_ISSUE_LEVEL = 2
        MATNR_LEVEL_NOT_PROVIDED = 3
        MATNR_NOT_FOUND = 4
. " ISM_HIERARCHY_DATA_PROVIDE




ABAP code using 7.40 inline data declarations to call FM ISM_HIERARCHY_DATA_PROVIDE

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.

"SELECT single MATNR FROM MARA INTO @DATA(ld_pv_i_matnr).
 
 
 
 
 
DATA(ld_pv_i_flag_only_relat_data) = ' '.
 
 
"SELECT single NO_ALLOCATED_DATA FROM RJP_TREE_CONTROL INTO @DATA(ld_pv_i_not_allocated_data).
DATA(ld_pv_i_not_allocated_data) = ' '.
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!