Import using dataports run from report

I have to run a dataport from a report. But I also have to send the location code to dataport before executing it.

I have written the below code:-


the location is send to the dataport but RUN does not work.

In my case RUNMODAL wld be more apt instead of RUN as i have to run 10 dataports to import data into the 81 table.

Please help. thanks.

What about it does not work? You get an error? It runs to completion but incorrectly? That could be interpreted in many different ways.