cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping a flat file to the iDoc OILLDD

Former Member
0 Kudos

Hi.

<b>I have a file with this structure after I got it from the fileadapter.:</b>

B Dataxxxxxxxxx

C Datayyyyyy

D Datazzzzzz

D Datazzzzzz

C Datayyyyyy

C Datayyyyyy

D Datazzzzzz

C Datayyyyyy

C Datayyyyyy

E Dataxxxxxxxxx

B

.

.

E

B

.

.

.

E

etc.

<b>I want to map this structure to the Idoc OILLDD which have this structure.:</b>

OILLDD01

IDOC

E1OILT1

E1OILT2

E1OILT3

E1OILT4

each B-Recor shall produce a new iDoc.

each C-Record shall make an E1OILT1-segment

each D-Record shall make an E1OILT3-segment(if the D-record exist)

My problem is.:

How can I make an new iDoc for each B-Records in the file.

I got the file tthrough the filadapter.

Hope someone can help me.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

A typical IDOC bundling example. Have a look at

/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change

Regards,

Jai Shankar

Answers (1)

Answers (1)

prateek
Active Contributor
0 Kudos

The file from the file adapter have to be parsed using the File Content Conversion.

Now this converted XML will have the fields with value "A", "B","C" etc.

This can be then mapped according to ur requirements. U need to export the IDOC as XSD , change the occurrence and then reimport it in the external definitions.

Regards,

Prateek