Real Time Information Director User Documentation
RTID Extensibility 
Hewlett-Packard Company  9  529618 - 001 
5.  If the output from Dispatch or Reselect shows that inbound data and outbound 
data sometimes vary in their format, you might need to use formatters to do data 
conversions.  See “Converting Data Representations,” later in this module, for a 
discussion of this topic. 
6.  Validate the IDoc mapping against the SAP schema for the IDoc, as described 
below. 
Validating an IDoc mapping 
A client can use an XML Schema file to verify that a given XML document is valid.  In 
some cases, a document generated by the Director will fail validation because data 
elements are missing or are not in the expected order.  Because the content of an XML 
document generated by the Director depends on the order in which the format metadata 
defines the elements, you can usually solve a validation problem by changing the order of 
metadata statements. 
To validate an XML IDoc mapping against the SAP schema for the IDoc, follow these 
steps: 
1.  Obtain IDoc XML schemas from the SAP website. Save each schema as an .XSD 
file. 
2.  Generate a sample XML IDoc file with the Director. Use the Reselect or 
Dispatch stand-alone program. See “Testing the Metadata” for more details. 
3.  Open the XML IDoc file with XML Spy. View the file in “Schema/WSDL 
Design view” mode. 
4.  Assign the schema obtained from step 1 to this XML document. From XML Spy 
main menu, select DTD/Schema -> Assign Schema… to assign the schema. 
5.  Validate the XML file. From XML Spy main menu, select “XML -> Validate” to 
validate the file. 
6.  If there are error messages, they will suggest how to modify the metadata. For 
example, the current format metadata may generate the output file with the XML 
sequences in the wrong order. In that case, you need to rearrange the metadata in 
the order defined by the XML Schema to pass the validation. Modify the format 
metadata as needed. 
7.  Compile the Java source file and repeat steps 2 to 6 until the XML IDoc passes 
the XML Schema validation. See “Compiling Metadata” for compilation steps. 
8.  Deploy the updated Java class file to the RTID runtime environment. See 
“Deploying Metadata” for deployment steps. 










