Adapter for SAP 10.1 | webMethods Adapter for SAP Documentation | webMethods Adapter for SAP Installation and User’s Guide Documentation | Generating Document Types | Generating Document Types for IDocs | Generating an IDoc Document Type from a DTD
 
Generating an IDoc Document Type from a DTD
Note:
If you are using SAP system version 4.6A or higher, you can create a DTD for an IDoc from transaction WE60. (See your SAP documentation for procedures). If you want to generate a document type from a DTD that you have created, you must first create an XML file that defines a root element and points to this DTD. (Use the XML files that SAP provides as guides.) Use this XML file to build your document type.
* To create a document type from an IDoc DTD
1. In Designer, select File > New > Document Type.
2. Select the parent namespace and name for the document type. Click Next.
3. From the list of source files, select DTD. Click Next.
4. To select the source location, do one of the following in the File/URL field:
*To create the document type from a DTD on your local file system, type in the path and file name, or click the Browse button to navigate to and select the file.
*To create the document type from a DTD that resides on the Internet, type the URL of the resource. The URL you specify must begin with http: or https:
5. Click Next.
6. Under Select the root node, select the root element of the DTD.
7. Under Element reference handling, select one of the following:
*Select Only generate document types for elements with multiple references to instruct Integration Server to create a separate document type for a referenced element only when the DTD contains multiple references to that element.
*If an element is referenced multiple times, Integration Server creates a separate document type for the element. Integration Server replaces each element reference with a document reference field.
*If an element is referenced only once, Integration Server defines the element in line by replacing the element reference with a document field.
*Select Always generate document types for referenced elements to instruct Integration Server to always create a separate document type for a referenced element even if it is referenced only once. In the document type, Integration Server replaces each element reference with a document reference field.
8. Click Finish.