I have a mapping issue:
It is IDOC to file scenario
A segment in IDOC repeats multiple times. I want to take a field of the first repeating segment and map it to a target field.
And i want to take afield of the last repeating segment and map to a target field.
Eg : E1EDPL1
Mapping logic 1 :
Take the first GSB ( Value: 100) and map to a target field.
Mapping logic 2 :
Take the last GSB(Value : 300) and map to a target field.
Guess we need to have a context java function which takes as an input an array of GSB and extract first and last GSB.
Need help with the java udf.