Fonction SAP BAPI_ACCOUNT_GETBALANCES - Retrieves Balances for a Contract Acct

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CONTRACTACCOUNT BAPICONTRACC-CONT_ACCT C 12 Contract Account
PARTNER BAPICONTRACC-BUSPARTNER C 10 Business Partner

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN u 452 Error Structure

Paramètre Reférence Long. Facultatif Description
ACCOUNT_BALANCES BAPIACCBALANCES 50 Table of Contract Account Balances

Functionality
With this method you get the balances for a contract account.
In BUPARTNER you submit the business partner and in ACCOUNTNO yousubmit the contract account. The method then gives you the balancesdefined in event 3069. The event (function module FKK_SAMPLE_3069)delivers the following balances as standard:

  • Open items

  • Due items

  • Cash security deposits

  • Payments on account

  • Installment plans

  • Down payments

  • The balances are submitted in the ACCOUNT_BALANCES table.
    If the standard Function module FKK_SAMPLE_3069 is used, the table isempty if no items at all are available on the contract account,otherwise a line is written in the ACCOUNT_BALANCES table for eachbalance and transaction currency.
    You can also use an alternative function module in event 3069 anddefine other or additional balances that can then be called up withthis method.

    Description
    The return code of this method is returned in a structure with 5fields. For information on the meaning of the individual fields, seethe corresponding data element documentation.
    Structure
    TYPE,,Message type
    CODE,,Message code
    MESSAGE,,Message text
    LOG_NO,,Application log: Log number
    LOG_MSG_NO,,Application log: Sequential number of message

    Default

    Description
    Here you transfer the contract account for which you want to determinethe contract account balances.

    Description
    Here you transfer the business partner for whom you want to determinethe contract account balances.

    Description
    This table gives you the contract account balances. The first columncontains the descriptions of the balances, the second column containsthe balance amounts, and the third column contains the currencies ofthe balances.