baan2tm0
20th November 2005, 16:35
We are currently trying to automate the manual blocking/unblocking of the sales order using AFS.
When I execute my test code:
Dim oBaaN As New Object
Dim sUnblocking As String
Dim tSalesOrder As String
Dim ErrorMsg As String
Dim sFunctionCall As String = Space(100)
Dim RetVal As String
oBaaN = CreateObject("Baan4.Application")
oBaaN.Timeout = 10
tSalesOrder = "tdsls040"
sUnblocking = "tdsls4225m000"
oBaaN.ParseExecFunction("ottstpapihand", "stpapi.put.field(" & Chr(34) & _
sUnblocking & Chr(34) & "," & Chr(34) & ".orno" & Chr(34) & "," & _
Chr(34) & "105588" & Chr(34) & ")")
oBaaN.ParseExecFunction("ottstpapihand", "stpapi.find(" & Chr(34) & _
sUnblocking & Chr(34) & "," & Chr(34) & sFunctionCall & Chr(34) & ")")
RetVal = oBaaN.ReturnValue
sFunctionCall = oBaaN.FunctionCall
I get a BW error:
1: process 3 - Fatal error: Zero pointer: name '' in qss.search
2: process 3 - Fatal error: Can not continue tdsls4225m000 in DLL:
ottstpstandard(<28>)
3: process 3 - Fatal error: Use of NULL pointer on ''
4: process 3 - Fatal error: Can not continue tdsls4225m000 in DLL:
ottstpstandard(<28>)
Please help me sirs and madames. Thanks very much in advance and have a great day. :)
When I execute my test code:
Dim oBaaN As New Object
Dim sUnblocking As String
Dim tSalesOrder As String
Dim ErrorMsg As String
Dim sFunctionCall As String = Space(100)
Dim RetVal As String
oBaaN = CreateObject("Baan4.Application")
oBaaN.Timeout = 10
tSalesOrder = "tdsls040"
sUnblocking = "tdsls4225m000"
oBaaN.ParseExecFunction("ottstpapihand", "stpapi.put.field(" & Chr(34) & _
sUnblocking & Chr(34) & "," & Chr(34) & ".orno" & Chr(34) & "," & _
Chr(34) & "105588" & Chr(34) & ")")
oBaaN.ParseExecFunction("ottstpapihand", "stpapi.find(" & Chr(34) & _
sUnblocking & Chr(34) & "," & Chr(34) & sFunctionCall & Chr(34) & ")")
RetVal = oBaaN.ReturnValue
sFunctionCall = oBaaN.FunctionCall
I get a BW error:
1: process 3 - Fatal error: Zero pointer: name '' in qss.search
2: process 3 - Fatal error: Can not continue tdsls4225m000 in DLL:
ottstpstandard(<28>)
3: process 3 - Fatal error: Use of NULL pointer on ''
4: process 3 - Fatal error: Can not continue tdsls4225m000 in DLL:
ottstpstandard(<28>)
Please help me sirs and madames. Thanks very much in advance and have a great day. :)