Skip to Content

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

Freight in A/R Invoice

I am entering A/R invoices through SDK.I am using the following code-

 Dim objDoc As SAPbobsCOM.Documents

 objDoc = objCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)objDoc.DocObjectCode = SAPbobsCOM.BoObjectTypes.oInvoices
 objDoc.CardCode = objDTHeader.Rows(intI).Item("CardCode")
                    objDoc.HandWritten = SAPbobsCOM.BoYesNoEnum.tNO
                    objDoc.DocDate = objDTHeader.Rows(intI).Item("DocDate")
                    objDoc.DocDueDate = DateAdd(DateInterval.Day, 30, objDTHeader.Rows(intI).Item("DocDate"))
                    objDoc.DiscountPercent = objDTHeader.Rows(intI).Item("Discount_Percent")
                    objDoc.Series = 39
 objDoc.Lines.Add()
lngStatus = objDoc.Add

I am able to enter all details except freight.How do I enter freight ?

Former Member
Former Member replied

Hi,

As david said 1st u need to set the ExpnsCode, its as follows,

oInvoice.Lines.Expenses.ExpenseCode = intFreightCode
 oInvoice.Lines.Expenses.LineTotal = 100

Hope it helps,

Vasu Natari.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question