Passing a variable to a dataport

I am launching a dataport from a sales quote to import sales lines. I would like it pass the document number of the sales quote to the dataport. How do I do this?

The easiest way is to create a function in the dataport which sets a global variable. Just call this function before you run the dataport. Chris.