Hello Ad?le,
Your answer contains a clue. "An invoice can be quickly added to or deleted from a shipment."
So these are all invoices that make up a single "shipment"?
I'm not looking for you to change your method of invoicing, I'm trying to determine how you know which invoice numbers to choose. If I knew that, then I might be able to figure out a simple way for the computer to be able to make the same decision.
I cannot check this out, but is it possible to edit the header of a posted invoice? If so, then it would be far easier to choose an unused field in the header, and enter a shipment number in that field, then select all documents with that shipment number. (Sorry I can't check this out for you.)
An alternative method, which is likely to be quite slow, is to change the selection formula slightly to:
{OE61B Orders and Invoices Headers.Document type (order, invoice, cr note)} = "Invoice" and
({OE61B Orders and Invoices Headers.Invoice number} = " 91037" or
{OE61B Orders and Invoices Headers.Invoice number} = " 90991" or
{OE61B Orders and Invoices Headers.Invoice number} = " 90969" or
{OE61B Orders and Invoices Headers.Invoice number} = " 91023" or
{OE61B Orders and Invoices Headers.Invoice number} = " 91022" or
{OE61B Orders and Invoices Headers.Invoice number} = " 91015" or
{OE61B Orders and Invoices Headers.Invoice number} = " 91012" or
{OE61B Orders and Invoices Headers.Invoice number} = " 91011" or
{OE61B Orders and Invoices Headers.Invoice number} = " 91003" or
{OE61B Orders and Invoices Headers.Invoice number} = " 91002" or
{OE61B Orders and Invoices Headers.Invoice number} = " 91001" or
{OE61B Orders and Invoices Headers.Invoice number} = " 91000" or
{OE61B Orders and Invoices Headers.Invoice number} = " 90999" or
{OE61B Orders and Invoices Headers.Invoice number} = " 90983" or
{OE61B Orders and Invoices Headers.Invoice number} = " 90980" or
{OE61B Orders and Invoices Headers.Invoice number} = " 90975" or
{OE61B Orders and Invoices Headers.Invoice number} = " 90968" or
{OE61B Orders and Invoices Headers.Invoice number} = " 90965" or
{OE61B Orders and Invoices Headers.Invoice number} = " 90962" or
{OE61B Orders and Invoices Headers.Invoice number} = " 90958" or
{OE61B Orders and Invoices Headers.Invoice number} = " 91045") and
not ("FRT" in {OE61B Orders and Invoices Details.Description}) and
not ("FREIGHT" in {OE61B Orders and Invoices Details.Description}) and
not ("DISCOUNT" in {OE61B Orders and Invoices Details.Description})
When you run the report, you will edit the selection formula each time (no change there). Add or delete lines to select the invoice number you're looking for. Use the Windows cut-and-paste keyboard shortcuts (ctrl-x to cut, ctrl-c to copy, ctrl-v to paste, shift-arrow to select) to quickly copy and paste lines. (Place the cursor at the beginning of a line, type shift-downarrow to select the line, press ctrl-c to copy the line, press ctrl-v twice to make a copy of the line - the first replaces the highlighted text with itself, the next ctrl-v inserts a new copy).