Skip to Content
author's profile photo Former Member
Former Member

Error -5002, Update quantities in purchase order? (INV1.Quantity) Line[2]

We are trying to create Invoices using the SDK tool for a clients interface. Everything goes ok, except at the point where we add the document, we get the following message:

Error -5002, Update quantities in purchase order? (INV1.Quantity) Line[2]

Any ideas? We have searched the SAP notes, but nothing is available. Are we missing anything?

We are running on Version 6.50.098

Thanks

Marios

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 30, 2004 at 09:52 AM

    Hello Marios,

    This error occurs because the last line you are trying to add to the Marketing Document is an empty line. It is a new functionality in Version 6.5 that the document object automatically comes with one document line so if you are adding just one line you do not need to use oDocument.Lines.Add,

    It is only for the second and subsequent lines of marketing documents that you require the method oDocument.Lines.Add. Note 722693 describes the issue.

    Regards,

    Lisa

    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.