[Function Expose] Codeunit 905 “Assembly Line Management” – AddBOMLine2()
Codeunit 905 “Assembly Line Management”
The function AddBOMLine2() needs to be made global/external. This function is important when working with assembly orders in extensions.
Would AddBOMLine do the trick? It calls AddBOMLine2. Only difference is that it also creates and AsmLine. We're a little cautious about exposing local functions, as every local function we expose is limiting our ability to change and refactor our code going forward.
AddBOMLine would do the trick in most circumstances. The only advantage with AddBOMLine2 is you can use it with temporary record sets.
Would it be ok if I expose the public function instead of the local function then, in spite of the minor disadvantage? We need to turn the trend of exposing implementation details around. For now, I will do so. If that solution does not suffice, please let me know and I'll take one more look.
Btw. is function AddBOMLine on TAB900 already exposed. This might unblock you until the function in COD905 is exposed?
I think exposing the public function will be fine. Thanks for your help.