Hi All,
I am testing with the BinLocation features in a document.
I tried to do an Inventory Good Receipt using below code :
SAPbobsCOM.Documents oGR = oC.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry) as SAPbobsCOM.Documents; oGR.DocDate = DateTime.Now; oGR.Lines.ItemCode = "A00001"; oGR.Lines.Quantity = 1; oGR.Lines.WarehouseCode = "UGWSG"; //SAPbobsCOM.DocumentLinesBinAllocations oBin = oGR.Lines.BinAllocations; oGR.Lines.BinAllocations.BinAbsEntry = 81;
But as soon as I reach the BinAllocations object (either line 6 or 7), the system will throw an error :
Attempted to Read or Write protected memory. This is often an Indication that the other memory is corrupt.
It seems that I cannot access the object at all.
Anybody has any idea about this ?
Or anybody has make it to work with BIN allocation in SBO 9 PL5 ?
My system is :
Windows8 64bit,
SBO Client 32bit + 64bit installed. But for this testing only 32bit is running,
SQL Server 2012,
VS2012 Compiled in x86.
Regards
Edy