Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9193

Re: DI API References for Inventory Counting

$
0
0

Hi Eric,

 

I did the test for you

below is the code running on SBODemoSG SBO 9 PL 5

            SAPbouiCOM.SboGuiApi oUI = new SAPbouiCOM.SboGuiApi();            oUI.Connect("0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056");            SAPbouiCOM.Application oAPP = oUI.GetApplication();            SAPbobsCOM.Company oC = oAPP.Company.GetDICompany() as SAPbobsCOM.Company;              if (oC.Connected)            {                SAPbobsCOM.StockTaking oStockTake = oC.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oStockTakings) as SAPbobsCOM.StockTaking;                string sItemCode = "A00001";                double dQuantity = 10020;                                oStockTake.ItemCode = sItemCode;                oStockTake.WarehouseCode = "01";                oStockTake.Counted = dQuantity;                int lErr = oStockTake.Add();              }

 

The Result :

1. The Stock count was updated to the OITW table :

Untitled.jpg

2. But the Inventory counting screen and Inventory posting screen does not reflect this inventory posting.

    They created new objects with their own tables in SBO 9. Previously this only involved OITW. Now they have like a transaction document. There are separate table for Header and Detail for inventory counting. The same for Inventory posting.

And you can create an Inventory Posting document by copying from Inventory counting document - much like SO -> DO/AR Invoice.

 

So, in summary, The Stock Counting object is working on the DI level. But the result is not accessible by user from the SBO Application.

Unless there is a Stock Posting object in DI also, we cannot do anything with this.

 

Regards
Edy


Viewing all articles
Browse latest Browse all 9193

Trending Articles



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