Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Not posting discout value in Sales Order and make all the value ZERO

Hi All,

I am posting Sales Order on click event of Add Button in SALES QUOTATION.

Its working fine and sales order are creating. But when I pass Discount Value in row level (Item Wise) then every value gets converted into zero in Sales Order.

While debugging I checked every value is passing and also its adding.

There is no error while adding but when I go in sales order total,unitprice,Row discount is zero

Please suggest me.............................

Code is :-

vSO = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)

vSO.DocObjectCode = SAPbobsCOM.BoObjectTypes.oOrders

vSO.DocNum = sdocnum_SO

vSO.CardCode = scustcode

vSO.HandWritten = SAPbobsCOM.BoYesNoEnum.tNO

vSO.DocDate = sdocdate

vSO.DocDueDate = sdocduedate

vSO.DiscountPercent = dDiscount

vSO.Lines.ItemCode = sitemcode

vSO.Lines.ItemDescription = sdesc

vSO.Lines.WarehouseCode = sWhs

vSO.Lines.Quantity = squantity

vSO.Lines.Price = sprice

vSO.Lines.DiscountPercen = dDiscount_Lines

Former Member
Not what you were looking for? View more on this topic or Ask a question