Skip to main content

Module consistency

Module consistency 

Source
Expand description

What a message must keep consistent within itself, beyond what its AHB conditions state: the APERAK errors Z34 and Z21.

  • Z34, “Zeitintervall negativ oder Null”: a period whose end is not after its beginning. A period is a pair of DTM qualifiers that name its two ends (INTERVALS), sent side by side in one segment group.
  • Z21, “Geschäftsvorfallinterne Referenzierung fehlerhaft”: a UTILMD SG8 or SG12 RFF that refers to a location of its transaction (“Zur Referenzierung auf eine ID einer Messlokation vom SG5 LOC+Z17”, UTILMD MIG) naming none (REFERENCES, REFERENCES_GAS).

Both are judged only where the message itself settles them. A period whose ends are sent in different formats, and a reference in a transaction without any location of the kind it refers to, are left alone: no error is reported rather than a wrong one.

Constants§

INTERVALS
DTM 2005 pairs naming a period’s beginning and end, and whether the period may be empty (end = beginning).
REFERENCES
UTILMD Strom RFF 1153 qualifiers that refer to a location of the transaction, and the LOC 3227 qualifiers they may name (UTILMD MIG Strom, RFF descriptions: “Zur Referenzierung auf eine ID einer Messlokation vom SG5 LOC+Z17”).
REFERENCES_GAS
The same for UTILMD Gas, whose transactions name one location kind, the Meldepunkt: “Zur Referenzierung auf eine ID einer Messlokation vom SG5 LOC+172” (UTILMD MIG Gas). Its Marktlokation reference (RFF+Z18, “die im Vorgang behandelte Marktlokation”) names no LOC, so it is not judged.

Functions§

check_consistency
The consistency errors of one message (segments, UNH…UNT) of message_type (a variant, UTILMD_Strom, or a message type).