on 09-23-2008 10:21 AM
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 ?
Hi,
you access the freight in a document with
oDoc.Expenses.ExpenseCode (Mandatory)
look in the DIAPI documentation for all properties.
lg David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
U need to use the Lines.Expenses to add the frieght charges, its as follows,
objDoc.Lines.Expenses.LineTotal = 100
Just set the correct line before adding the expenses.
Hope it helps,
Vasu Natari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.