CodeUnit 12 - Understand

reemareema Member Posts: 255
Hi,

I am Planning to learn navision. I am trying to understand navision codeunit s. First i focused one Codeunit 12. I completed some part. Mean while I have some doubts . So iam plaing here > so Please provide u r solulition & suggestions.

I am Learning this on demo databse of Navision SP1 Version
I want & need to learn navision , Understand Navision Coding.
Please encourage me , and provide u r valuable suggestions.


My Doubts:
1. why CU 12 has a function GET GL Reg,But it didnot use any where.
Why navision assigned like this NewGlReg := GLreg.
already u have G/L register.
2.U have two Functions Run with check, Run without check.
navision didnot use Run without check function any where. why ?

thanks and regards
reema

Comments

  • ara3nara3n Member Posts: 9,256
    1. The first question you aleady answered yourself.
    Once you have the register it used in other variables as assignment.
    So you can keep the previous values to compare to.


    2. Run function is not used anywhere, and this is because of historical reasons.
    In 3.x version they added dimension functionality. So every journal that was passed to the posting routine CU 12 requires the dimensions. The onRun takes only 1 parameter, and so they added a new function runwithcheck.
    They kept the code on run that way for backward compatibility.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • ara3nara3n Member Posts: 9,256
    I wish they had done the same thing with serial and lot tracking. in CU 22 as they implemented dimensions.
    Ahmed Rashed Amini
    Independent Consultant/Developer


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