I am trying to call a function found within a codeunit (codeunit
from within another codeunit (codeunit A).
Can someone tell me where I might find an example of this?
I know that this is a vague request, but I am trying to learn and I like to see examples of good coding in use.
Thank you all!
Comments
Declare Codeunit B as a variable of CodeUnit A.
An Example form Codeunit 80
IF SalesShptLine."Item Shpt. Entry No." <> 0 THEN
DistributeCharge :=
CostCalcMgt.SplitItemLedgerEntriesExist(
TempItemLedgEntry,-SalesShptLine."Quantity (Base)",SalesShptLine."Item Shpt. Entry No.")