Fonction SAP BAPI_CUSTOMER_GET_CHILDREN - BAPI Customer Hierarchy GetChildren() Implementation

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CUSTHITYP BAPIKNA1_KNVH-CUSTHITYP C 1 Hierarchy Type of Customer Hierarchy
CUSTOMERNO BAPIKNA103-CUSTOMER C 10 Customer Number
NODE_LEVEL BAPIKNA1_KNVH-NODE_LEVEL N 2 '00' X Node Depth
VALID_ON BAPIKNA1_KNVH-VALID_FROM D 8 SY-DATUM X Validity Date

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

Paramètre Reférence Long. Facultatif Description
NODE_LIST BAPIKNA1_KNVH 80 X Nodes
SALES_AREA BAPI_SDVTBER 8 X Sales Area

Implementation of Instance Method: Customer.getChildren()
The system determines the customers subordinated to the ValidOnbusiness transaction event, up to the level indicated, for the customerin the hierarchy of the specified hierarchy type. The system issues thedirect predecessor to each node.
This parameter returns error, warning and information messages thatoccured during processing.
The user can create different hierarchy types in Customizing. Thisparameter can be used to restrict the hierarchy types.
Customer instance
Use this paramter to specify the relative depth of the dependent nodes.
The following characteristics are possible:

  • 00 No dependent nodes. Only the attributes of the current node
  • are returned.
    • 01 Dependent nodes from the subordinate level including the
    • current node.
      • SPACE All dependent nodes including the current node.

      • The customer hierarchy is dependent on time. This parameter reads thehierarchy for a pre-defined time.
        If this parameter does not contain a value, the system access thehierarchy with the system date.List of nodes. This format relates to Business Object Repository (BOR)types.
        The nodes of a customer hierarchy are always assigned to a sales area.This parameter restricts the nodes of the current customer instance.The subordinate and end nodes can always be assigned to another salesarea and this parameter does not influence the selection of thesenodes.
        The customer object is not detailed enough to be at this pointbecause the nodes were formed from the sales customer instances.