Thanks Mohana,
Can I ask one more question?
How can I join the table and insert record into TempSalesLine table?
e.g.
there are two tables Sales Header and Sales Line,
I want to join these two table with SalesHeader.Document Date, SalesLine.Document No.,SalesLine.Amount...etc
and then insert those field into TempSalesLine table.
Can you give me some hints and example?
Thank you very much