Fonction SAP BKK_ACCNT_GET_HY_BALANCES - Provides Acct Balance and Subject to Final Payment Balance for a Hierarchy

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_BKKRSDATE IBKK_ITEM-DATE_SYPO D 8 X Posting Date of Bank Area
I_HYDATA IBKKE4 u 73 Hierarchy Data

Paramètre Reférence Type Long. Description
E_HY_BALANCE BKK54-BALANCE P 12 Account Balance
E_HY_COLBAL BKK55-COLBAL P 12 Subject to Final Payment Balance

Exception Description
DATABASE_ERROR
PARAMETER_ERROR

Functionality
This function module supplies the amount currently available for anaccount.
The current account balance, the current subject to final paymentbalance and the internal limit are used to calculate the amount.
First, the subject to final balance payment is subtracted from theaccount balance. The difference between the result of the subtractionand the internal limit is the amount currently available.

Example
Current account balance: - 2,000 EUR (credit)
Current subject to final payment balance: - 5,000 EUR (credit)
Internal limit: 10,000 EUR (debit)

Calculation of the actual account balance:
Current acct balance - Current sub.fin.bal. = actual account balance
- 2,000 EUR - - 5,000 EUR = 3,000 EUR (debit)

Calculation of the available amount:
Actual account balance - internal limit = available amount
3,000 EUR - 10,000 EUR = - 7,000 EUR (credit)