Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

DI API -1116 (-2302) Price for inventory items must match the price list

former_member763572
Discoverer
0 Kudos
206
  • SAP Managed Tags:

Using the DI API Creating a new Quotations, I am getting the following error

-1116 (-2302) Price for inventory items must match the price list.

SAPbobsCOM.Documents oOrder = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oQuotations);

....

oOrder.Lines.Price = Convert.ToDouble(reader2["overwrite_price"]);

oOrder.Lines.UnitPrice = Convert.ToDouble(reader2["overwrite_price"]);

How can i prevent the error from happening?

1 REPLY 1

former_member763572
Discoverer
0 Kudos
139
  • SAP Managed Tags:

Solved the issue by not sending the UnitPrice, only sending the Price property.