cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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