Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8914

Inventory Counting

$
0
0

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


Viewing all articles
Browse latest Browse all 8914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>