Fonction SAP BAPI_MATERIAL_GET_PRODUCTHIER - BAPI Material Get Product Hierarchy ()

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DISTRIBUTION_CHANNEL BAPI_SDVTBER-DISTR_CHAN C 2 X Restrict Distribution Channel
HIERARCHY_TYPE BAPIMAT_PRODHR-HIER_TYPE N 1 Hierarchy Type for Product Hierarchy
PRODUCT_HIERARCHY BAPIMAT_PRODH-PROD_HIER C 18 X Product Hierarchy
READ_REFERENCE BAPIMAT_PRODHM-READ_REF C 1 ' ' X Read References (yes/no)
SALES_ORGANIZATION BAPI_SDVTBER-SALES_ORG C 4 X Restrict Sales Organization

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548 Return Code

Paramètre Reférence Long. Facultatif Description
NODE_LIST BAPIMAT_PRODH 98 X Product Hierarchy Nodes
NODE_REFERENCE_LIST BAPIMAT_PRODHR 125 X Nodes with Reference to Material Master Records


Implementation of class method getProductHierarchy()
All subordinate nodes and pages are read for a product hierarchy. Ifthe parameter Product hierarchy is not set, all producthierarchies are read.
This parameter is used to return notes, warnings and errors that haveoccurred during processing.
If the product hierarchy is read from an SD view, all material mastersare assigned to a sales organization or distribution channel. Thisparameter restricts the number of material masters according to thedistribution channel.
The product hierarchy can be assigned to the material master recordwith several views (basic data and SD). This parameter controls whichview is used to read the material masters.
This parameter specifies the header node, for which all subordinatenodes are read. If this paramter is not set, all subordinate nodes tothe root nodes are read.
This parameter controls whether the product hierarchy is read withmaterial master records.
  • X Read Product Hierarchy and Material Master Records

  • SPACE Read the Product Hierarchy

  • This parameter was introduced to enable mass data transfer.
    If the product hierarchy is read from an SD view, all material mastersare assigned to a sales organization or distribution channel. Thisparameter restricts the amount of material masters according to salesorganization.
    The product hierarchy nodes refer to texts, which describe the nodes:
    • Text for the current node

    • Concatenated text for the current and all subordinate nodes.

    • The product hierarchy material masters are of business object typeMaterial.