06-21-2007 3:25 PM
Hi,
I am emulating FB60 through function module "BAPI_ACC_DOCUMENT_POST"; which is used to create a non-PO matched invoice. There is couple of things i would like to know.
1- Is there any way to "Park" this invoice, rather than posting it.
2- I am able to post an invoice through this function module; it returns me the document id. But i cannot view the created invoice. I am using FB03 & FBV0 to viewing the invoice. But I am getting an error message that this document does not exists.
Any kind of help would be of great help.
06-21-2007 3:29 PM
2) Are you calling BAPI_TRANSACTION_COMMIT after the BAPI call?
Peter
06-21-2007 3:36 PM
Hi,
You need to use BAPI_TRANSACTION_COMMIT after the BAPI_ACC_DOCUMENT_POST".
e.g.:
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
For parking a document you can try BAPI_INCOMINGINVOICE_PARK.
Rewrd points if helpful answer.
Ashvender
06-21-2007 5:04 PM
06-22-2007 11:17 AM
Hi kaukab,
I have done a similar program as discussed above.
U can write to me for the complete code at
'engsapnabansal@yahoo.com'
Regards,
Sapna.
06-22-2007 11:30 AM
Hi,
if you are creating non-PO matched invoice use the following bapis
BAPI_INCOMINGINVOICE_CREATE
BAPI_ACC_INVOICE_RECEIPT_POST
Check the below theard
https://forums.sdn.sap.com/click.jspa?searchID=3363195&messageID=3270032
<b>Reward points</b>
Regards