Hi,
Check
To post the Inventory Posting based on Counting, should be something like
Dim oCS As SAPbobsCOM.CompanyService = oCompany.GetCompanyService() Dim oIPS As SAPbobsCOM.IInventoryPostingsService = oCS.GetBusinessService(ServiceTypes.InventoryPostingsService) Dim oIPP As SAPbobsCOM.InventoryCountingParams = Nothing Dim oIP As SAPbobsCOM.InventoryPosting = oIPS.GetDataInterface(InventoryPostingsServiceDataInterfaces.ipsInventoryPosting) oIP.PostingDate = DateTime.Now Dim oIPLS As SAPbobsCOM.InventoryPostingLines = oIP.InventoryPostingLines Dim oIPL As SAPbobsCOM.InventoryPostingLine = oIPLS.Add oIPL.BaseEntry = 1 oIPL.BaseLine = 0 oIPL.BaseType = 1470000065 oIPP = oIPS.Add(oIP)
Regards
Edy