Fonction SAP BAPI_BANKACCT_GET_ROOTACCOUNTS - BAPI: Determination of Root Accounts for a Hierarchy

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
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 SYST-DATUM D 8 Key Date for Determination of Valid Hierarchy
I_HTYPE IBKKBAPIHY-HTYPE C 6 Hierarchy Type

Paramètre Reférence Type Long. Description
E_RETURN IBKK_MISC-RC2 C 2 Return Code (-> see Function Module Documentation)

Paramètre Reférence Long. Facultatif Description
CT_HIERARCHY IBKKBAPTH1 194 X All Account Relationships of this Hierarchy

Functionality
The function module (BAPI) finds the root accounts in accounthierarchies according to the transferred parameters.
The following applies to the import parameters:
The bank country and bank key are optional. If they are transferred(either both or none), the selection is restricted to the bank areafound.
The hierarchy category is a required entry. This shows the hierarchycategory for which the selection is to be made.
The key date is a required entry. All the hierarchies that are valid onthis date are selected.
As a result, the system displays a table of all the root accounts found.The same structure is used as in the function moduleBAPI_BANKACCT_GET_HIERARCHY. The entries for the higher-level accountsare not used.
You need to use the function module BAPI_BANKACCT_GET_HIERARCHY forfinding accounts in the individual hierarchies.

Further information
If errors occur, the following return codes are provided:

  • '1' Bank area could not be found

  • '2' No data found for specified parameters

  • '9' Incorrect 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.