Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10052

Re: Query to extract marketing documents to be used in the DTW upload

$
0
0

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


Viewing all articles
Browse latest Browse all 10052

Trending Articles