Quantcast
Channel: NAV/Navision Classic Client — mibuso.com
Viewing all articles
Browse latest Browse all 2239

Pass Variables to Codeunit.RUN

$
0
0
Hello,

I am having an issue with the log and maybe someone can help me out. I need to pass the BatchScriptCode field a particular codeunit. But I am not sure how I can do this. I cant use the typical way of doing it, where we create a codeunit variable in the globals, in the codeunit, we can create a function called SetDefault and pass the batchscriptcode. The reason I cant do this because we don't know what the pre-mapping codeunit or mapping codeunit is going to be. This information is going to be determined by looking at DataExchMapping field.

This is how the system is currently calling these codeunit:
CODEUNIT.RUN(DataExchMapping."Pre-Mapping Codeunit" "Rec").

Any help will be appreciated.

Viewing all articles
Browse latest Browse all 2239

Trending Articles