Skip to content

IDoc

What is an IDoc

An IDoc (Intermediate Document) is SAP’s structured message format to exchange business documents (like invoices) with external systems.

  • How you get it from SAP: SAP generates the IDoc in its internal tables and can export it as XML (common in modern integrations) or as a text file.
  • How it is used: an external platform (like xTool or an EDI provider) parses the segments, validates the structure, and converts the content to the target business format (for example UBL/Peppol).

Segment groups

Below is a practical “reading list” of the most common INVOIC02 segment groups.

  • Control (technical envelope)
    • EDI_DC40: control record (sender/receiver, IDoc type, timestamps). Mostly technical routing metadata.
  • Header (“K segments”)
    • E1EDK01: invoice header general data (currency, invoice type, VAT IDs, document numbers depending on customization).
    • E1EDKA1: header partners (repeat; PARVW defines the role: supplier, buyer, ship-to, etc.).
    • E1EDK02: header references (repeat; QUALF defines which document is referenced: invoice no., PO, delivery note, ...).
    • E1EDK03: header dates (repeat; IDDAT defines which date it is: due date, delivery date, ...).
    • E1EDK05: header conditions (surcharges/discounts at header level, if present).
    • E1EDK04: header taxes (tax totals by tax code/rate, if present).
    • E1EDK17: terms of delivery / Incoterms (optional).
    • E1EDK18: terms of payment (optional).
    • E1EDK23: currency information (optional).
    • E1EDK28: bank data (IBAN/BIC, account holder, optional).
    • E1EDKT1 / E1EDKT2: header texts (optional; free-form text blocks/lines).
    • E1EDK14: organizational data (sales org, distribution channel, etc., optional).
  • Items (“P segments”, repeated per line)
    • E1EDP01: item general data (item no., quantity, unit, and additional item context).
    • E1EDP02: item references (optional).
    • E1EDP03: item dates (optional).
    • E1EDP19: item identification (material number, GTIN-like IDs, descriptions, optional/repeat).
    • E1EDP26: item amounts (price, net/gross amounts, subtotals; QUALF defines meaning; optional/repeat).
    • E1EDP05: item conditions (discounts/surcharges on line level, optional/repeat).
    • E1EDP04: item taxes (tax code/rate/amount on line level, optional/repeat).
    • E1EDPT1 / E1EDPT2: item texts (optional).
  • Summary (“S segments”)
    • E1EDS01: totals (repeat; SUMID defines the total type: net subtotal, tax total, gross/payable total, ...).

Typical structure

This is the typical layout of an INVOIC02 exported as XML:

<INVOIC02>
  <IDOC BEGIN="1">
    <EDI_DC40 SEGMENT="1"> ... </EDI_DC40>

    <!-- Header -->
    <E1EDK01 SEGMENT="1"> ... </E1EDK01>
    <E1EDKA1 SEGMENT="1"> ... </E1EDKA1>
    <E1EDK02 SEGMENT="1"> ... </E1EDK02>
    <E1EDK03 SEGMENT="1"> ... </E1EDK03>
    <E1EDK18 SEGMENT="1"> ... </E1EDK18>
    <E1EDK28 SEGMENT="1"> ... </E1EDK28>

    <!-- Items (repeat per invoice line) -->
    <E1EDP01 SEGMENT="1"> ... </E1EDP01>

    <!-- Totals (repeat; SUMID defines meaning) -->
    <E1EDS01 SEGMENT="1"> ... </E1EDS01>
  </IDOC>
</INVOIC02>

Full invoice example

The example below represents a simple B2B invoice from the business perspective:

  • Supplier: “xTool Demo Supplier GmbH” (VAT ID DE987654321)
  • Buyer: “Demo Buyer AG” (VAT ID DE123456789)
  • Delivery location: “Demo Buyer Warehouse”
  • Invoice references: invoice number, purchase order, sales order, delivery note
  • Payment: “30 days net”, due date is provided
  • Items: one line item (quantity 10, unit C62, net price 100.00, line net 1000.00)
  • Totals: net 1000.00, VAT 190.00, gross 1190.00 (EUR)

Full example (complete file)

In the example below you will see two tabs:

  • IDOC: the original INVOIC02 IDoc (XML export from SAP)
  • XML: the corresponding Peppol BIS Billing 3.0 (UBL) invoice representing the same business meaning

Many lines in the examples have a small “+” icon next to them. Click it to expand the field description.

!!! info "Integration hints (xTool + Peppol)" - PARVW='ZX'/STRS2 and PARVW='RE'/STRS2 are used in xTool mapping for supplier and buyer endpoint extraction. - MENEE should use a UN/ECE-compatible code (for example C62) if the final target is Peppol BIS validation. - E1EDP19/QUALF='003' contains a standard item ID value, but IDoc itself does not carry schemeID; this may require additional mapping when exporting to strict UBL/Peppol.

<INVOIC02>
    <IDOC BEGIN="1">
        <!-- Control record (technical envelope / routing metadata) -->
        <EDI_DC40 SEGMENT="1">
            <TABNAM>EDI_DC40</TABNAM> <!-- (1)! -->
            <MANDT>100</MANDT> <!-- (2)! -->
            <DOCNUM>0000000099999999</DOCNUM> <!-- (3)! -->
            <DOCREL>750</DOCREL> <!-- (4)! -->
            <STATUS>30</STATUS> <!-- (5)! -->
            <DIRECT>1</DIRECT> <!-- (6)! -->
            <OUTMOD>2</OUTMOD> <!-- (7)! -->
            <IDOCTYP>INVOIC02</IDOCTYP> <!-- (8)! -->
            <MESTYP>INVOIC</MESTYP> <!-- (9)! -->
            <SNDPOR>SAPDEV1</SNDPOR> <!-- (10)! -->
            <SNDPRT>LS</SNDPRT> <!-- (11)! -->
            <SNDPRN>DEVCLNT100</SNDPRN> <!-- (12)! -->
            <RCVPOR>XTOOL</RCVPOR> <!-- (13)! -->
            <RCVPRT>LS</RCVPRT> <!-- (14)! -->
            <RCVPFC>RE</RCVPFC> <!-- (15)! -->
            <RCVPRN>XTOOLTEST</RCVPRN> <!-- (16)! -->
            <CREDAT>20260731</CREDAT> <!-- (17)! -->
            <CRETIM>103000</CRETIM> <!-- (18)! -->
            <SERIAL>20260731103000</SERIAL> <!-- (19)! -->
        </EDI_DC40>

        <!-- Invoice header (currency, type, invoice number, VAT IDs, etc.) -->
        <E1EDK01 SEGMENT="1">
            <CURCY>EUR</CURCY> <!-- (20)! -->
            <HWAER>EUR</HWAER> <!-- (21)! -->
            <WKURS>1.00000</WKURS> <!-- (22)! -->
            <ZTERM>DN30</ZTERM> <!-- (23)! -->
            <KUNDEUINR>DE123456789</KUNDEUINR> <!-- (24)! -->
            <EIGENUINR>DE987654321</EIGENUINR> <!-- (25)! -->
            <BSART>INVO</BSART> <!-- (26)! -->
            <BELNR>0090999999</BELNR> <!-- (27)! -->
            <GEWEI>KGM</GEWEI> <!-- (28)! -->
            <RECIPNT_NO>0000001234</RECIPNT_NO> <!-- (29)! -->
            <FKTYP>L</FKTYP>
        </E1EDK01>

        <!-- Partners (repeat E1EDKA1; PARVW defines the role: RS, RE, WE, ZX, ...) -->
        <E1EDKA1 SEGMENT="1">
            <PARVW>RS</PARVW> <!-- (30)! -->
            <PARTN>0000001234</PARTN> <!-- (31)! -->
            <NAME1>xTool Demo Supplier GmbH</NAME1> <!-- (32)! -->
            <NAME2>Finance Department</NAME2> <!-- (33)! -->
            <NAME4>xTool Demo Supplier</NAME4> <!-- (34)! -->
            <STRAS>Teichstrasse 10</STRAS> <!-- (35)! -->
            <ORT01>Kassel</ORT01> <!-- (36)! -->
            <PSTLZ>34130</PSTLZ> <!-- (37)! -->
            <LAND1>DE</LAND1> <!-- (38)! -->
        </E1EDKA1>
        <E1EDKA1 SEGMENT="1">
            <PARVW>RE</PARVW> <!-- (39)! -->
            <PARTN>0000009876</PARTN> <!-- (40)! -->
            <NAME1>Demo Buyer AG</NAME1> <!-- (41)! -->
            <NAME2>Accounts Payable</NAME2> <!-- (42)! -->
            <NAME3>Plant 1</NAME3> <!-- (43)! -->
            <STRAS>Buyer Street 1</STRAS> <!-- (44)! -->
            <STRS2>0208:4000001123452</STRS2> <!-- (45)! -->
            <ORT01>Berlin</ORT01> <!-- (46)! -->
            <PSTLZ>10115</PSTLZ> <!-- (47)! -->
            <LAND1>DE</LAND1> <!-- (48)! -->
            <TELF1>+49 30 123456</TELF1> <!-- (49)! -->
        </E1EDKA1>
        <E1EDKA1 SEGMENT="1">
            <PARVW>WE</PARVW> <!-- (50)! -->
            <PARTN>0000009877</PARTN> <!-- (51)! -->
            <NAME1>Demo Buyer Warehouse</NAME1> <!-- (52)! -->
            <NAME2>Ramp A</NAME2> <!-- (53)! -->
            <NAME3>Gate 3</NAME3> <!-- (54)! -->
            <STRAS>Warehouse Road 7</STRAS> <!-- (55)! -->
            <ORT01>Berlin</ORT01> <!-- (56)! -->
            <PSTLZ>10117</PSTLZ> <!-- (57)! -->
            <LAND1>DE</LAND1> <!-- (58)! -->
        </E1EDKA1>
        <E1EDKA1 SEGMENT="1">
            <PARVW>ZX</PARVW> <!-- (59)! -->
            <PARTN>0000001235</PARTN> <!-- (60)! -->
            <NAME1>xTool Demo Supplier GmbH</NAME1> <!-- (61)! -->
            <NAME2>Invoice Team</NAME2> <!-- (62)! -->
            <NAME3>invoice-team@demo.example</NAME3> <!-- (63)! -->
            <STRS2>9930:DE987654321</STRS2> <!-- (64)! -->
            <TELF1>+49 561 12345</TELF1> <!-- (65)! -->
            <LAND1>DE</LAND1> <!-- (66)! -->
        </E1EDKA1>

        <!-- Document references (repeat E1EDK02; QUALF defines reference type) -->
        <E1EDK02 SEGMENT="1">
            <QUALF>009</QUALF> <!-- (67)! -->
            <BELNR>INV-2026-0001</BELNR> <!-- (68)! -->
            <DATUM>20260731</DATUM> <!-- (69)! -->
        </E1EDK02>
        <E1EDK02 SEGMENT="1">
            <QUALF>001</QUALF> <!-- (70)! -->
            <BELNR>PO-4500001234</BELNR> <!-- (71)! -->
            <DATUM>20260725</DATUM> <!-- (72)! -->
        </E1EDK02>
        <E1EDK02 SEGMENT="1">
            <QUALF>002</QUALF> <!-- (73)! -->
            <BELNR>SO-7000012345</BELNR> <!-- (74)! -->
            <DATUM>20260725</DATUM> <!-- (75)! -->
        </E1EDK02>
        <E1EDK02 SEGMENT="1">
            <QUALF>012</QUALF> <!-- (76)! -->
            <BELNR>DN-8000012345</BELNR> <!-- (77)! -->
            <DATUM>20260730</DATUM> <!-- (78)! -->
        </E1EDK02>

        <!-- Dates and payment terms -->
        <E1EDK03 SEGMENT="1">
            <IDDAT>028</IDDAT> <!-- (79)! -->
            <DATUM>20260830</DATUM> <!-- (80)! -->
        </E1EDK03>
        <E1EDK18 SEGMENT="1">
            <QUALF>005</QUALF> <!-- (81)! -->
            <ZTERM_TXT>30 days net</ZTERM_TXT> <!-- (82)! -->
        </E1EDK18>
        <E1EDK28 SEGMENT="1">
            <BCOUN>DE</BCOUN> <!-- (83)! -->
            <BRNUM>HELADEF1KAS</BRNUM> <!-- (84)! -->
            <BNAME>Demo Bank</BNAME> <!-- (85)! -->
            <ACNUM>DE12520503530001153189</ACNUM> <!-- (86)! -->
            <ACNAM>xTool Demo Supplier GmbH</ACNAM> <!-- (87)! -->
        </E1EDK28>

        <!-- Invoice lines (repeat E1EDP01 for each line item) -->
        <E1EDP01 SEGMENT="1">
            <POSEX>000010</POSEX> <!-- (88)! -->
            <MENGE>10.000</MENGE> <!-- (89)! -->
            <MENEE>C62</MENEE> <!-- (90)! -->
            <E1EDP19 SEGMENT="1"> <!-- (91)! -->
                <QUALF>002</QUALF> <!-- (92)! -->
                <IDTNR>MAT-10001</IDTNR> <!-- (93)! -->
                <KTEXT>Consulting service package</KTEXT> <!-- (94)! -->
            </E1EDP19>
            <E1EDP19 SEGMENT="1">
                <QUALF>003</QUALF> <!-- (95)! -->
                <IDTNR>4260123456789</IDTNR> <!-- (96)! -->
            </E1EDP19>
            <E1EDP26 SEGMENT="1">
                <QUALF>001</QUALF> <!-- (97)! -->
                <BETRG>100.00</BETRG> <!-- (98)! -->
            </E1EDP26>
            <E1EDP26 SEGMENT="1">
                <QUALF>002</QUALF> <!-- (99)! -->
                <BETRG>1000.00</BETRG> <!-- (100)! -->
            </E1EDP26>
            <E1EDP04 SEGMENT="1">
                <MWSKZ>A3</MWSKZ> <!-- (101)! -->
                <MSATZ>19.000</MSATZ> <!-- (102)! -->
                <MWSBT>190.00</MWSBT> <!-- (103)! -->
            </E1EDP04>
        </E1EDP01>

        <!-- Totals (repeat E1EDS01; SUMID defines which total it is) -->
        <E1EDS01 SEGMENT="1">
            <SUMID>005</SUMID> <!-- (104)! -->
            <SUMME>190.00</SUMME> <!-- (105)! -->
            <WAERQ>EUR</WAERQ> <!-- (106)! -->
        </E1EDS01>
        <E1EDS01 SEGMENT="1">
            <SUMID>010</SUMID> <!-- (107)! -->
            <SUMME>1000.00</SUMME> <!-- (108)! -->
            <WAERQ>EUR</WAERQ> <!-- (109)! -->
        </E1EDS01>
        <E1EDS01 SEGMENT="1">
            <SUMID>012</SUMID> <!-- (110)! -->
            <SUMME>1190.00</SUMME> <!-- (111)! -->
            <WAERQ>EUR</WAERQ> <!-- (112)! -->
        </E1EDS01>
    </IDOC>
</INVOIC02>
  1. TABNAM: technical table name of the control record (EDI_DC40).
  2. MANDT: SAP client number (tenant).
  3. DOCNUM: unique SAP IDoc number.
  4. DOCREL: SAP release/version indicator.
  5. STATUS: IDoc status code in SAP processing.
  6. DIRECT: message direction (1 outbound, 2 inbound).
  7. OUTMOD: output mode from partner profile.
  8. IDOCTYP: IDoc basic type (INVOIC02).
  9. MESTYP: business message type (INVOIC).
  10. SNDPOR: sender port (ALE/EDI).
  11. SNDPRT: sender partner type.
  12. SNDPRN: sender partner identifier.
  13. RCVPOR: receiver port.
  14. RCVPRT: receiver partner type.
  15. RCVPFC: receiver partner function.
  16. RCVPRN: receiver partner identifier.
  17. CREDAT: IDoc creation date (YYYYMMDD).
  18. CRETIM: IDoc creation time (HHMMSS).
  19. SERIAL: serialization key for ordering/grouping.
  20. CURCY: document currency.
  21. HWAER: local/company currency.
  22. WKURS: exchange rate.
  23. ZTERM: SAP payment terms key.
  24. KUNDEUINR: customer VAT/tax registration ID.
  25. EIGENUINR: supplier VAT/tax registration ID.
  26. BSART: billing document type (INVO, CRME, etc.).
  27. BELNR: SAP invoice/document number.
  28. GEWEI: unit for weight fields.
  29. RECIPNT_NO: recipient number in SAP context.
  30. PARVW (RS): partner role = supplier/invoice issuer.
  31. PARTN (RS): supplier partner number.
  32. NAME1 (RS): supplier legal/display name.
  33. NAME2 (RS): additional supplier name/department.
  34. NAME4 (RS): extra supplier name/trade/legal form text.
  35. STRAS (RS): supplier street.
  36. ORT01 (RS): supplier city.
  37. PSTLZ (RS): supplier postal code.
  38. LAND1 (RS): supplier country code (ISO-like SAP code).
  39. PARVW (RE): partner role = invoice recipient / buyer.
  40. PARTN (RE): buyer partner number.
  41. NAME1 (RE): buyer legal/display name.
  42. NAME2 (RE): buyer additional name line.
  43. NAME3 (RE): buyer additional name line 2.
  44. STRAS (RE): buyer street.
  45. STRS2 (RE): secondary street/custom field (often endpoint format scheme:value in this integration).
  46. ORT01 (RE): buyer city.
  47. PSTLZ (RE): buyer postal code.
  48. LAND1 (RE): buyer country code.
  49. TELF1 (RE): buyer contact phone.
  50. PARVW (WE): partner role = ship-to/delivery party.
  51. PARTN (WE): delivery partner number.
  52. NAME1 (WE): delivery location/company name.
  53. NAME2 (WE): delivery address line 2 / qualifier text.
  54. NAME3 (WE): delivery address line 3 / qualifier text.
  55. STRAS (WE): delivery street.
  56. ORT01 (WE): delivery city.
  57. PSTLZ (WE): delivery postal code.
  58. LAND1 (WE): delivery country code.
  59. PARVW (ZX): custom contact/endpoint partner role (integration specific).
  60. PARTN (ZX): contact partner number.
  61. NAME1 (ZX): contact organization name.
  62. NAME2 (ZX): contact person/team name.
  63. NAME3 (ZX): contact email (project convention).
  64. STRS2 (ZX): supplier endpoint (scheme:value) used by mapping.
  65. TELF1 (ZX): contact phone.
  66. LAND1 (ZX): contact country code.
  67. QUALF=009: reference qualifier for invoice number/date.
  68. BELNR (009): invoice reference number.
  69. DATUM (009): invoice reference date.
  70. QUALF=001: qualifier for customer purchase order reference.
  71. BELNR (001): purchase order number.
  72. DATUM (001): purchase order date.
  73. QUALF=002: qualifier for supplier sales order reference.
  74. BELNR (002): sales order number.
  75. DATUM (002): sales order date.
  76. QUALF=012: qualifier for additional referenced document.
  77. BELNR (012): additional document number (for example delivery note).
  78. DATUM (012): additional document date.
  79. IDDAT=028: date qualifier for due date.
  80. DATUM (028): payment due date.
  81. QUALF=005 (E1EDK18): qualifier for payment terms text.
  82. ZTERM_TXT: human-readable payment terms text.
  83. BCOUN: bank country code.
  84. BRNUM: bank identifier/BIC.
  85. BNAME: bank name.
  86. ACNUM: account number / IBAN.
  87. ACNAM: account holder name.
  88. POSEX: line item number/position.
  89. MENGE: invoiced quantity.
  90. MENEE: quantity unit code.
  91. E1EDP19: item identification segment.
  92. QUALF=002 (E1EDP19): supplier item identification qualifier.
  93. IDTNR (002): supplier item ID / material number.
  94. KTEXT (002): item name/short description.
  95. QUALF=003 (E1EDP19): standard/global item identifier qualifier.
  96. IDTNR (003): standard item ID value (for example GTIN-like value).
  97. QUALF=001 (E1EDP26): unit/net price amount qualifier.
  98. BETRG (001): unit/net price amount.
  99. QUALF=002 (E1EDP26): line net amount qualifier.
  100. BETRG (002): line extension/net subtotal amount.
  101. MWSKZ: tax code at line level.
  102. MSATZ: tax rate percent at line level.
  103. MWSBT: tax amount at line level.
  104. SUMID=005: total qualifier for tax total.
  105. SUMME (005): tax total amount.
  106. WAERQ (005): currency of total amount.
  107. SUMID=010: total qualifier for net subtotal.
  108. SUMME (010): net subtotal amount.
  109. WAERQ (010): currency of subtotal amount.
  110. SUMID=012: total qualifier for gross/payable amount.
  111. SUMME (012): gross/payable total amount.
  112. WAERQ (012): currency of total amount.
<ubl:Invoice xmlns:ubl="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
    <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>
    <cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>
    <cbc:ID>INV-2026-0001</cbc:ID>
    <cbc:IssueDate>2026-07-31</cbc:IssueDate>
    <cbc:DueDate>2026-08-30</cbc:DueDate>
    <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
    <cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
    <cbc:BuyerReference>4000001123452</cbc:BuyerReference>
    <cac:OrderReference>
        <cbc:ID>PO-4500001234</cbc:ID>
        <cbc:SalesOrderID>SO-7000012345</cbc:SalesOrderID>
    </cac:OrderReference>
    <cac:AdditionalDocumentReference>
        <cbc:ID schemeID="DQ">DN-8000012345</cbc:ID>
        <cbc:DocumentTypeCode>130</cbc:DocumentTypeCode>
    </cac:AdditionalDocumentReference>
    <cac:AccountingSupplierParty>
        <cac:Party>
        <cbc:EndpointID schemeID="9930">DE987654321</cbc:EndpointID>
        <cac:PartyName>
            <cbc:Name>xTool Demo Supplier</cbc:Name>
        </cac:PartyName>
        <cac:PostalAddress>
            <cbc:StreetName>Teichstrasse 10</cbc:StreetName>
            <cbc:CityName>Kassel</cbc:CityName>
            <cbc:PostalZone>34130</cbc:PostalZone>
            <cac:Country>
            <cbc:IdentificationCode>DE</cbc:IdentificationCode>
            </cac:Country>
        </cac:PostalAddress>
        <cac:PartyTaxScheme>
            <cbc:CompanyID>DE987654321</cbc:CompanyID>
            <cac:TaxScheme>
            <cbc:ID>VAT</cbc:ID>
            </cac:TaxScheme>
        </cac:PartyTaxScheme>
        <cac:PartyLegalEntity>
            <cbc:RegistrationName>xTool Demo Supplier GmbH</cbc:RegistrationName>
            <cbc:CompanyID>0000001234</cbc:CompanyID>
            <cbc:CompanyLegalForm>xTool Demo Supplier</cbc:CompanyLegalForm>
        </cac:PartyLegalEntity>
        <cac:Contact>
            <cbc:Name>Invoice Team</cbc:Name>
            <cbc:Telephone>+49 561 12345</cbc:Telephone>
            <cbc:ElectronicMail>invoice-team@demo.example</cbc:ElectronicMail>
        </cac:Contact>
        </cac:Party>
    </cac:AccountingSupplierParty>
    <cac:AccountingCustomerParty>
        <cac:Party>
        <cbc:EndpointID schemeID="0208">4000001123452</cbc:EndpointID>
        <cac:PostalAddress>
            <cbc:StreetName>Buyer Street 1</cbc:StreetName>
            <cbc:AdditionalStreetName>Accounts Payable</cbc:AdditionalStreetName>
            <cbc:CityName>Berlin</cbc:CityName>
            <cbc:PostalZone>10115</cbc:PostalZone>
            <cac:AddressLine>
            <cbc:Line>Plant 1</cbc:Line>
            </cac:AddressLine>
            <cac:Country>
            <cbc:IdentificationCode>DE</cbc:IdentificationCode>
            </cac:Country>
        </cac:PostalAddress>
        <cac:PartyTaxScheme>
            <cbc:CompanyID>DE123456789</cbc:CompanyID>
            <cac:TaxScheme>
            <cbc:ID>VAT</cbc:ID>
            </cac:TaxScheme>
        </cac:PartyTaxScheme>
        <cac:PartyLegalEntity>
            <cbc:RegistrationName>Demo Buyer AG</cbc:RegistrationName>
            <cbc:CompanyID>0000009876</cbc:CompanyID>
        </cac:PartyLegalEntity>
        <cac:Contact>
            <cbc:Name>+49 30 123456</cbc:Name>
        </cac:Contact>
        </cac:Party>
    </cac:AccountingCustomerParty>
    <cac:Delivery>
        <cac:DeliveryLocation>
        <cbc:ID>0000009877</cbc:ID>
        <cac:Address>
            <cbc:StreetName>Warehouse Road 7</cbc:StreetName>
            <cbc:AdditionalStreetName>Ramp A</cbc:AdditionalStreetName>
            <cbc:CityName>Berlin</cbc:CityName>
            <cbc:PostalZone>10117</cbc:PostalZone>
            <cac:AddressLine>
            <cbc:Line>Gate 3</cbc:Line>
            </cac:AddressLine>
            <cac:Country>
            <cbc:IdentificationCode>DE</cbc:IdentificationCode>
            </cac:Country>
        </cac:Address>
        </cac:DeliveryLocation>
        <cac:DeliveryParty>
        <cac:PartyName>
            <cbc:Name>Demo Buyer Warehouse</cbc:Name>
        </cac:PartyName>
        </cac:DeliveryParty>
    </cac:Delivery>
    <cac:PaymentMeans>
        <cbc:PaymentMeansCode>42</cbc:PaymentMeansCode>
        <cac:PayeeFinancialAccount>
        <cbc:ID>DE12520503530001153189</cbc:ID>
        <cac:FinancialInstitutionBranch>
            <cbc:ID>HELADEF1KAS</cbc:ID>
        </cac:FinancialInstitutionBranch>
        </cac:PayeeFinancialAccount>
    </cac:PaymentMeans>
    <cac:PaymentTerms>
        <cbc:Note>30 days net</cbc:Note>
    </cac:PaymentTerms>
    <cac:TaxTotal>
        <cbc:TaxAmount currencyID="EUR">190.00</cbc:TaxAmount>
        <cac:TaxSubtotal>
        <cbc:TaxableAmount currencyID="EUR">1000.00</cbc:TaxableAmount>
        <cbc:TaxAmount currencyID="EUR">190.00000</cbc:TaxAmount>
        <cac:TaxCategory>
            <cbc:ID>S</cbc:ID>
            <cbc:Percent>19.000</cbc:Percent>
            <cac:TaxScheme>
            <cbc:ID>VAT</cbc:ID>
            </cac:TaxScheme>
        </cac:TaxCategory>
        </cac:TaxSubtotal>
    </cac:TaxTotal>
    <cac:LegalMonetaryTotal>
        <cbc:LineExtensionAmount currencyID="EUR">1000.00</cbc:LineExtensionAmount>
        <cbc:TaxExclusiveAmount currencyID="EUR">1000.00</cbc:TaxExclusiveAmount>
        <cbc:TaxInclusiveAmount currencyID="EUR">1190.00</cbc:TaxInclusiveAmount>
        <cbc:PayableAmount currencyID="EUR">1190.00</cbc:PayableAmount>
    </cac:LegalMonetaryTotal>
    <cac:InvoiceLine>
        <cbc:ID>000010</cbc:ID>
        <cbc:InvoicedQuantity unitCode="C62">10.000</cbc:InvoicedQuantity>
        <cbc:LineExtensionAmount currencyID="EUR">1000.00</cbc:LineExtensionAmount>
        <cac:Item>
        <cbc:Name>Consulting service package</cbc:Name>
        <cac:SellersItemIdentification>
            <cbc:ID>MAT-10001</cbc:ID>
        </cac:SellersItemIdentification>
        <cac:StandardItemIdentification>
            <cbc:ID>4260123456789</cbc:ID>
        </cac:StandardItemIdentification>
        <cac:ClassifiedTaxCategory>
            <cbc:ID>S</cbc:ID>
            <cbc:Percent>19.000</cbc:Percent>
            <cac:TaxScheme>
            <cbc:ID>VAT</cbc:ID>
            </cac:TaxScheme>
        </cac:ClassifiedTaxCategory>
        </cac:Item>
        <cac:Price>
        <cbc:PriceAmount currencyID="EUR">100.00</cbc:PriceAmount>
        </cac:Price>
    </cac:InvoiceLine>
</ubl:Invoice>