Take a look at this weblog by Mukund Goenka. You could change the program to write it toa text file if you prefer.
https://www.sdn.sap.com/ir
Regards
Faaiez
Main Topics
Browse All TopicsHi
I am begining to work with SAP and I would like to know if there is a way to download an IDOC from SAP as a Flat file? how can I do it? is there an export feature or do I need to setup an FTP.
Thanks in advance
Alex Ramirez
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Take a look at this weblog by Mukund Goenka. You could change the program to write it toa text file if you prefer.
https://www.sdn.sap.com/ir
Regards
Faaiez
Thanks for the comments, the far I got is that I have manage to get the IDOC after the process of the data (from EDI inbound to IDOC), the thing is that I need to have the IDOC in order to verify that the mapped data is where it should be, I'm not very SAP literated =( so if there is a need to setup a port to do the transfer, how can I set it up? I mean what are the steps I need to follow in order to have this done.
Any help will be appreciated
Alex
OK - can you start from the begining - what are you trying to do.
Process an inbound message ? like an incoming order ?
Or send an outbound message ?
You can see idocs in both directions using WE05
if you can give me an idea of the scenario you are trying to create we should be able to give you the steps you need.
J
Thanks Jonvaughan
This is whta I'm doing right now, I have an Inbound EDI document that I am mapping to an IDOC on XI, our production mapping is being done on webmethods, what I need to do is to download the IDOC from my mapping so I can compare the output with the production output, unfortunately when I triy to see the IDOC on XI, what I get is the XML document, I need the flat file, that is my current issue. Any help will be appreciated.
Regards Alex
BTW I also need to see the IDOC header EDIDC40 segment to check that the information is correct, one more question how can I see the IDOC as a complete file with WE05 because I can only see the segments and the data, as I said I am learning the SAP enviroment so I'm kind of lost with some of the process to view the files on SAP =(
thanks again
Alex
OK what you see on WE05 is the IDOC - there is nothing else that matters - you should be able to see the IDOC in WE05 in prod and Dev and compare them.
The segment EDIDC40 is what is called the control record in WE05. You might also use WE19 to compare the idocs - this is normally the testing tool but you get to see the whole idoc on 1 screen .
If you are using XI or Webmethods in the standard way then the idoc will never exist as a flat file - it will be in an xml format with an SDATA section holding all the segment data.
As a general point - with SAP you don't really use files. Everything is in the Database. With WebMethods and XI transmission is via http with some form of XML format.
What you seeing in WE05 is the data in the database tables that was created by the incoming message - if it is in the table ok it is ok.
Hope this helps
Business Accounts
Answer for Membership
by: jonvaughanPosted on 2005-10-27 at 16:52:28ID: 15175648
How far have you got ?
Do download to a file you need to set the port ( WE21 ) as type file.