Real Time Information Director User Documentation
RTID Metadata Language
Hewlett-Packard Company 26 529618-002
<ZTERM>J328</ZTERM>
<BELNR>0300060645</BELNR>
<VSART>01</VSART>
<VSART_BEZ>STANDARD</VSART_BEZ>
<RECIPNT_NO>W0J008399</RECIPNT_NO>
<AUGRU>00</AUGRU>
<AUGRU_BEZ>New orders</AUGRU_BEZ>
</E1EDK01>
<E1EDK14 SEGMENT="1">
<QUALF>006</QUALF>
<ORGID>ZD</ORGID>
</E1EDK14>
<E1EDK14 SEGMENT="1">
<QUALF>007</QUALF>
<ORGID>ZZ</ORGID>
</E1EDK14>
Following the E1EDK01 segment are several E1EDK14 segments, each containing only
two elements.
The E1EDK14 segment identifies different organizations that have a role in the sales
order. The QUALF element identifies the role, and the ORGID identifies the
organization. In this case, the sales division is “ZD” and the distribution channel is “ZZ.”
Metadata Excerpts: Format Metadata
Format metadata specifies the mapping of IDoc segments and elements to the data store.
The next few pages show excerpts from the ORDERS05 IDoc metadata.
private static final IDocSegment idocSegment =
new IDocSegment("ORDERS05", "SALES_ORDER", new TagDefinition[] {
IDOC.HEADER,
new Segment("E1EDK01", new TagDefinition[] {
new FieldElement("ACTION", "SALES_ORDER_ACTION_CD"),
new FieldElement("CURCY", "CURRENCY_CD"),
new FieldElement("WKURS", "PRICING_STATISTICS_EXCHANGE_RT"),
new FieldElement("ZTERM", "PAYMENT_TERMS_CD"),
new FieldElement("BSART", "CUSTOMER_PURCHASE_ORDER_TY"),
new FieldsElement("BELNR", new String[]
{"SALES_ORDER_NO", "PRECEDING_DOCUMENT_NO"}),
new FieldElement("BSTZD", "PURCHASE_ORDER_NUMBER_DS"),
new FieldElement("VSART", "SHIPPING_CONDITION_CD"),
new FieldElement("VSART_BEZ", "SHIPPING_CONDITION_DS"),
new FieldElement("RECIPNT_NO", "CUSTOMER_SOLD_TO_NO"),
new FieldElement("KZAZU", "ORDER_COMBINATION_IN"),
. . .
new FieldElement("DELCO", "AGREED_DELIVERY_TM")
}),
You must construct an IDocSegment tag definition to represent the top level tag of the
IDoc. This object contains the name of the IDoc, in this case, “ORDERS05.”
An ORDERS05 IDoc corresponds to a record in the SALES_ORDER table.
Notice that the IDocSegment contains an array of tag definitions (TagDefinition).