I am trying out IDOC to File scenario and facing a problem due to repetition of segments in IDOC.
Requirement is to repeat the field in output file base on the segment occurance.
i am trying to map the record set of target file structure to the most repeating segmetn in the Souce IDOC so that i can get the repetion.
Is there any way to identify which segments repeats the most of times?
can we map a segment to target record set in where in we count all the segment occurance and get the most repeating segment and map it to target in udf itself.
is there any direct function whcih can be used in UDF to map one segment to a recordset?