0

Listing fields on two tables

Hello experts.

I'm trying to list all Sales Order Numbers, along with their order dates and locations that match specified criteria. So what I need to do is somehow combine the following:

nl("Rows", "Sales Header", {"No.", "Order Date", "Location Code"}, < criteria >)
and
nl("Rows", "Sales Shipment Header", {"Order No.", "Order Date", "Location Code"}, < criteria >)

Sales Order Numbers may exist in the Sales Header table only, the Sales Shipment Header only, or both tables simultaneously. To further complicate things, the field name is different. I need to get a unique list of Sales Order Numbers sorted by the Sales Order Number, so simply putting 1 nl("Rows"…) line after another won't do. I'm at a loss as to how to do this. Can someone shed some light on this?

2 comments

Please sign in to leave a comment.