XRechnung Feldbeschreibung
1. Belegkopf (Dokument)
| SelectLine-Feld | XML‑Pfad | Ebene | Pflicht |
|---|---|---|---|
| Belegnummer | rsm:ExchangedDocument / ram:ID |
Header | ✅ |
| Belegtyp | rsm:ExchangedDocument / ram:TypeCode |
Header | ✅ (380) |
| Belegdatum | ram:IssueDateTime / udt:DateTimeString |
Header | ✅ |
| Kopftext | ram:IncludedNote / ram:Content |
Header | ⭕ |
| Konstante REG | ram:IncludedNote / ram:SubjectCode |
Header | ⭕ |
| Zahlungsreferenz | ram:PaymentReference |
Header | ✅ |
| Belegwährung | ram:InvoiceCurrencyCode |
Header | ✅ |
2. Positionen (je Belegposition)
2.1 Positionsidentifikation
| SelectLine-Feld | XML‑Pfad | Ebene | Pflicht |
|---|---|---|---|
| Positionsnummer | ram:AssociatedDocumentLineDocument / ram:LineID |
Position | ✅ |
| Positionslangtext | ram:AssociatedDocumentLineDocument / ram:IncludedNote / ram:Content |
Position | ⭕ |
2.2 Artikel / Produkt
| SelectLine-Feld | XML‑Pfad | Ebene | Pflicht |
|---|---|---|---|
| EAN | ram:SpecifiedTradeProduct / ram:GlobalID[@schemeID="0160"] |
Position | ⭕ |
| Artikelnummer | ram:SellerAssignedID |
Position | ✅ |
| Bezeichnung | ram:Name |
Position | ✅ |
| Beschreibung | ram:Description |
Position | ⭕ |
2.3 Menge
| SelectLine-Feld | XML‑Pfad | Ebene | Pflicht |
|---|---|---|---|
| Menge | ram:SpecifiedLineTradeDelivery / ram:BilledQuantity |
Position | ✅ |
| Mengeneinheit | @unitCode an ram:BilledQuantity |
Position | ✅ |
2.4 Preise (Positionsbezogen)
| SelectLine-Feld | XML‑Pfad | Bedeutung | Pflicht |
|---|---|---|---|
| Nettoeinzelpreis | ram:GrossPriceProductTradePrice / ram:ChargeAmount |
Preis vor Rabatt | ✅ |
| Preiseinheit | ram:GrossPriceProductTradePrice / ram:BasisQuantity |
Preisbasis | ✅ |
| Positionsrabatt/-aufschlag Kennz. | ram:AppliedTradeAllowanceCharge / ram:ChargeIndicator / udt:Indicator |
false=Rabatt / true=Aufschlag | ⭕ |
| Rabatt-/Aufschlagsbetrag | ram:AppliedTradeAllowanceCharge / ram:ActualAmount |
absolut | ⭕ |
| Nettopreis nach Rabatt | ram:NetPriceProductTradePrice / ram:ChargeAmount |
Netto | ✅ |
⚠️ Wichtig für SelectLine:GrossPrice ≠ Brutto, sondern Netto vor Rabatt
2.5 Steuer & Positionssumme
| SelectLine-Feld | XML‑Pfad | Ebene | Pflicht |
|---|---|---|---|
| Steuerart | ram:ApplicableTradeTax / ram:TypeCode |
Position | ✅ (VAT) |
| Steuerkategorie | ram:CategoryCode |
Position | ✅ |
| Steuersatz | ram:RateApplicablePercent |
Position | ✅ |
| Positionsnettobetrag | ram:LineTotalAmount |
Position | ✅ |
3. Geschäftspartner
3.1 Verkäufer (Mandant)
| SelectLine-Feld | XML‑Pfad | Pflicht |
|---|---|---|
| Lieferantennr. beim Kunden | ram:SellerTradeParty / ram:ID |
⭕ |
| GLN Mandant | ram:GlobalID[@schemeID="0088"] |
⭕ |
| Firmenname | ram:Name |
✅ |
| Telefon | ram:TelephoneUniversalCommunication / ram:CompleteNumber |
⭕ |
| E‑Mail | ram:EmailURIUniversalCommunication / ram:URIID |
⭕ |
| Straße | ram:PostalTradeAddress / ram:LineOne |
✅ |
| PLZ | ram:PostcodeCode |
✅ |
| Ort | ram:CityName |
✅ |
| Land | ram:CountryID |
✅ |
| Steuernummer | ram:ID[@schemeID="FC"] |
⭕ |
| USt‑ID | ram:ID[@schemeID="VA"] |
✅ |
3.2 Käufer (Kunde)
| SelectLine-Feld | XML‑Pfad | Pflicht |
|---|---|---|
| Kundennummer | ram:BuyerTradeParty / ram:ID |
✅ |
| Firmenname | ram:Name |
✅ |
| Straße | ram:PostalTradeAddress / ram:LineOne |
✅ |
| PLZ | ram:PostcodeCode |
✅ |
| Ort | ram:CityName |
✅ |
| Land | ram:CountryID |
✅ |
| USt‑ID Kunde | ram:SpecifiedTaxRegistration / ram:ID[@schemeID="VA"] |
⭕ |
| Leitweg‑ID | ram:BuyerReference |
✅ (B2G) |
4. Auftrag & Projekt
| SelectLine-Feld | XML‑Pfad | Pflicht |
|---|---|---|
| Kundenauftrag | ram:BuyerOrderReferencedDocument / ram:IssuerAssignedID |
⭕ |
| Projektnummer | ram:SpecifiedProcuringProject / ram:ID |
⭕ |
| Projektname | ram:SpecifiedProcuringProject / ram:Name |
⭕ |
5. Lieferung / Leistung
| SelectLine-Feld | XML‑Pfad | Pflicht |
|---|---|---|
| Leistungsdatum | ram:ActualDeliverySupplyChainEvent / udt:DateTimeString |
✅ |
| Leistungszeitraum Start | ram:BillingSpecifiedPeriod / ram:StartDateTime |
⭕ |
| Leistungszeitraum Ende | ram:BillingSpecifiedPeriod / ram:EndDateTime |
⭕ |
6. Zahlung
| SelectLine-Feld | XML‑Pfad | Pflicht |
|---|---|---|
| Zahlungsart (UNTDID) | ram:SpecifiedTradeSettlementPaymentMeans / ram:TypeCode |
✅ |
| Zahlungsbedingung Text | ram:Information |
✅ |
| IBAN Mandant | ram:PayerPartyDebtorFinancialAccount / ram:IBANID |
✅ |
| IBAN Kunde | ram:PayeePartyCreditorFinancialAccount / ram:IBANID |
⭕ |
| BIC | ram:PayeeSpecifiedCreditorFinancialInstitution / ram:BICID |
⭕ |
| Fälligkeit | ram:SpecifiedTradePaymentTerms / udt:DateTimeString |
✅ |
7. Belegweite Rabatte / Zuschläge
| SelectLine-Feld | XML‑Pfad | Hinweis |
|---|---|---|
| Belegrabatt | ram:SpecifiedTradeAllowanceCharge (Indicator=false) |
netto |
| Belegaufschlag | ram:SpecifiedTradeAllowanceCharge (Indicator=true) |
nur 1 Steuersatz erlaubt |
8. Summen (Header)
| SelectLine-Feld | XML‑Pfad | Pflicht |
|---|---|---|
| Nettowarenwert | ram:LineTotalAmount |
✅ |
| Zuschläge gesamt | ram:ChargeTotalAmount |
⭕ |
| Rabatte gesamt | ram:AllowanceTotalAmount |
⭕ |
| Steuerbasis | ram:TaxBasisTotalAmount |
✅ |
| Steuerbetrag gesamt | ram:TaxTotalAmount |
✅ |
| Rechnungsbetrag | ram:GrandTotalAmount |
✅ |
| Vorauszahlung | ram:TotalPrepaidAmount |
⭕ |
| Zahlbetrag | ram:DuePayableAmount |
✅ |