Rightly suggested by Mohana. Declare a variable of type CodeUnit in C/AL Globals and point it to the codeunit whose function you want to call. eg CU1. Then call the function you want by adding just one line.
CU1.function_name;
function_name is the name of the function you want to call.