Hi,
I'm afraid you have to write a conversion routine. Try set conversion
routine on last field in enquiry, check your condition using
FORMATTED.DATA variable and if the record is not suitable for you follow this:
1. reset FORMATTED.DATA = ''
2. reset O.DATA
3. if 1&2 doesn't work decrement LINE variable
All mentioned variables are global variables (I_ENQUIRY.COMMON)