on 09-25-2008 12:43 PM
I am entering A/R invoices using DI/API.I am using the following code -
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")
I want to set Sales Employee as -No SE - .I tried the code
objDoc.SalesPersonCode = -1
But any random sales person is getting set.The code for setting owner is working properly bu the code for setting sales employee is not working.
What ur doing is fine. Just make sure that ur using the correct SLPCODE from table OSLP
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 |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
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.