cancel
Showing results for 
Search instead for 
Did you mean: 

DiServer: Problem with add/edit quote

Former Member
0 Kudos

I have a problem when create/update a quote using DI Server. The problem happens after create an item and use it in a quote and set a specific price, when save in SAP, DiServer changes the price and set the price of the item, not the price that I set.

This is the code

 foreach (DocumentLine line in this.Lines)
                {


                    envelope += "<Row>";
                    envelope += "<ItemCode>" + line.ItemCode + "</ItemCode>";
                    
                    envelope += "<Quantity>" + line.Quantity + "</Quantity>";
                    envelope += "<WarehouseCode>W01</WarehouseCode>";
                    envelope += "<UnitPrice>" + line.UnitPrice + "</UnitPrice>";
                    envelope += "<TaxCode>C16</TaxCode>";
                    envelope += "</Row>";
                }

SAP Version:

SAP 9.2 PL10

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member390407
Contributor
0 Kudos

Hello Mike,

I would suggest to try to set the LineTotal directly and check if discount shows up. If so probably you have special prices.

Also you can try to fill a property "Price" instead of "UntitPrice" and check if it does the same.