Hi Friends
I Have to map one idoc to cvs flat file , the file structure has 10 fields , those 10 fields have to be repeated as many times as there is segments in the idoc for instance
the first line takes segmenta A and the second line takes segment B and so on
segment A goes to line 1 f1 f2 f3 f4 f5 f6 f7 f8 f9 f10
segment B goes to line 2 f1 f2 f3 f4 f5 f6 f7 f8 f9 f10
segment n goes to line n f1 f2 f3 f4 f5 f6 f7 f8 f9 f10
how ca I best do that and does any one have a solution example.
many thanks in advance.
Do like this,
Create the target structure like this:
<b>Records</b> with 0.....unbound
-<b>Line1</b> with 0---unbound
-
Field1 with 0:1
-
Field2 with 0:1
-
Field3 with 0:1 (and so on...upto Filed10)
---<b>Line2</b>
-
Field1 with 0:1
-
Field2 with 0:1
-
Field3 with 0:1 (and so on upto Field10)
*
*
*
*
uto n..
Now map the IDOC segments to Line1, Line2...upto n.. & aslo map the respective fields of idoc to field1, field2, and so on....
Use FCC in ID to convert it into CSV see the below mentioned blog.
<b>File Receiver with Content Conversion</b>
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
I hope it will help you to get your result.
Regards,
Sarvesh
****Rewards Points for helpful ans..
Add a comment