To create a new codeunit by using Object Designer, use the following procedure.
To create a codeunit
-
Click the Tools menu and then click Object Designer.
-
In Object Designer, click Codeunit.
-
Click New to create a new codeunit.
-
In the C/AL Editor, add functions.