on 11-13-2012 5:00 PM
Hi all,
We are trying to create a stocktaking using the following piece of code but when the system try to save the document (ST.Add), system crashes with message vhost32.exe has stopped working. What is wrong on the following?
Dim ST As SAPbobsCOM.StockTaking | |
ST = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oStockTakings) | |
ST.ItemCode = "10001" | |
ST.WarehouseCode = "00" | |
ST.Counted = 5 | |
ST.Add() |
Hi Fedias,
I have similar code running in SBO 882. PL 8 without problem.
Have you try clearing the temp folder / reinstall the DI API ?
What is your SBO Version ?
Regards
Edy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
excuse me, someone has some example of accounting for stock Sap Bussines one through di api , it does not work right through me and I need to do one of a web service for a android application consuming the service. I have this does not work , I'm using the version 9.10.150 sap PL 05
Dim oStockTaking As SAPbobsCOM.StockTaking
' Dim oRecord As SAPbobsCOM.Recordset
' oRecord = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
'oRecord.DoQuery("SELECT * FROM MyStockTableTbale")
'oRecord.MoveFirst()
Dim i As Integer
' For i = 0 To oRecord.RecordCount - 1
oStockTaking = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oStockTakings)
oStockTaking.ItemCode = TableLines.Rows(0).Item(0) 'oRecord.Fields.Item("ItemCode").Value
oStockTaking.WarehouseCode = "02"
oStockTaking.Counted = TableLines.Rows(0).Item(2)
If oStockTaking.Add() = 0 Then
MessageBox.Show("Error: " & oCompany.GetLastErrorDescription)
End If
' oRecord.MoveNext()
' ReleaseObject(oStockTaking)
' Next
MessageBox.Show("Done Processing")
this is what I have but I Fail
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I asked support about this also. Currently they have no plans to opening this up.
I put an "idea" in at:
Maybe if we get enough votes they will add it back in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
9 | |
9 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.