croezen
1st April 2011, 16:02
hi guys,
I am using "stpapi.change.view" when i want to check if the bom already exists and i want to insert.
stpapi.put.field(l.ses, "tibom010.mitm", i.mitm)
stpapi.put.field(l.ses, "tibom010.opno", "0")
l.ret = stpapi.change.view(l.ses, o.errmess)
if l.ret <> 1 then
o.OK = false
o.errmess = "BOM present"
goto EndSession
endif
returnvalue : my docu says :
0 = no view found or error occurred and err.mesg is filled
1 = view found and err.mesg is empty
2 = another view found and err.mesg is empty
Now i have an item without BOM and when i use change.view it always returns 2 ????
Is my docu not correct or am i reading it wrong !? what's happening here ?
I am using "stpapi.change.view" when i want to check if the bom already exists and i want to insert.
stpapi.put.field(l.ses, "tibom010.mitm", i.mitm)
stpapi.put.field(l.ses, "tibom010.opno", "0")
l.ret = stpapi.change.view(l.ses, o.errmess)
if l.ret <> 1 then
o.OK = false
o.errmess = "BOM present"
goto EndSession
endif
returnvalue : my docu says :
0 = no view found or error occurred and err.mesg is filled
1 = view found and err.mesg is empty
2 = another view found and err.mesg is empty
Now i have an item without BOM and when i use change.view it always returns 2 ????
Is my docu not correct or am i reading it wrong !? what's happening here ?