Sales-Post code unit Error trapping

arindamarindam Member Posts: 176
Hi All,

I am facing a technical problem. This problem is related to code unit 80 Sales-Post.

I am integrating my code to this code unit. Now I want to perform some function if the code unit returns any error at the end.

I want to perform some error trapping after this line of Code unit 80 "Sales-Post"

IF NOT InvtPickPutaway THEN
COMMIT;

My problem is when Navision encounters any error at this level it is throwing G/L inconsistancy at the above COMMIT level and terminate the application. That's why I am not able to trap the event and show my error message afterwards.

I hope I am able to explain my problem.

Please help.

Arindam

Comments

  • ara3nara3n Member Posts: 9,256
    well the consistency error happens first. You have some serious problem if you are getting consistency error.

    It's like any other error that you would get before your own error. You'll get the first error that occurs.

    So. Put your code before the commit,
    Also find out why you are getting the consistency.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.