I have a codeunit that has the Production Order Line table as the source and the On Run trigger shows these two lines of code:
ProdOrderLine.GET(Status,'xxxx',10000);
ExecuteFunction(ProorderLine);
The XXXX represents the Production Order No. but someone hard coded it in as you can see. How do I call this codeunit else where (say on a form) but by reference depending on which Production Order line I am on? I tried doing the SetRANGE routine or calling the codeunit.run method directly and so far have no luck. Help!!