BAPI_ACC_DOCUMENT_POST ( BAPI Function Module )


BAPI_ACC_DOCUMENT_POST function module introduction & syntax details

BAPI_ACC_DOCUMENT_POST ( BAPI Function Module )

Functionality

Using this method you can create a posing in accounting for certain business transactions. Possible (Business Transactions):

  • Postings that generally only affect the general ledger. (RFBU)
  • Billing:
    For billing in Sales and Distribution, accounting is supplied with the
    relevant billing data. (SD00) Billing Document
  • Accounting can use the data of a logistics system that result from an Invoice Receipt. (RMRP)
  • Goods
    Movement are triggered by transactions in Sales and Distribution or by
    inventory postings. Within logistics, they lead to

a
change in the warehouse stocks of Inventory Management. This results in
a posting in accounting. This is why accounting is supplied with the
relevant data from logistics. (RMWA)

Pattern:

CALL FUNCTION ‘BAPI_ACC_DOCUMENT_POST’
EXPORTING
DOCUMENTHEADER =
” CUSTOMERCPD =
” CONTRACTHEADER =
” IMPORTING
” OBJ_TYPE =
” OBJ_KEY =
” OBJ_SYS =
TABLES
” ACCOUNTGL =
” ACCOUNTRECEIVABLE =
” ACCOUNTPAYABLE =
” ACCOUNTTAX =
CURRENCYAMOUNT =
” CRITERIA =
” VALUEFIELD =
” EXTENSION1 =
RETURN =
” PAYMENTCARD =
” CONTRACTITEM =
” EXTENSION2 =
” REALESTATE =
” ACCOUNTWT =
.