Hello, I'm creating a pick list from the "Warehouse Activity Line" table and I only want to include SINGLE LINE sales orders. So basically, the report should look in the "warehouse activity line" table and before it writes a record it should check to see if there are any other detail lines for the same sales order in the table. if there are not, it should print that line (so that it can be picked). If there are additional detail lines for that same sales order, then no lines for the order should be printed.
can anyone help?
0
Comments
but
if i only wanted the first line i would filter on line no 10000
http://www.BiloBeauty.com
http://www.autismspeaks.org
ERP Consultant (not just Navision) & Navision challenger
thanks for your help. I think this just may work.
Try the following:
The least & ugly coding (there might exist a function somewhere in some obscure codeunit that returns the number of sales lines...):
SalesLine.SETRANGE ("Document No.", "Source No.");
IF SalesLine.FINDFIRST AND (SalesLine.COUNT = 1) THEN .....
Also explore SalesLine.NEXT...
ERP Consultant (not just Navision) & Navision challenger