Ask the Expert

Downloading an IDoc into XML

We are using Gentran as a message broker system to exchange transaction data between our trading partners. The destination system of this transaction data is SAP. So we have maps created in Gentran that could translate and create IDocs into SAP. Since we have this product we want to use this middleware to accept other transactional / non-transactional information into SAP's IDoc format(Custom IDoc) and then download the IDoc in SAP to an XML format. Are there any utility tools in SAP to download an IDoc into an XML format?

    Requires Free Membership to View

There are several paths to get hold of the XML schema of an IDoc:

1. The SAP Interface Repository. In the IFR you will find a complete list of the interface definitions of all officially released IDocs and BAPIs along with the corresponding XML Schemata and XML templates for request and response. They are all well sorted by release and business case.

2. You can also generate an XML schema from a running SAP instance directly with transaction WE60. Unfortunately this feature is not available in elder SAP releases. 4.6 and earlier allow only download of a DTD schema, later releases will generate a proper XML template.

3. Technical data:
The function that generates an XML from an IDoc is SDIXML_IDOC_TO_SCHEMA. The resulting XML DOM document object can be resolved into display format with the utility functions found in function group SDIXML.

This was first published in July 2004

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: