Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Download IDoc to local PC as flat file (record type version 2)

Former Member
0 Kudos

Dear experts,

is it possible to download an IDoc to the local PC as a flat file (record type version 2). If possible we don't want to save the file on SAP OS level.

Best regards,

David

5 REPLIES 5

former_member215575
Active Participant
0 Kudos

Hi David,

1. Go toTcode IDOC

2. Check Programs tab >> Analyse IDoc field values radio button >> Execute

3.Enter IDoc No. >> check u201CAlso output empty fieldsu201D. >> Click on u201COutput in Internal Formu201D. (You can enter IDoc record type versions here)

4. on next screen >> Execute

5. A list appears. Now Menu Option >> List >> Save/Send >> File

6. A popup appears, Choose from the list.

Never tried, Hope it helps.

Regards,

Sravan Guduru

former_member215575
Active Participant
0 Kudos

Hi David,

1. Go toTcode IDOC

2. 'Check Programs' tab >> Analyse IDoc field values radio button >> Execute

3.Enter IDoc No. >> check u201CAlso output empty fieldsu201D. >> Click on u201COutput in Internal Formu201D. (You can enter IDoc record type versions here)

4. on next screen >> Execute

5. A list appears. Now Menu Option >> List >> Save/Send >> File

6. A popup appears, Choose from the list.

Never tried, Hope it helps.

Regards,

Sravan Guduru

0 Kudos

Thanks for you quick answer.

It's defintely possible to create a flatfile which contains all the IDoc data using this program, but the format is not the format you get sending an IDoc as a flat file to file port.

Is there another way to download the "real" flatfile IDoc to a PC?

Best regards,

David

Hi David,

There isone more option similar to above.

1. Go to WE02

2. Select your IDOC.Double click- You get the details of IDOC

3. Menu--> IDOC --Print IDOC

4. You can use download local file or word.

Please check it may help you.

Thanks,

Srikanth.A

0 Kudos

IDOC data is stored in a number of tables within SAP and the display programs (behind Tcodes WE05 etc) pull up data and display it on the screen.

In order to create a flat file out of the IDOC that is displayed on the screen, RSEOUT00 has to be called. If you want to store the real flat files for outbound IDOC's, then you have to create a RFC destination on your PC (I would assume this would be a server folder compared to user's PC). This RFC destination can be used in the program RSEOUT00 to extract IDOC data and output in the form of a flat file.

Alternatively, all the IDOC's that are processed outbound will be currently stored in the application server. You can simply pull it from there.

If you're looking for saving the IDOC's then you might want to consider the IDOC archiving process which is more efficient and SAP certified.