Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Cancellation document does not generate Accounting document

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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.