[IDOC] – Download IDOC to XML

SAP gives function modules that you can export SAP IDOC to XML files. It is really useful for integration Consultant / Developer to do mapping unit test and data checking, searching.

In this article, i will show you a simple function module to export XML files.

In SAP ECC, SAP HANA, SAP S/4 HANA, SAP CAR, ect…we can search Inbound / Outbound IDoc you want to download by Tcode: WE02

STEP 01: Access function builder, TCode: SE37

STEP 02: Execute function module: IDOC_XML_TRANSFORM

STEP 03: View IDOC content

STEP 04: Copy Payload result

STEP 05: replace all tag spaces

STEP 06: Use Notepad++ and XML plugin to format XML file

Thanks and hope useful for you.

Cuong Dang

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.