Skip to Content
avatar image
Former Member

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

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,


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers