Hi, I've been doing stuff with outbound and cannot find the error/warning/message that appears in the normal Baan(5c) session whinh2520m000 when trying to direct release
The test data has a (valid) error reporting a shortage:
"advice shortage of XXqty for item YY"
having marked the line - I then run:
stpapi.form.command( "whinh2520m000", 5, "exec.user.5", error )
if error = "" then |if error not produced by form.command above...
error=( stpapi.get.error( ) )
if error <> "" then
message("direls error " & error)
stpapi.end.session( "whinh2520m000" , error )
the command works if there is stock, but if there's a shortage I can't see the warning message. I have got round this by checking ship qty afterwards - but would be better to see the Baan error produced. I've never had to use stpapi.get.error before - is this the correct way of using it? thanks