To modify an existing codeunit, use the following procedure.
To modify an existing codeunit
In the Tools menu, click Object Designer.
In Object Designer, click Codeunit.
Select the codeunit that you want to modify, and then click Design.
In the C/AL Editor, modify the codeunit by changing the existing functions or by adding new functions.