Skip to Content
0

How to Add Freight Charges(Table POR3) in PO Via B1WS?

Jan 24, 2017 at 08:43 AM

33

avatar image
Former Member

Dear Team,

I want to add Freight Charges via B1WS DocumentDocumentAdditionalExpense Service, i used to add below code,

PurchaseOrdersService.Document Doc1 = new PurchaseOrdersService.Document();

Doc1.DocumentAdditionalExpenses = new PurchaseOrdersService.DocumentDocumentAdditionalExpense[salormodel.FreightDetails.Count]; int j=0; foreach (FreightModal lst in salormodel.FreightDetails) { PurchaseOrdersService.DocumentDocumentAdditionalExpense DocFreight = new PurchaseOrdersService.DocumentDocumentAdditionalExpense(); DocFreight.ExpenseCode = lst.freightcode; DocFreight.ExpenseCodeSpecified = true; DocFreight.TaxCode = lst.taxcode; DocFreight.LineTotal = lst.NetAmount; Doc1.DocumentAdditionalExpenses.SetValue(DocFreight, j); j = j + 1; } }

In this code executed without error, but values not updated in POR3 table, is there any missing in this code or any alternative code please let me know.

Thank you,

Ramesh

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers