Skip to Content
0
Former Member
Feb 25, 2011 at 08:02 PM

Example BAPI_ACC_DOCUMENT_POST for a credit memo

1172 Views

I need to check some invoices before I parked them. Please post an example of BAPI_ACC_DOCUMENT_POST but i need to check a credit memo or customer invoice ( Doc Type: DR and DG) This is mi code:

ALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'

EXPORTING

documentheader = ls_docheader

TABLES

accountgl = lt_accglitem

ACCOUNTRECEIVABLE = lt_customer " new

currencyamount = lt_curramnt

return = lt_return.

But when i run the program this error appaer:

" FI/CO Interface: Line Item entered several times RW"

Any idea?