SAP Function BAPI_CUSTOMER_GET_ROOT - BAPI Customer Hiearchy getRoot() Implementation

Parameter Reference Type Length Default Optional Text
CUSTHITYP BAPIKNA1_KNVH-CUSTHITYP C 1 Hierarchy Type of Customer Hierarchy
CUSTOMERNO BAPIKNA103-CUSTOMER C 10 Customer Number
VALID_ON BAPIKNA1_KNVH-VALID_FROM D 8 SY-DATUM X Validity Date

Parameter Reference Type Length Text
RETURN BAPIRET2 u 548 Return Code

Parameter Reference Length Optional Text
NODE_LIST BAPIKNA1_KNVH 80 X Nodes
SALES_AREA BAPI_SDVTBER 8 X Sales Area


Implementation of the Customer.getRoot() Instance Method
The system determines the highest-level customer for the customer inthe hierarchy of the specified type for a specific time.
This parameter returns error, warning and informatio messages thatoccured during processing.
The user can create different hierarchy types in Customizing. You canuse this parameter to restrict the hierarchy types.
Customer instance
The customer hierarchy depends on time. This parameter reads thehierarchy for a specified time.
If this parameter does not contain a value, the system access thehierarchy on the system date.
The nodes of a customer hierarchy are always assigned to a sales area.This parameter restricts the nodes of the current customer instance.The higher-level nodes could also be assigned to another sales area sothis parameter does not influence the selection of those nodes.
The customer object is not detailed enough for this pointbecause the nodes were formed from the sales customer instance.