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'
DOCUMENTHEADER = WA_DOCHEAD
ACCOUNTPAYABLE = IT_VENDOR
CURRENCYAMOUNT = IT_CURRENCY
RETURN = IT_RETURN
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.
Thanks in advance.