cancel
Showing results for 
Search instead for 
Did you mean: 

Flatfile To Idoc

Former Member
0 Kudos

I have a weird scenario.. I have a flatfile with no delimeters which contains x number of lines. Each line represents tha same Idoc but with different data. How would I loop through this file and then via XI send the x amount of Idocs through to the R/3 system?

Accepted Solutions (0)

Answers (2)

Answers (2)

MichalKrawczyk
Active Contributor
0 Kudos

hi Jan,

>>>. How would I loop through this file and then via XI send the x amount of Idocs through to the R/3 system?

maybe you can import the whole file and then just map to IDOC with n occurance like shown in my blog

you can map the I have a flatfile with no delimeters with abap mapping

or java mapping easily probably

Regards,

Michal Krawczyk

prateek
Active Contributor
0 Kudos

I have a flatfile with no delimeters

If your field length is fixed then you may use FCC with fixed field lengths.

Each line represents tha same Idoc but with different data. How would I loop through this file

Use option "Recordset Per Message" = 1 in FCC.

Regards,

Prateek

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>Each line represents tha same Idoc but with different data. How would I loop through this file

>Use option "Recordset Per Message" = 1 in FCC.

don't use "Recordset Per Message"

IDOCs can be send as a bundle to XI as per my blog

there is no need to send then one by one..

Regards,

Michal Krawczyk

Former Member
0 Kudos

cool thanx, i'll see what I can do.

prateek
Active Contributor
0 Kudos

Thanks for comments

Regards,

Prateek