Hi everyone,
Is there a way to detect (by the code) that codeunit 80 did not complete successfully?
Of course, I'll get an error message when the order/invoice is not posted, but I want to be able to detect by code that the codeunit stopped because I have a block of code to execute in case of unsuccessful posting...
I thought of using IF SalesPost.RUN THEN but in this case it will run in a batch mode, I am not able to get error messages anymore...
Any ideas?
Thanks in advance
Is there a way to detect (by the code) that codeunit 80 did not complete successfully?
Of course, I'll get an error message when the order/invoice is not posted, but I want to be able to detect by code that the codeunit stopped because I have a block of code to execute in case of unsuccessful posting...
I thought of using IF SalesPost.RUN THEN but in this case it will run in a batch mode, I am not able to get error messages anymore...
Any ideas?
Thanks in advance