To download an IDOC into an Excel, HTML or any other format:
Go to transaction IDOC
Select the radio button “Analyse IDoc field values” and
click on Execute.
Enter an IDoc number and select the check box “Also output
empty fields”. Click on “Output in Internal Form”.
Following screen appears:
Click on Execute.
Now click on List -> Save/Send -> File
Now select the required format and hit Enter. The IDoc is now
stored on your system in the required format.