Skip to Content
0
Former Member
May 05, 2005 at 08:53 PM

BAPI_ACC_DOCUMENT_POST in down payment

4803 Views

Hi!

When i create a Purchase order i have to make an automatic down payment request (F-47), i'm working with an user exit that calls the BAPI_ACC_DOCUMENT_POST bapi from the PO transaction. Anybody have a code example on how to use this bapi with this scenario?. I made a local program to test the bapi with this call:

CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'

EXPORTING

DOCUMENTHEADER = WA_DOCHEAD

  • CUSTOMERCPD =

  • CONTRACTHEADER =

TABLES

  • ACCOUNTGL =

  • ACCOUNTRECEIVABLE =

ACCOUNTPAYABLE = IT_VENDOR

  • ACCOUNTTAX =

CURRENCYAMOUNT = IT_CURRENCY

  • CRITERIA =

  • VALUEFIELD =

  • EXTENSION1 =

RETURN = IT_RETURN

  • PAYMENTCARD =

  • CONTRACTITEM =

  • EXTENSION2 =

  • REALESTATE =

.

The IT_RETURN itab from BAPI_ACC_DOCUMENT_CHECK returns "Document check - no errors" .

the IT_RETURN itab from BAPI_ACC_DOCUMENT_POST returns

"Document posted successfully"

But no document had been posted! i look at the BKPF itab and nothing was created.

Please help.

Thanks in advance.

John.