Skip to Content

Problem when cancel an invoice in vf11 error VF039

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

vofa-zsf2.png (54.8 kB)
rv.png (55.3 kB)
s1.png (50.5 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    Posted on Oct 16, 2019 at 03:39 PM

    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 .


    rv2.png (51.4 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 14, 2019 at 11:50 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 14, 2019 at 12:22 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 14, 2019 at 05:59 PM

    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:


    copy-control.png (37.9 kB)
    position11.png (35.6 kB)
    rv.png (56.3 kB)
    error11.png (30.1 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 14, 2019 at 07:07 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 15, 2019 at 10:54 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.