Hello Please write somebody about CodeUnit .I want to know how it works And how I can use it. I need this and can’t find this information Thank you.

In the Doc-folder on the Navision Attain product CD, there’s a file called w1w1adg.pdf, which contains an entire chapter about codeunits.

In Navision C/Al code is included in Tables ("OnValidate event for example), Forms and Reports. However you can put some subs in separate modules. It’s like Module object in VBA. Just some kind of functions library. You can call those functions programmatically from form or report if you have defined the link to codeunit in your variables. Oftenly people use Reports as Codeunits (with ProcessingOnly=true).