Fonction SAP BAPI_BANKACCT_GET_HIERARCHY - BAPI: Account Hierarchy for an Account

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_ACCOUNT IBKKBAPIAC-ACCOUNT C 35 Account Number of Relevant Account
I_BANKKEY IBKKBAPI-BANKL C 15 SPACE X Bank Key of Relevant Account
I_COUNTRY IBKKBAPI-BANKS C 3 SPACE X Bank Country of Relevant Account
I_DATE_FROM SYST-DATUM D 8 SY-DATUM X Key Date for Determination of Valid Hierarchy
I_HTYPE IBKKBAPIHY-HTYPE C 6 '000001' X Hierarchy Type

Paramètre Reférence Type Long. Description
E_BANKKEY IBKKBAPI-BANKL C 15 Bank Key of Superior Account
E_COUNTRY IBKKBAPI-BANKS C 3 Bank Country of Superior Account (Main Node)
E_FATHER IBKKBAPIAC-ACCOUNT C 35 Account Number of Superior Account
E_RETURN IBKK_MISC-RC2 C 2 Return Code (-> see Function Module Documentation)

Paramètre Reférence Long. Facultatif Description
T_HIERARCHY IBKKBAPTH1 194 X All Account Relationships of this Hierarchy
T_PAYM_NOTE IBKKBAPTH2 126 X Corresponding Payment Notes

Functionality
This function module (BAPI) reads the current account hierarchy for aspecified account and returns details of the superior (parent) account.
If the specified account is the root account of the hierarchy, thefields for the superior account remain empty.
You have the option of having 2 tables returned.
In the first table you find all the account relationships of thishierarchy. First there are details on the account. If the account isnot a root account, details on the superior account follow.
The second table supplies you with payment notes on all accounts ofthis hierarchy.

Example

Notes

Further information
In the case of error, the following return codes are reported:

  • '1' - bank area could not be determined

  • '2' - no data found for specified parameters

  • '9' - wrong parameters transferred or system error
  • Description
    Refer to the function module documentation.

    Description
    The system determines the hierarchy valid on the key date.
    You specify the validity of a hierarchy when you create it. It can besubsequently changed.