Hi Maria,
You need query multiple tables for needed fields. One set of sample queries are:
SELECT DocEntry, DocNum, DocDate, CardCode, TaxDate, DocDueDate
FROM ORDR
WHERE DocDate Between '20140106' AND '20140110'
SELECT DocEntry, ItemCode, Price, UnitPrice, Quantity, WhsCode
FROM RDR1
WHERE DocEntry in (
SELECT DocEntry
FROM ORDR
WHERE DocDate Between '20140106' AND '20140110')
By these 2 queries, you can get sales orders header and rows to DTW templates. Add any fields your need to the queries. If you select all fields, you may have trouble to map them.
Thanks,
Gordon