cancel
Showing results for 
Search instead for 
Did you mean: 

Problem : IDoc to file Senario, multiple segments in the IDoc.Intresting !!

0 Kudos

Hello People,

Just a very good problem, to put your brains work.

The senario is Idoc to File.

Now Suppose the structure of IDoc is in such a way.

segment1 - fields A, B, C, D --- >> Single

segment2 - fields E,F --->> This segment can come multiple times.

segment3 - fields G, H -


>> Single

segment4 - filds I, J, K -


>> Multiple.

Now the format of the file is Fixed Length.

The record will be inserted Row wise.

Let us assume that the number of segments are.

segment1

segment2

segment2

segment3

segment4

segment4

All segments are at the same level.

Example of file :-

A B C D E1 F1 G H I1 J1 K1

A B C D E2 F2 G H I2 J2 K2

So please let me know, what kind of structure should i create in my repository for the Target and also let me know , the File content Conversion part ..

Thanks in Advance.

Harpreet.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

How does the receiver (system) expects fixed width file?

Regards,

AV.

Edited by: Anirudh Vyas on Mar 10, 2008 3:58 PM

Former Member
0 Kudos

hi,

Repeat the row for each segment and in the (i)th iteration of the map it to the (i)th segment from the input. Now in your FCC, it will be like writing a normal fixed length conversion.

For e.g. you target structure will look somewhat like this.

Document

Recordset

Record(i)

FieldA

FieldB

FieldC

FieldD

FieldE(i)

FieldF(i)

and so on....

Cheers,

Sarath.

Award if helpful.