cancel
Showing results for 
Search instead for 
Did you mean: 

issue cancelling a Sales invoice

Former Member
0 Kudos

Dear Experts,

I have an issue where USER had created a delivery document which has 2 line items one with material number and the 2nd line item was entered by mistake I am assuming so the 2nd line got entered in error and got saved with a zero value no material number.

He used VF04 billing document to create billing document and system had split and created 2 invoices for 2 line items (note we have now 2 invoice numbers for the same delivery number)

Now we have to cancel a billing document which got created in error and not it needs to be cancelled.

We are trying to cancel through VF11 but system throws error ''No number maintained''

Now issue is that we use plant as a criteria for maintaining number ranges and this line item has no plant data as no material so we are unable to cancel.

User says that this needs to be cancelled as it keeps coming in their pending to be released list.

Please suggest solution for this issue.

Thank you in advance

Abhishek

Accepted Solutions (1)

Accepted Solutions (1)

VeselinaPeykova
Active Contributor
0 Kudos

Hmmm... since you pointed out that you use plant-specific number range assignment for billing, then do you have a working theory how exactly any number range was assigned to this 'dummy' item in the first place? Is it possible that the user exit is not triggered correctly for collective runs? If this is the case it might be possible to cancel the run from V.21. If not, then you can maintain temporary an assignment for plant ' ' (if your z-table permits such entries) and try to cancel the document.

Answers (1)

Answers (1)

Jelena
Active Contributor
0 Kudos

Wouldn't the obvious solution be to fix the ABAP code in the number range assignment exit?

Former Member
0 Kudos

Thank you much Veselina and Jelena.

I will be trying to cancel the invoice following the process given by you both. Once resolved I will update my comments

Have a great day!!

Former Member
0 Kudos

Thank you both for helping me solve the issue.

I had created a temporary number range assignment and tried cancelling invoice document it worked.

I will check with ABAP to rectify the exit.

Thanks again.

Have a great day!

VeselinaPeykova
Active Contributor
0 Kudos

Glad that you managed to resolve the problem.

If you would like to prevent such problems in the future, it would be a good idea to review item category definition, determination, incompletion procedures and copy control settings - for example you can prevent items being added manually to a specific delivery type, disallow creation of items without material number or without plant assignment in the delivery, or, if it is acceptable to have them in the delivery, to not allow them to be copied to a billing document.

It is a boring task, but in the end will this make your job a bit easier, because users make such kind of mistakes often, unless you manage to prevent them from doing so.

Former Member
0 Kudos

Thanks Veseline for your suggestions I will implement so it is prevented in future.

Regards

Abhishek