Hi all,
I'm working on a function wich calls a dataport out of a codeunit.
Does anybody know if there's a possibility to call that dataport with a parameter. In my case I want to pull over the job number which i have as a variable in the CU.
Thanks in advance
Alex
0
Answers
SetJobNumber(Job : Code[10])
JobNumber := Job;
Then, in the init of the Dataport, filter the data with the value of JobNumber.
In the CodeUnit, call the function before runing the dataport
aDataPort.SetJobNumber('MYJOB');
aDataPort.RUN;
viewtopic.php?f=14&t=29492
Regards
Works great!