Data port

Am doing a Data Port, here i want to insert records in to 2 tables one is Sales Header as well as in Sales Line. How to insert records with a single dataport.

Regards,

Seshadri.

define field for your dataport, e.g. x, y.

var SalesHeader, SalesLine

in OnAfterImportRecord()

SalesHeader.somefield1 := x;
SalesHeader.somefield2 := y;

SalesLine.somefield1 := x;
SalesLine,somefield2 := y;

then what will be the dataitem has to be defined