Skip to Content
0
Former Member
Dec 24, 2007 at 02:28 AM

Import Item by Level

36 Views

Hi,

Can someone please teach me how to send item by level into SAP using SDK?

Currently, we don't inventory this item. We are selling services.

So my salescredit account and sales account GL code is "401000"

When i set it as below:

item.SalesItem = SAPbobsCOM.BoYesNoEnum.tYES

item.PurchaseItem = SAPbobsCOM.BoYesNoEnum.tNO

item.InventoryItem = SAPbobsCOM.BoYesNoEnum.tNO

item.AssetItem = SAPbobsCOM.BoYesNoEnum.tNO

item.GLMethod = SAPbobsCOM.BoGLMethods.glm_ItemLevel

item.IncomeAccount = GetGLCode(Product.GL_Account__c)

item.ExemptIncomeAccount = GetGLCode(Product.GL_Account__c)

item.DefaultWarehouse = "01"

item.WhsInfo.SetCurrentLine(0)

item.WhsInfo.SalesCreditAcc = GetGLCode(Product.GL_Account__c)

item.WhsInfo.RevenuesAccount = GetGLCode(Product.GL_Account__c)

The product doesn't get imported. But the error return saying Sales credit account not defined for this item. [OITW.ARCMAct] SXKKL08

Please advise whats the best method i should be using. Thanks