Even though you go with java mapping.. how do you differentiate Price and VAT?
The problem is the file is pipe delimited. So there is no space between the pipes for the price item line. I manually edited the file and included a space and also specified a space in the FCC and it worked to certain extent which is good
>>>> If it is a pipe delimited file, then you don't need to add a space to the input file..
inside the mapping just check if the field is empty or not.
source field-map with default-length-greater-1(constant) then it should be your PRICE record.
But the problem is you have mentioned that, sometimes(for EU region) even your VAT record can also be blank.. in such case how do you differentiate b/w VAT and PRICE is something an issue ... if i understand your requirement correctly