Hi,
I have developed a script to prevent user adding CO lines in OIS101/H panel if some conditions are met?
Stopping part works great.
I go through grid lines, if item ID is not blank and q-ty > 0 I call API CRS212MI to check item danger code.
If code found, I add item to the list of items with danger codes.
If the list is not empty, I set args.cancel = true, user can't add lines to CO, and error message is displayed.
If list is empty I set args.cancel = false.
However, M3 still stays in OIS101/H panel and can't add CO line.
Has anyone encounter this issue and how do I solve it?
Thanks,
Kirill