Skip to Content

VF04 + A document with number does not exist

Hello Experts,

When I try to create an intercompany billing document using VF01 for the same delivery, the document is getting created without any trouble. But when the same is being done using VF04, we are getting an error "A document with number <> does not exist".

Has anyone encountered such an issues. Help would be much appreciable.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jul 10, 2020 at 05:48 PM

    What is the exact error message (message class and number)?

    What did you try so far - e.g. looking for SAP notes by using the message class and number as criterion, investigating recent changes to customizing and recent developments, debugging?

    For such kind of problem I would first suspect custom code as a potential root cause. Program SNIF can help you in this case, or, if you are lucky and the project documentation is well maintained and up- to-date, you can also check there.

    VF04 has several options for creating billing documents - individual billing, collective billing, collective billing/online. Speaking from personal experience, the most problems with custom logic I encounter with collective billing in the background.

    Also, it does not hurt to compare the setup which you use (mainly copy control, item categories, especially routines) to what is delivered in standard (it is unclear if you have problem with inter-company stock transfer or inter-company sales, so it is hard for me to be more specific in what you could check before looking for custom logic.

    Add a comment
    10|10000 characters needed characters exceeded

    • When you post a query and give further updates, please add the content under "Comments" and not under "Answer" as you were not answering to a query but only providing additional informations as asked by the members. Also, when you add the text under Comments, it will be intimated to the person to whom you are responding whereas, if you add the text under Answer, the member will not be intimated. By the way, your above answer has been converted as comment by me.

  • Posted on Jul 11, 2020 at 09:13 AM

    This might be a silly one but did you check the box "Intercompany Billing" in VF04? By default, it would be in Delivery-related or Order-related

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 11, 2020 at 09:25 AM

    Please clarify which inter-company process you mean - inter-company sales or inter-company stock transfer.

    This is an important information, without knowing the process it is very difficult to suggest troubleshooting options (especially when incorrect configuration is not eliminated yet as a root cause).

    Does this happen with all inter-company deliveries (whatever this means) or just with some of them?

    If it is with some of them, I would start comparing the data on table level of problematic and non-problematic documents, especially document statuses.

    If the problem is easily reproducible in QAS and you do not mind using some of your test cases

    If you have already checked the document statuses on header and item level of the delivery - did you observe anything out of the ordinary? Running RVDELSTA for the delivery might help. If it seems illogical, but at least in note 2633726 - Error VL002 'A document with number & does not exist' is issued when pressing the button'Display document flow' they mention that it solves a similar case to yours. Of course, this won't help you fix the problem once and for all, but it can point you in the right direction.

    You mentioned that you have eliminated custom logic as potential root cause, but just in case - do you have any enhancement for updating the document flow? The documentation from 2449464 - How to enhance the SD Document Flow (the *.docx attachment) can help you locate the places where you need to check.

    When you encounter this message, is the billing document saved to the database or you cannot create it at all? It would be good if you share screenshots for better understanding. And the document number from the error message - is this the delivery number or it is something else?

    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.