Hello Quark George.
You read the entire barcoded data entirely in a single input field and make use of '+' operator to separate the data.
Suppose my material number is of 18 digits length and batch is of 5 char length,
MATERIAL = Barcode_data+0(18).
BATCH = Barcode_data+18(5).
Regards.