# Electricity schedules

> Build a German ESS 2.3 intra-area nomination and match it to its AS4 Fahrplan route.

Source: https://hupe1980.github.io/mako/docs/reference/schedules/

Use `entsoe_edi::ScheduleMessage` for a trade between two Bilanzkreise in the same control area (A02). The sender must be one of the two parties. Set the receiver to the ÜNB’s **10X party EIC** and the area to its **10Y area EIC**. The delivering party goes in `OutParty`, the receiving party in `InParty`. [German TSOs, Fahrplananmeldung v4.6, Annex A.2.1, pp. 48–51 and Table F-1, pp. 98–100](https://www.netztransparenz.de/de-de/Systemdienstleistungen/Betriebsfuehrung/Fahrplanmanagement)

`delivery_window(day)` converts the Berlin delivery date to its UTC interval. Supply 92, 96 or 100 consecutive quarter-hour values per series in elapsed-time order. Quantities are whole kilowatts, so `3_500_043` is written as `3500.043` MW. Enter zero for a quarter with no nominated power.

To generate a complete XML example, run this command from the mako checkout.

```sh
cargo run --quiet -p entsoe-edi --example internal_trade > schedule.xml
```

### Delivery and revisions

The application binds the sender’s Bilanzkreis, recipient ÜNB EIC and area to the authorized BKV and ÜNB AS4 market-partner IDs. The submitting application sends the XML with its onboarded partner certificates under `mako_as4::Service::Fahrplan`. A verified transport receipt records delivery. The ÜNB’s application-level acknowledgement determines whether the nomination was accepted. [German TSOs, secure exchange v2.3, §§4.1, 5.3–5.6, pp. 9–17](https://www.netztransparenz.de/de-de/Systemdienstleistungen/Betriebsfuehrung/Fahrplanmanagement)

A retransmission reuses the persisted document, AS4 message ID and original timestamp. For a revised nomination, assign a fresh AS4 message ID and retain the ESS `MessageIdentification` and the accepted series. Increment the message version and assign it to every new or changed series. Keep a cancelled series in the schedule with explicit zeros. The writer validates the submitted snapshot. The submitting application tracks the accepted history. [German TSOs, Fahrplananmeldung v4.6, Annex A.5.1–A.5.4, pp. 81–82](https://www.netztransparenz.de/de-de/Systemdienstleistungen/Betriebsfuehrung/Fahrplanmanagement)
