Real Time Information Director User Documentation

RTID Metadata Language
Hewlett-Packard Company 48 529618-002
The second parameter is a logical name used to select an outbound document for
this variant.
The third parameter is the reference to the format metadata.
package com.hp.rtsc.documents;
import com.hp.rtsc.metadata.*;
import com.hp.rtsc.metadata.format.*;
import java.sql.SQLException;
// Metadata class to define an ORDERS05 IDoc for Fusion Asia Pacific
public class IhubOrders05FusionAP extends VariantDocumentDefinition {
private static final IDocSegment idocSegment =
new IDocSegment("ORDERS05", "SALES_ORDER", new Segment[] {
IDOC.HEADER,
new Segment("E1EDK01", new FieldElement[] {
// Metadata Constructor:
public IhubOrders05FusionAP()
throws MetadataInconsistency, SQLException {
super(Sources.FusionAP, "ORDERS05FUSIONAP", idocSegment);
}
}
The Sources class defines variant selectors for different SAP instances. The selectors are
constructed using SourceSelector, because each Source SAP system has its own variant.
Selectors that examine other header fields are also permitted.
package com.hp.rtsc.documents;
import com.hp.rtsc.metadata.SourceSelector;
public class Sources
{
static final SourceSelector Calado = new SourceSelector("SAPCLP");
static final SourceSelector CRS = new SourceSelector("SAPMA2");
static final SourceSelector D7 = new SourceSelector("SAPD7C");
static final SourceSelector EPH = new SourceSelector("SAPEPH");
static final SourceSelector GPG = new SourceSelector("SAPGPG");
static final SourceSelector FusionAP = new SourceSelector("SAPAPL");
static final SourceSelector FusionEU = new SourceSelector("SAPR01");
static final SourceSelector FusionAM = new SourceSelector("TRMUT");
static final SourceSelector RSAP = new SourceSelector("SAPPAP");
static final SourceSelector SAIL = new SourceSelector("SAPCPO");
static final SourceSelector SPE = new SourceSelector("SAPSPE");
static final SourceSelector SPR = new SourceSelector("SAPEXE");
}
Aliased Documents
Aliased documents provide another way of handling similar IDocs differently, but in
contrast with variant documents, which are distinguished by a header element, each
aliased document has a distinctive top tag.