DocBits- IDP for Infor ERP
HomeAppStatusAPI
🇵🇱 Polski
🇵🇱 Polski
  • Omówienie i podstawy
    • DocBits
      • Kluczowe funkcje DocBits
    • Architektura
      • DocBits Infor na miejscu Klienta
      • Certyfikaty
    • Infor Infrastruktura
  • Informacje o wersji
  • Sekcja użytkowników końcowych i partnerów
    • Sekcja użytkownika końcowego
      • Pulpit
        • Pulpit Narzędzia
        • Scalanie Dokumentów
        • Status Dokumentu
        • Filtrowanie Dokumentów
        • Przegląd Przesłanych Dokumentów
        • Licznik Zadań
        • Zweryfikowane Wyodrębnione Pola
        • Przepływ Dokumentów
        • Rozwiązywanie problemów
        • Skróty Klawiaturowe
      • Zadania
      • Panel Kontroli Wysyłek Zaawansowanych
      • Pulpit nawigacyjny zamówienia zakupu
      • Dashboard Faktur
      • Panel Zamówień Wysyłkowych
      • Opcje Konfiguracji Użytkownika
      • Tabela AI
        • Tagowanie tabeli AI
      • Ekran Walidacji
        • Rozmyte Dane
        • Kody QR
        • Skróty Klawiaturowe
      • Cel i Zastosowanie
      • Dopasowywanie Zamówień Zakupu
        • Automatyczne Dopasowywanie Danych Zamówień Zakupu
        • Mapa Numerów Przedmiotów Dostawcy
        • Skróty Klawiaturowe
      • Księgowanie faktur kosztowych i sprzedaży pośredniej
      • Jak importować dokumenty
        • FTP
        • Ręczny Import
        • Webhook
        • Email
          • IMAP
          • OAuth Office365
      • Wsparcie techniczne w DocBits
        • Utwórz zgłoszenie
        • Ikony Pomocy
      • Kurs
        • Wprowadzenie
        • Pulpit
        • AI Table
        • Master PO Matching with DocBits
      • Nasz System Priorytetów Dokumentów
      • Portal Dostawcy
        • Rejestracja Dostawcy
        • Status Dostawcy
      • Zasoby i wsparcie
        • Wsparcie Użytkownika
    • Sekcja Partnerów
      • Automatyzacja Testów Faktur z DocBits
  • Administracja i konfiguracja
    • Ustawienia
      • Global Settings
        • Informacje o firmie
          • Definiowanie koloru aplikacji w ustawieniach firmy
        • Custom Filters
        • Document Expiry
        • Document Types
          • Layout Manager
            • Nawigacja w Menedżerze Układów
          • Document Sub Types
          • Table Columns
          • Fields
            • Dodawanie i Edytowanie Pól
          • Model Training
          • Regex
          • Script
          • EDI
          • More Settings
            • Cel i zastosowanie
            • Najlepsze praktyki
            • Rozwiązywanie problemów
            • Obsługa Duplikatów Dokumentów
            • Stempel Zatwierdzenia
            • Mapa Numerów Przedmiotów Dostawcy - Dokumentacja Administracyjna
            • Ustawienia tolerancji zamówienia zakupu / Dodatkowa tolerancja zamówienia zakupu
            • Statusy wyłączenia zamówienia zakupu
            • Tabela PO w Kreatorze Układów
            • Automatyczne sprawdzanie aktualizacji PO
            • Oblicz cenę jednostkową PO
            • Eksport niepasujących linii PO
          • e-docs
            • eSLOG 1.6 i 2.0
        • Powiadomienie e-mail
          • Konfigurowanie powiadomień
          • Zarządzanie powiadomieniami
          • Najlepsze praktyki
          • Rozwiązywanie problemów
        • Custom Filters
        • Groups, Users and Permissions
          • Użytkownicy
            • Modyfikowanie szczegółów użytkownika
            • Uprawnienia administratora
          • Podorganizacje
            • Jak utworzyć Podorganizację
          • Grupy i Uprawnienia
            • Cel i zastosowanie
            • Dodawanie/Edytowanie Grup
            • Aktywacja uprawnień
            • Kontrola Dostępu
            • Rozwiązywanie problemów
        • Integracja
          • API Calls and Examples
        • Pulpit
      • Document Processing
        • Documents Expiry
        • Import
        • Menedżer Reguł
        • Ocr Settings
        • Classification And Extraction
          • Ekstrakcja tabeli dla elementu kosztowego
          • Automatyczne wyodrębnianie kodu podatkowego
        • Master Data Lookup
        • List Of Values
        • Export
        • Module
          • Tryb adnotacji
          • Approval Before Export
          • Doc Scan
          • Doc Script
          • IDM ACL Updater
          • Swiss QR Code
        • Drzewa Decyzyjne
      • Log Settings
        • Zarządzanie Zadaniami
        • Synchronizacja Danych
      • Licencje API
      • Ustawienia Dostawcy
        • Ustawienia ogólne dostawcy
        • Edytowanie szablonów e-maili
        • Konfiguracja eksportu dla Supplier Portal dla M3
      • Zarządzanie pamięcią podręczną
    • Workflow
      • When
        • Card description
        • Document Operator for Sub-Organizations
        • Document Type Operation
      • And
        • Assigned User Condition
        • Checkbox Field Condition
        • Checkbox
        • Combined Price of Quantity Difference
        • Compare two fields
        • Compare with Purchase Order
        • Confirmed Delivery Date
        • Docfield is
        • Document Field Comparison
        • Document Field
        • Document Status Condition List
        • Document Type Operation one of
        • In Order Confirmation Purchase Order
        • Single Assigned User Condition
        • Single Document Status Condition
        • Supplier on Invoice
        • Text in field
        • Unit Price Combined with Fields
      • Then
      • Workflow Description: Conditional Export Trigger
      • Workflow Documentation
      • Standard Workflow
        • Above Max Amount
        • Cost Invoice - Export
        • Less than Max Amount
        • Purchase Invoice - 2nd Approval Quantity Export
        • Purchase Invoice - 2nd Approval Quantity
        • Purchase Invoice - 2nd Approval Unit Price Export
        • Purchase Invoice - 2nd Approval Unit Price
      • Material Ordering and Processing Workflow
    • Setup
      • Document Types
        • EDI Data Transformation Process
        • Layout Builder
        • Origin Layouts
        • Regex Manager
      • Document Training
        • Training Header Fields
        • Training Line Fields/Table Training
          • Adding New Columns
          • Advanced Settings
          • Defining Tables and Columns
          • Grouping Function
          • Manual Row Selection
          • Mapping Columns
          • Save and Delete Rules
      • SSO Configuration
      • Testing
        • PO Matching
        • Auto Accounting
          • LN
          • M3
      • Portal Dostawcy
      • Instalacja WatchDog
  • Integracja i konfiguracja Infor
    • Importing Master Data
      • Field Mappings
      • LN
        • Auto Accounting
        • Suppliers and Purchase Orders
        • Tax Codes
      • M3
        • Auto Accounting
        • Suppliers and Purchase Orders
        • Ekstrakcja tabeli dla elementu kosztowego
    • Exporting in DocBits
      • Export Module
    • Exporting to INFOR
      • Creating a BOD Mapping File
      • Tworzenie pliku mapowania IDM
      • Creating an ION API Endpoint
      • Creating an ION API File
      • Export to M3 Mapping (API)
      • Exporting to IDM
      • M3
        • M3 Configuration
      • LN
        • Eksportuj Kody Podatkowe do LN
        • LN Configuration
  • Zaawansowane funkcje i narzędzia
    • Skrypty w DocBits
      • Calculating Total Charges Script for Docbits
      • Calculating Total Charges Script for Docbits
      • Delete lines with empty quantity and amount
      • Formatting Export Certificate Reference Numbers Script for Docbits
      • Funkcje
      • Generating Extended Invoice Numbers Script for Docbits
      • Generating Extended Invoice Numbers Script for Docbits
    • Postman for DocBits
    • Importowanie danych dostawcy i zamówień zakupu do DocBits z plików CSV
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
Export as PDF
  1. Administracja i konfiguracja
  2. Setup
  3. Document Types

EDI Data Transformation Process

PreviousDocument TypesNextLayout Builder

Last updated 1 year ago

Was this helpful?

Step 1: Structure Descriptor

  • Format: JSON

  • Purpose: This step involves defining the structure of the EDI data. It includes specifying segments such as SAC, N1, and PO1, and details the fields contained within each segment. For segments that contain nested structures, loops are defined to properly organize the data hierarchy.

{
  "SAC": {"fields": ["SAC", "DTM", "TX1", "TD5"]},
  "N1": {"fields": ["N1", "N2", "N3", "N4", "PER"]},
  "PO1": {
    "fields": ["PO1", "REF"],
    "loops": {
      "SAC": {"fields": ["SAC", "TX1", "DTM"]}
    }
  }
}

Step 2: Transformation Using XSLT

  • Format: XSLT

  • Purpose: This step involves transforming the structured JSON data into a structured XML format, specifically tailoring the output to meet the requirements for further processing or integration. This transformation helps in extracting precise information like acknowledgement types, order details, and conditional elements based on specific values.

<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" />
    <xsl:template match="/">
        <ORDER_CONFIRMATION>
            <ACKNOWLEDGEMENT_TYPE>
                <xsl:value-of select="//BAK/VALUE_2/text()" />
            </ACKNOWLEDGEMENT_TYPE>
            <ACKNOWLEDGEMENT_TYPE_DESCRIPTION>
                <xsl:choose>
                    <xsl:when test="//BAK/VALUE_2='AD'">With detail, no change</xsl:when>
                    <xsl:when test="//BAK/VALUE_2='AC'">With detail and change</xsl:when>
                    <xsl:otherwise>Unknown</xsl:otherwise>
                </xsl:choose>
            </ACKNOWLEDGEMENT_TYPE_DESCRIPTION>
            <!-- Additional fields and conditions are similarly transformed -->
        </ORDER_CONFIRMATION>
    </xsl:template>
</xsl:stylesheet>

Step 3: Preview (HTML Conversion)

  • Format: XSLT (outputting HTML)

  • Purpose: Converts the XML data from Step 2 into an HTML format for previewing the transformed data in a readable and visually appealing format. The HTML layout includes styles for presentation and structures data like purchase orders, supplier details, and order terms for easy viewing.

<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" />
    <xsl:template match="/">
        <html lang="en">
            <head>
                <meta charset="UTF-8" />
                <meta name="viewport" content="width=device-width, initial-scale=1.0" />
                <title>Preview of Transformed EDI Data</title>
                <!-- Styles and head elements -->
            </head>
            <body>
                <div>
                    <!-- HTML structure mimicking an invoice or other document type, with data bindings from the transformed XML -->
                </div>
            </body>
        </html>
    </xsl:template>
</xsl:stylesheet>

Step 4: Extraction Paths

  • Format: JSON

  • Purpose: Specifies JSON paths for extracting key values from the XML data produced in Step 2. These paths are used to retrieve specific data points such as purchase orders and currency, which are crucial for downstream processing and integration into other systems.

{
  "fields": {
    "purchase_order": "//ORDER_CONFIRMATION/PURCHASE_ORDER/text()",
    "currency": "//ORDER_CONFIRMATION/CURRENCY/text()",
    ...
  },
  "tables": [
    {
      "name": "ORDER_CONFIRMATION_TABLE",
      "row_path": "//ORDER_CONFIRMATION/ORDER_LINES/ORDER_LINE",
      "columns": [
        {"name": "POSITION", "path": "POSITION/text()"},
        ...
      ]
    }
  ]
}

This updated sequence ensures a thorough process, transforming raw EDI data into structured, actionable information using JSON for data structuring, XSLT for transformation and HTML preview, followed by JSON paths for data extraction and integration.