Skip to main content

Crate mako_mabis

Crate mako_mabis 

Source
Expand description

mako-mabis — MaBiS, the German electricity balance-group settlement (BNetzA BK6-24-174 Anlage 3).

Strom only: gas balances through GaBi Gas, on the Gastag and against a Marktgebiet.

§Three shapes MaBiS does not share with the other process families

§There is no Prüfmitteilung deadline

A Summenzeitreihe arrives and a Prüfmitteilung goes back, so it is natural to hang a response Frist off the arrival the way GPKE and WiM do. The Festlegung says otherwise twice: Kap. 9.8.2 Nr. 1 leaves the Frist cell empty and says the receiving party „kann“ answer, and Kap. 13.8.2 — the section a 1-Werktag deadline is usually attributed to — defines no answer at all; its two rows are the BIKO’s own dispatch dates.

What bounds a Prüfmitteilung is the clearing window of Kap. 3.10 Tabelle 2, a date range on the Bilanzierungsmonat rather than a countdown from an arrival. See fristen.

§A settlement is a sequence of versions

Kap. 3.8.2: versions ascend „über die gesamte BKA“. One MaBiS-Zählpunkt in one Bilanzierungsmonat receives a stream of them, each checked, corrected and superseded until the window closes. The version is the Erstellungszeitpunkt — 17 characters in IFTSTA SG4 RFF+AUU and MSCONS SG6 DTM+293 — and it is the key both ends match on.

§55062 / 55063 / 55064 are generic codes

Eleven Summenzeitreihen share them and 55064 answers all of them out of twelve different Entscheidungsbäume; six owe an answer and five do not. The discriminator is SG10 CCI+++ZB4 / CAV DE 7111 plus SG10 CCI+6 (zeitreihen::zeitreihe_aus_cav, zp_lifecycle::ZpSerie::from_wire).

§Workflows

WorkflowPIDs
mabis-billingMSCONS 13003 · 13020 · 13023; IFTSTA 21000–21005
mabis-profileMSCONS 13010–13012; ORDERS 17211
mabis-clearinglisteUTILMD 55067 · 55069 · 55070 · 55073
mabis-listenabgleichUTILMD 55065/55066 · 55195/55196 · 55201/55202 · 55223/55224
mabis-zp-lifecycleUTILMD 55062–55064 · 55071/55072 · 55197–55214 · 55235–55237
mabis-anforderungORDERS 17201–17208 · 17210; ORDRSP 19204

§The Kapitel-17 series expire on 30.09.2026

BK6-23-241 Tenorziffer 5 repeals MaBiS Anlage 1 Kapitel 17 with the end of 30.09.2026. Kap. 17.1 and 17.3 continue as the „Anlage zur BilAReM“; Kap. 17.2 (Bilanzkreismonitoring, tägliche AAÜZ — PIDs 55197/55198) and Kap. 17.3.2.1 do not. zeitreihen::Familie::endet_am and zp_lifecycle::ZpSerie::endet_am carry the date.

§Architecture

Each BDEW process variant is a separate mako_engine::workflow::Workflow. This crate contains only pure domain logic — no I/O, no EDIFACT parsing, no clock.

§Example

cargo run --example mabis_bilanzkreisabrechnung -p mako-mabis

Re-exports§

pub use anforderung::ANFORDERUNG_PIDS;
pub use anforderung::AbonnementVorgang;
pub use anforderung::AnforderungCommand;
pub use anforderung::AnforderungData;
pub use anforderung::AnforderungEvent;
pub use anforderung::AnforderungKind;
pub use anforderung::AnforderungState;
pub use anforderung::MabisAnforderungWorkflow;
pub use anforderung::WORKFLOW_NAME as ANFORDERUNG_WORKFLOW_NAME;
pub use bilanzkreisabrechnung::AUSFALLARBEIT_PIDS;
pub use bilanzkreisabrechnung::BillingCommand;
pub use bilanzkreisabrechnung::BillingData;
pub use bilanzkreisabrechnung::BillingEvent;
pub use bilanzkreisabrechnung::BillingProjection;
pub use bilanzkreisabrechnung::BillingRecord;
pub use bilanzkreisabrechnung::BillingState;
pub use bilanzkreisabrechnung::Datenstatus;
pub use bilanzkreisabrechnung::IFTSTA_ABWEISUNG_PID;
pub use bilanzkreisabrechnung::IFTSTA_DATENSTATUS_PIDS;
pub use bilanzkreisabrechnung::IFTSTA_PIDS;
pub use bilanzkreisabrechnung::IFTSTA_PRUEFMITTEILUNG_PIDS;
pub use bilanzkreisabrechnung::InvalidSzrVersion;
pub use bilanzkreisabrechnung::MabisBillingWorkflow;
pub use bilanzkreisabrechnung::Pruefergebnis;
pub use bilanzkreisabrechnung::RFF_QUALIFIER_VERSION;
pub use bilanzkreisabrechnung::STS_KATEGORIE_DATENSTATUS;
pub use bilanzkreisabrechnung::SUMMENZEITREIHE_PID;
pub use bilanzkreisabrechnung::SzrVersion;
pub use bilanzkreisabrechnung::VersionRecord;
pub use bilanzkreisabrechnung::WORKFLOW_NAME as BILLING_WORKFLOW_NAME;
pub use bilanzkreisabrechnung::ist_zeitreihen_pid;
pub use clearingliste::CLEARINGLISTE_PIDS;
pub use clearingliste::ClearinglisteCommand;
pub use clearingliste::ClearinglisteData;
pub use clearingliste::ClearinglisteEvent;
pub use clearingliste::ClearinglisteKind;
pub use clearingliste::ClearinglisteState;
pub use clearingliste::MabisClearinglisteWorkflow;
pub use clearingliste::WORKFLOW_NAME as CLEARINGLISTE_WORKFLOW_NAME;
pub use fristen::Abrechnungslauf;
pub use fristen::BIKO_DATENSTATUS_WERKTAGE;
pub use fristen::BIKO_WEITERLEITUNG_WERKTAGE;
pub use fristen::Bilanzierungsmonat;
pub use fristen::CLEARING_ENDE_LABEL;
pub use fristen::Fenster;
pub use fristen::Phase;
pub use fristen::Stichtag;
pub use listenabgleich::LISTEN_FAMILIEN;
pub use listenabgleich::ListenFamilie;
pub use listenabgleich::ListenTyp;
pub use listenabgleich::ListenabgleichCommand;
pub use listenabgleich::ListenabgleichData;
pub use listenabgleich::ListenabgleichEvent;
pub use listenabgleich::ListenabgleichState;
pub use listenabgleich::MabisListenabgleichWorkflow;
pub use listenabgleich::WORKFLOW_NAME as LISTENABGLEICH_WORKFLOW_NAME;
pub use listenabgleich::all_pids as listenabgleich_pids;
pub use zeitreihen::Aggregationsebene;
pub use zeitreihen::Bezugszeitraum;
pub use zeitreihen::CCI_BEZEICHNUNG_SUMMENZEITREIHE;
pub use zeitreihen::CCI_KLASSENTYP_VERANTWORTLICHER;
pub use zeitreihen::Familie;
pub use zeitreihen::KAPITEL_17_2_ENDE;
pub use zeitreihen::Kategorie;
pub use zeitreihen::Messtechnik;
pub use zeitreihen::Rolle;
pub use zeitreihen::UnbekannteKategorie;
pub use zeitreihen::Zeitreihe;
pub use zeitreihen::aggregationsverantwortung;
pub use zeitreihen::alle as alle_zeitreihen;
pub use zeitreihen::cav_aus_zeitreihe;
pub use zeitreihen::cci_aus_rolle;
pub use zeitreihen::rolle_aus_cci;
pub use zeitreihen::zeitreihe_aus_cav;
pub use anforderung::ABLEHNUNG_PID;
pub use anforderung::all_pids as anforderung_pids;
pub use ids::InvalidMabisZaehlpunkt;
pub use ids::MabisZaehlpunktId;
pub use profile::Bilanzierungsverfahren;
pub use profile::ERSTLIEFERUNG_WERKTAGE;
pub use profile::MabisProfilWorkflow;
pub use profile::PROFIL_PIDS;
pub use profile::ProfilCommand;
pub use profile::ProfilData;
pub use profile::ProfilEvent;
pub use profile::ProfilState;
pub use profile::Profilart;
pub use profile::REKLAMATION_EBD;
pub use profile::REKLAMATION_PID;
pub use profile::WORKFLOW_NAME as PROFIL_WORKFLOW_NAME;
pub use profile::all_pids as profil_pids;
pub use summenzeitreihe::MABIS_SLOT;
pub use summenzeitreihe::SlotResolutionError;
pub use summenzeitreihe::SumInterval;
pub use summenzeitreihe::Summenzeitreihe;
pub use summenzeitreihe::SummenzeitreiheBuilder;
pub use zp_lifecycle::MabisZpLifecycleWorkflow;
pub use zp_lifecycle::TAEGLICHE_AAUEZ_ENDE;
pub use zp_lifecycle::WORKFLOW_NAME as ZP_LIFECYCLE_WORKFLOW_NAME;
pub use zp_lifecycle::ZP_FAMILIEN;
pub use zp_lifecycle::ZpFamilie;
pub use zp_lifecycle::ZpLifecycleCommand;
pub use zp_lifecycle::ZpLifecycleData;
pub use zp_lifecycle::ZpLifecycleEvent;
pub use zp_lifecycle::ZpLifecycleState;
pub use zp_lifecycle::ZpSerie;
pub use zp_lifecycle::ZpVorgang;
pub use zp_lifecycle::all_pids as zp_lifecycle_pids;
pub use zp_lifecycle::antwort_ist_zustimmung as zp_antwort_ist_zustimmung;
pub use zp_lifecycle::familie_for;
pub use zp_lifecycle::ist_antwort_pid;
pub use zp_lifecycle::ist_weiterleitung_pid;
pub use zp_lifecycle::serien_fuer_pid;

Modules§

anforderung
MaBiS Anforderungen — ORDERS-based subscription and one-shot list requests.
bilanzkreisabrechnung
Bilanzkreisabrechnung Strom — the settlement of one Summenzeitreihe over one Bilanzierungsmonat (BNetzA BK6-24-174 Anlage 3, Kap. 3.8 and 3.10).
clearingliste
MaBiS Clearingliste workflows — clearing-list distribution in the Bilanzkreisabrechnung settlement process (BNetzA BK6-24-174).
fristen
The MaBiS Fristenkalender — BK6-24-174 Anlage 3 Kap. 3.10, Tabelle 2.
ids
Balance-group topology identifiers (MaBiS).
listenabgleich
MaBiS Listenabgleich — list distribution with a correction leg.
profile
Normierte Profile und Profilscharen — delivery and Reklamation (BK6-24-174 Anlage 3, Kap. 6.5 and 6.7).
summenzeitreihe
Summenzeitreihe aggregation — ÜNB/NB role: building the series filed with the BIKO.
zeitreihen
The MaBiS Summenzeitreihen taxonomy — BK6-24-174 Anlage 3 Kap. 2, Tabelle 1.
zp_lifecycle
MaBiS-Zählpunkt lifecycle — activation and deactivation of MaBiS-ZP, Zuordnungsermächtigung, and the Ausfallarbeitsüberführungszeitreihen (AAÜZ) series.
zp_register
Which MaBiS-Zählpunkte are currently activated, folded from the lifecycle events.

Structs§

BilanzierungsgebietId
Balance-group topology identifiers, validated by rubo4e.
BilanzkreisId
Balance-group topology identifiers, validated by rubo4e.
MabisModule
Engine module for the MaBiS process family.