SP not working "Can not insert value null in Field Docentry"
Detailed problem description: This is in SBO2005B PL 39
We have created some store procedures in SP_transactionnotification. To monitor if user are doing something they are not suppose to do. For all other transaction it seems to be working fine. But in Invoice, one part of the sp would not work at all (it will tell me it has been completed successful, but no document is added), and if I disable that part other part which work against objtype 13 works. Which means if something is wrong it will sent me a error message and stop transaction, but when I correct the problem and try to add again. I get MS_SQL error message "Can not insert null in INV11.DOCENTRY, this field doesn't accept null value" I attached the screen shot here.
I have taken everything off the original store procedure and used just the problem SP for Invoice and it is still the same problem. Furthermore when I run the store procedure against another set of similar DB without the DTW loads and it works fine. I am just not sure what's wrong with it... Can anyone help please?