Check Value in External Document inside General Journal if its existing in GL Entry (posted) or Not

SuhailSuhail Posts: 17Member
Dear guys,

i need to make code to check value for External Document No. in enter the value in journals or while posting the journal line to checks the value if its already posted in G/L Entry or not.



Best Regards,

Best Answer

Answers

  • SanderDkSanderDk Posts: 275Member
    edited 2019-07-06
    What have you tryed so far? If you add your code + NAV/BC version, you can expend a lot better answer. :smile:
    For help, do not use PM, but use forum instead, perhaps other people have the same question, or better answers.
  • SuhailSuhail Posts: 17Member
    i didn't try yet, im new in NAV and afraid to crash the system, all i know to put the condition code inside CodeUnit 12 in OnBeforePostGenJnlLine event
  • SuhailSuhail Posts: 17Member
    Hi @SanderDk ,

    Thanks for reply :)
    im using NAV 2018 and appreciate your code i will check it and get back to you,

    Thanks to you
  • SuhailSuhail Posts: 17Member
    by the way i find event similar to the requirement "CheckPurchExtDocNo" in Codeunit 12 and simlar to your code.

    all i need to prevent the users to post an journal line with existing "External Document No." value in "G/L Entry".
  • SuhailSuhail Posts: 17Member
    @SanderDk

    Thanks your guidance was very helpful to me, i really appreciated
Sign In or Register to comment.