12-20-2011 12:07 PM
Hi Experts,
I am facing an issue that when a Billing document is getting cancelled through workflow ,the billing document does not generate a accounting document .I tried debugging the issue to check it but could not find the root cause of the issue.
In the code we are using 'BAPI_BILLINGDOC_CANCEL1 to cancel the billing document.
How to find that the accounting documents are getting generated from the corresponding billing documents correctly.
Thanks&Regards,
Praveen
12-20-2011 12:12 PM
First of all, are you able to create S1 type cancellation document after you call the BAPI? If you are not even able to generate the cancel document, perhaps you are missing committing the BAPI after calling it by using BAPT_TRANSACTION_COMMIT.
Also are you able to create cancellation and accounting document by calling the BAPI through a test ABAP program? First check it out before using it in your workflow.