Fonction SAP BAPI_ACC_GL_POSTING_POST - Accounting: General G/L Account Posting

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DOCUMENTHEADER BAPIACHE08 u 199 Document Header

Paramètre Reférence Type Long. Description
OBJ_KEY BAPIACHE02-OBJ_KEY C 20 Reference Key
OBJ_SYS BAPIACHE02-OBJ_SYS C 10 Reference System
OBJ_TYPE BAPIACHE02-OBJ_TYPE C 5 Reference Transaction

Paramètre Reférence Long. Facultatif Description
ACCOUNTGL BAPIACGL08 345 G/L Account Line Items
CURRENCYAMOUNT BAPIACCR08 42 Line Item Currency Fields
EXTENSION1 BAPIEXTC 1000 X Table for Customer Enhancement
RETURN BAPIRET2 548 Return Parameter

Functionality
You can use this method to update business transactions in Accountingwhich mainly affect the general ledger and are definitely not updatedin subledgers which are relevant to the balance sheet.
An example of this is a provision posting for an expected guaranteeservice.
This can be produce debit or credit entries to balances which are notmanaged in one of the subledgers relevant to the balance sheet. This isespecially applicable if the balances cannot be represented as assets,customers/vendors, materials, loans, etc.
An example of this is a provision posting for an expected guarantee.However, this can also involve depreciation or write-ups in whichvalues have a higher level of summarization than in the correspondingsubledger relevant to the balance sheet in which they are managed.
An example of this is foreign currency revaluation for receivables/payables caused by considerable exchange rate fluctuations which is notupdated in accounts payable or accounts receivable.
A similar transaction may come about when revaluating balances for rawmaterials if the revaluation takes place at a corresponding level ofsummarization.
The third cateogry is the reclassification of items to balance sheetaccounts or income statement accounts, which is only undertaken in thegeneral ledger in order to balance accounts (values are then finallyreassigned to financial statement items).
Example: Reclassifying balances of receivables with different returntimes for the balance sheet.
Restrictions:
This object cannot be used to update business transactions which arenormally posted to one of the subledgers which affects the balancesheet (such as a billing document; for this see the business objectAcctngBilling).
This is especially applicable if the reason the relevant subledgercannot be updated is because it is an external system or is not in use.

Notes

  • If the currency fields have been entered in the CurrencyAmount
  • parameter, the system runs a complete check for the document. Otherwiseonly the account assignment objects are validated.
    • Messages are displayed in the Return parameter. You will find the
    • return values and their meanings in the documentation for thisparameter.

      Further information
      For further information, see the documentation on "Interfaces toAccounting" in the R/3 Library (under "Cross-Application Functions ->Interfaces to External Systems").
      INCLUDE ACC_BAPI_DOCUMENTHEADER OBJECT DOKU ID TX
      INCLUDE ACC_BAPI_ACCOUNTGL OBJECT DOKU ID TX
      INCLUDE ACC_BAPI_CURRENCYAMOUNT OBJECT DOKU ID TX
      INCLUDE ACC_BAPI_EXTENSION OBJECT DOKU ID TX
      INCLUDE ACC_BAPI_RETURN OBJECT DOKU ID TX

1578618Error F5 800 for postings using BAPI
1024468Error log in accounting IDOCS
926421Document number from incorrect number range
794974Problems with cross-company code transactions
884246No FI document with BAPI postings with BKPFF
561175BAPI posting in accounting with FI as reference
667994Preliminary FI document number assignment w/ AC BAPIs