cancel
Showing results for 
Search instead for 
Did you mean: 

Problem when cancel an invoice in vf11 error VF039

0 Kudos
1,341

hello ,

I´m trying to cancel an invoice created through vf01 in vf02 and vf11. No problem when the financial docuemnt is NOT created, but with financial accounting documents created I receive the following error

the type of invoice is copy of F2 with an exclusiv range of number and can be cancelled with no accountng document with a S1 DOCUMENT

and S1

the problem is when the logistic invoice is released to financial accounting, then is not posible to cancel the document, and i receive the error above.

the type of financial accounting document created is rv

Can someone help me ?

Thank you in advance

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hello Veselina,

now everything is fine, I had to create a type of document copy of s1 and then iIn transaction code VOFA in the general control tab the field called document type with value RV in both documents.

thank you for your comments .

Answers (5)

Answers (5)

0 Kudos

Hi Veselina,

Thank you for your answer, and as you said I changed (on item level ) routine 006 and for the header routine 005, and as you said through debug we found out that in EXIT_SAPLV60A_002 our sales organization must be entered. now we can cancel the invoice ZSF2 --> S1, but no accounting document is generated.

We continue to investigate the solution, any help will be welcome.

Regards

VeselinaPeykova
Active Contributor
0 Kudos

It should be easy to find out why the accounting document is not generated.

Did you encounter any errors in VFX3?

Is account determination maintained correctly?

When I need to investigate release of billing documents to accounting I use this document as a reference: General Information About SD-FI Interface.

VeselinaPeykova
Active Contributor
0 Kudos

What do you have in VTFF on header level?

You posted VTFF for the document item (item category ZSER) which by the way uses an unexpected routine (027) which is normally used for F2->G2 (TAN) scenarios (retroactive billing). For cancellations (on item level ) I have seen routine 006 and for the header routine 005.

It seems likely that there may be a custom VOFM routine in VTFF on header level. Or maybe somebody stored such validation in an exit (unlikely but who knows). The reason why I suspect custom code as a root cause is the wording of the message in SE91- it does not read as an error, it is more like the info message when you release a document to FI via VFX3. And the text in the message variables from your last screenshot - I would be very surprised if this is standard code, normally in message variables I see the values for the dynamic parts of the message and VF039 has none.

Even if this is not the case - why don't you simply debug and find out why and where this message is issued? This is more efficient compared to asking a question here and waiting for responses...

Edit: I forgot to mention: considering that the error appears before you create the billing document in SD this problem has nothing to do with the configuration for the FI document type.

0 Kudos

Hello Lakshmipathi Ganesan,

I have updated VTFF in that way:

copy-control.png

and the three position so:

and the rv document :

but the error stays:

0 Kudos

I didn´t maintain the copy control in VTFF, because when I cancel with no accounting document , there is no problem. I will do it and let you know.for rv document I will also edit it.

REgards

Lakshmipathi
Active Contributor
0 Kudos

Did you maintain copy control between the two billing document types in VTFF?. Also, for RV document type, you need to have one reverse document type which is blank in your screen shot.