SAP 9.0 PL12 supports the InventoryCounting object now. Does anyone know how to use it? Can I get an example? Below is what I've started, it seems I should be able to select the BoObjectTypes but nothing in there seems to match.
Public Sub CreateInvCounting(ByVal SBOApp As SAPbouiCOM.Application)
Dim oInvCount As SAPbobsCOM.InventoryCounting = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.???)
Dim oInvCountLine As SAPbobsCOM.InventoryCountingLine
Try
oInvCountLine = oInvCount.InventoryCountingLines.Add
oInvCountLine.ItemCode = "A00001"
oInvCountLine.CountedQuantity = 100
oInvCountLine.Counted = SAPbobsCOM.BoYesNoEnum.tYES
oInvCount.Add()
Catch ex As Exception
SBOApp.MessageBox("Failed to add inventory counting document." & vbNewLine & ex.ToString)
End Try
SBOApp.MessageBox("Inventory Count Record Created")
End Sub