cancel
Showing results for 
Search instead for 
Did you mean: 

FLATFILE to Multiple IDOCS

Former Member
0 Kudos

HI

My req is FLATFILE to Multiple IDOCS

C,WMMBID01,ZXYGR,SAPXYZ,DEVXY

1,H,20100101,20100919,0000000000000000,VL02

1,I,00000000000039870,72379601,000000000000000000000000,2,BD

1,I,00000000000039872,72379601,000000000000000000000000,2,BD

2,H,20100101,20100919,0000000000000000,VL02

2,I,00000000000039870,72379601,000000000000000000000000,2,BD

2I,00000000000039872,72379601,000000000000000000000000,2,BD

I Have the Flat File with above Format,

Structures

sender

Control record

--A

--B

--C

Header record

--D

--E

Item record

--F

--G

Receiver IDOC

WMMB1D01 1..1

-IDOC 1..999

--EDI_DC40

-


A

-


B

-


C

--E1MBXYH

-


D

-


E

--E1MBXY1

-


F

-


G

In the Flat file C-Control , h--Header , I --itemm and in the First column from 2nd row is to identify and generate the IDOC

eg ; 1--Ist IDOC

2--2nd IDOC

I am able to read the Flat file

And i have imported the IDOC from External defination with IDOC as 1....9999

Now I need how to map sender and receiver to generate multiple files

thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

Please check this wiki for how to do do this.

http://wiki.sdn.sap.com/wiki/display/XI/FiletoMultipleIDOCSplittingwithoutBPM

regards,

francis

stefan_grube
Active Contributor
0 Kudos

First of all you have to organize your FCC in a different way.

The result XML should be like this:

recordset

C

H

I

I

recordset

H

I

I

you use parameter ignoreRecordsetName = false (or remove it)

then you set recodset parameter Ascending

When you have the structure tht way, you can map recordset to idoc.