COMPLETE_MATERIAL_HIER_ENTRY SAP Method Complete Product Hierarchy
Below is documentation, parameters and attributes of ABAP Method COMPLETE_MATERIAL_HIER_ENTRY within SAP class /SCMB/CL_PB_DATA. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name /SCMB/CL_PB_DATA into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Instance
This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.The following technical details of method COMPLETE_MATERIAL_HIER_ENTRY can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method COMPLETE_MATERIAL_HIER_ENTRY
.| Name | Type | Data Type | Description | Default Value |
| IV_LEVEL | Importing | TYPE INT1 | Material Hierarchy Level | |
| IV_MATERIAL_KEY_SUPER | Importing | TYPE /SCMB/MDL_PRODUCT_ID | Internal Key for Product | |
| ERS_MATERIAL_HIERARCHY | Exporting | TYPE REF TO DATA | ||
| EV_MATERIAL_ID_SUPER | Exporting | TYPE /SCMB/MDL_MATNR | Product Number | |
| CT_MATERIAL_HIERARCHY_ADJUSTED | Changing | TYPE TY_T_MATERIAL_HIERARCHY_REF | ||
| CV_MAT_ID_INTERNAL | Changing | TYPE INT4 | Internal Material ID for PBO |
Exceptions of Method COMPLETE_MATERIAL_HIER_ENTRY
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO /SCMB/CL_PB_DATA.
DATA: lv_CT_MATERIAL_HIERARCHY_ADJUSTED TYPE TY_T_MATERIAL_HIERARCHY_REF,
lv_CV_MAT_ID_INTERNAL TYPE INT4,
lv_ERS_MATERIAL_HIERARCHY TYPE DATA,
lv_EV_MATERIAL_ID_SUPER TYPE /SCMB/MDL_MATNR,
lv_IV_LEVEL TYPE INT1,
lv_IV_MATERIAL_KEY_SUPER TYPE /SCMB/MDL_PRODUCT_ID,
lv_other TYPE c.
CALL METHOD lo_class=>COMPLETE_MATERIAL_HIER_ENTRY(
EXPORTING
IV_LEVEL = lv_IV_LEVEL
IV_MATERIAL_KEY_SUPER = lv_IV_MATERIAL_KEY_SUPER
IMPORTING
ERS_MATERIAL_HIERARCHY = lv_ERS_MATERIAL_HIERARCHY
EV_MATERIAL_ID_SUPER = lv_EV_MATERIAL_ID_SUPER
CHANGING
CT_MATERIAL_HIERARCHY_ADJUSTED = lv_CT_MATERIAL_HIERARCHY_ADJUSTED
CV_MAT_ID_INTERNAL = lv_CV_MAT_ID_INTERNAL ).
Links to Related Class(s)
/SCMB/CL...Full list of available SAP object classes
Search for further information about these or an SAP related objects