DocBits- IDP for Infor ERP
HomeAppStatusAPI
🇩🇪 Deutsch
🇩🇪 Deutsch
  • Grundlagen und Überblick
    • DocBits
      • Hauptmerkmale von DocBits
    • Architektur
      • DocBits Infor On-Premise-Kunde
      • Zertifizierungen
    • Infor Infrastruktur
    • Release-Notizen
  • Endnutzer und Partner Bereich
    • Endbenutzer Abschnitt
      • Dashboard
        • Dashboard-Tools
        • Dokumentenzusammenführung
        • Dokumentenstatus
        • Dokumente filtern
        • Übersicht der hochgeladenen Dokumente
        • Aufgabenzähler
        • Validierte extrahierte Felder
        • Dokument-Flow
        • Best Practice
        • Tastenkombinationen
      • Aufgaben
      • Advance Shipment Dashboard
      • Dashboard für Bestellungen
      • Dashboard für Rechnungen
      • Shipment Order Dashboard
      • Benutzerkonfigurationsoptionen
      • AI-Tabelle
        • AI-Tabellen-Tags
      • Validierungsbildschirm
        • Unscharfe Daten
        • QR-Codes
        • Tastenkombinationen
      • Zweck und Verwendung
      • Bestellabgleich
        • Automatischer Bestelldatenabgleich
        • Lieferanten-Artikelnummern-Zuordnung
        • Tastenkombinationen
      • Buchhaltung für Kostenrechnungen und indirekte Verkäufe
      • Wie man Dokumente importiert
        • FTP
        • Manueller Import
        • Webhook
        • E-Mail
          • IMAP
          • OAuth Office365
      • Technischer Support in DocBits
        • Ticket erstellen
        • Hilfe-Symbole
      • Kurs
        • Einführung
        • Dashboard
        • Validierte Dokumente
        • AI-Tabelle
        • Master-Bestellabgleich mit DocBits
      • Unser Dokumenten-Prioritätssystem
      • Lieferantenportal
        • Lieferantenregistrierung
        • Lieferantenstatus
      • Ressourcen und Support
        • Benutzersupport
    • Partnerbereich
      • Rechnungsautomatisierungstests mit DocBits
  • Administration und Einrichtung
    • Einstellungen
      • Globale Einstellungen
        • Firmeninformationen
        • Gruppen, Benutzer und Berechtigungen
          • Benutzer
            • Benutzerdetails bearbeiten
            • Admin-Privilegien
          • Unterorganisationen
            • Wie man eine Unterorganisation erstellt
          • Gruppen und Berechtigungen
            • Zweck und Verwendung
            • Gruppen hinzufügen/bearbeiten
            • Berechtigungen aktivieren
            • Zugangskontrolle
            • Fehlerbehebung
        • Best Practices
        • Integration
          • API-Schlüssel
          • API-Aufrufe und Beispiele
          • API-Schlüsselverwaltung
          • Konfiguration von Single Sign-On (SSO)
          • Konfiguration des Identitätsdienstanbieters
          • Best Practices
          • Fehlerbehebung bei häufigen Problemen
        • Dokumenttypen
          • Layout Manager
            • Navigieren im Layout-Manager
          • Document Sub Types
          • Table Columns
          • Fields
            • Hinzufügen und Bearbeiten von Feldern
          • Model Training
          • Regex
          • Script
          • EDI
          • Weitere Einstellungen
            • Zweck und Verwendung
            • Best Practices
            • Fehlerbehebung
            • Erkennung von doppelten Dokumenten
            • Genehmigungsstempel
            • Lieferantenartikelnummernkarte - Administrationsdokumentation
            • Einstellungen zur Toleranz von Bestellungen / Zusätzliche Toleranz für Bestellungen
            • Bestellung deaktivieren Status
            • Auftragstabelle im Layout-Builder
            • Automatische Prüfung auf PO-Aktualisierungen
            • Berechnung des PO-Einzelpreises
            • Export nicht übereinstimmender PO-Zeilen
          • e-docs
            • e-SLOG 1.6 und 2.0
        • Email Notification
        • Custom Filters
        • Integration
          • API Calls and Examples
        • Dashboard
      • Dokumentenverarbeitung
        • Dokumentenablauf
        • Import
        • Regelmanager
        • Ocr Settings
        • Klassifizierung und Extraktion
          • Tabellenextraktion für Kostenelemente
          • Automatische Erfassung des Steuercodes
        • Master Data Lookup
        • List Of Values
        • Export
        • Module
          • Anmerkungsmodus
          • Approval Before Export
          • Doc Scan
          • Doc Script
          • IDM ACL Updater
          • Swiss QR Code
        • Entscheidungsbäume
      • Log Einstellungen
        • Aufgabenverwaltung
        • Daten Synchronization
      • API Lizenzen
      • Lieferanten Einstellungen
        • Generelle Lieferanten Einstellungen
        • Email Vorlagen editieren
        • Export Konfiguration für Lieferanten Portal M3
      • Cache Management
    • 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
      • Testing
        • PO Matching
        • Auto Accounting
          • LN
          • M3
      • Lieferantenportal
      • WatchDog Installation
      • SSO Configuration
  • Infor Integration und Konfiguration
    • Importing Master Data
      • Field Mappings
      • LN
        • Auto Accounting
        • Suppliers and Purchase Orders
        • Tax Codes
      • M3
        • Auto Accounting
        • Suppliers and Purchase Orders
        • Tabellenextraktion für Kostenelemente
    • Exporting in DocBits
      • Export Module
    • Exporting to INFOR
      • Creating a BOD Mapping File
      • Erstellen einer IDM-Mapping-Datei
      • Creating an ION API Endpoint
      • Creating an ION API File
      • Export to M3 Mapping (API)
      • Exporting to IDM
      • M3
        • M3 Configuration
      • LN
        • Exportieren von Steuercodes nach LN
        • LN Configuration
  • erweiterte funktionen und werkzeuge
    • Scripting in 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
      • Funktionen
      • Generating Extended Invoice Numbers Script for Docbits
      • Generating Extended Invoice Numbers Script for Docbits
    • Postman for DocBits
    • Importieren von Lieferanten- und Bestelldaten in DocBits aus CSV-Dateien
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
Export as PDF
  1. Administration und Einrichtung
  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.