cancel
Showing results for 
Search instead for 
Did you mean: 

want to differentiate between Cancelled invoice & New Invoice Created

mahmoud_rashad
Explorer
0 Kudos

Dear consultants,


When we cancel an invoice & then create new invoice for the same order , then the cancelled invoice & correct invoice have the same code (F2) and same number range, so here is the problem when we want to print group of invoices from transaction (VF31) i can't differentiate between the correct invoice & the cancelled one 


Is There Any Solution For such problem ?


Accepted Solutions (1)

Accepted Solutions (1)

joseantonio_martinez
Active Contributor
0 Kudos

Dear Mahmoud:

In VBRK you can check the S1 invoice and the cancelled invoice.

VBRK-SFAKN

With these info you can get the cancelled invoice.

Check it and revert

Antonio Martinez

Answers (5)

Answers (5)

joseantonio_martinez
Active Contributor
0 Kudos

Edit:

Yes, you are right, because maybe you cancel a posted invoice and the message was created successfully with requirement 62 (only print posted invoices), but take into account that since the output message was created is not possible to change it.

Maybe you can copy VF31 transaction and add a filter to discard cancelled invoices.

Regards Antonio Martinez

mahmoud_rashad
Explorer
0 Kudos

Yes , here is the problem the only filter that i can use is in the ( Billing Doc. Number) and the user can't differentiate between numbers because cancelled and correct invoice have the same number range.

joseantonio_martinez
Active Contributor
0 Kudos

Dear Mahnoud:

Is necessary to get a list of the right invoices and then pass it to VF31 list.

Antonio Martinez R

mahmoud_rashad
Explorer
0 Kudos

Actually , i discovered that your solution is applicable to me as a consultant , but the end user won't go to info record or do it ,

So i think we will make it by an enhancement (ABAP) to make a new requirement in the Output control to print the correct (not-cancelled) invoices Only.

What do you think ???/

mahmoud_rashad
Explorer
0 Kudos

mr.Jose Antonio Martinez

concerning ( VF31 ) are there any requirements in Output control that i can set to prevent me printing the cancelled invoice & print the new invoices created only .

mahmoud_rashad
Explorer
0 Kudos

Thanks Mr.Jose Antonio Martinez

that what i need , just get the list of the correct invoice from that table you mentioned and then put them in the VF31 report . this will allow the user to print the correct invoice only..

Regards,

Mahmoud Rashad

joseantonio_martinez
Active Contributor
0 Kudos

Thanks for the feedback, and great that my answer was helpful.

joseantonio_martinez
Active Contributor
0 Kudos

Dear Mahmoud:

Also with VBFA table you can check if the original invoice have a cancellation.

If the invoice was cancelled will have a VBFA-VBELN document with VBFA-VBTYP_N = N (Invoice cancellation)

Check it

Antonio Martinez R