i'm essentially trying to create a unique barcode for an invoice in SAP Business one, based on a parameter from the invoice screen and the invoice number.
For the example, the fixed data I will have is "Invoice Number" with a parameter called "Number Of Items"
If the parameter is 10, i want the SQL query to return...
123456 001 010
123456 002 010
123456 003 010
123456 004 010
123456 005 010
etc. This would essentially create me 10 unique numbers which I can then use for a series of barcodes for this invoice? It doesn't need to be inserted into a table, it just needs to be able to calculate that middle dynamic value.
The values i will be querying on are
OINV.InvoiceNumber, OINV.NumberOfParcels FROM OINV
Many Thanks
Andy