@MarkD, if you want only sales orders and no other documents you can add SOLineSplit by an inner join to the INItemPlan table by PlanID field and take the order numbers from there. But that will show only records associated with sales orders, anything else will be skipped
@MarkD, in that case you can use left join instead of inner join. the only thing in that case is that if you join sales order and no other table, you will get the order numbers for the records associated with sales orders and empty fields for the all others as there is no sales order associated and the correct table is not joined yet. Hope I explained well and understandable :)