eDoc App Online Help

Setup Guide

Preparation

Please check in advance whether you have the necessary authorization for the eDoc setup (authorization set BRAG EDOC INTERFACE)!

On-Premise Installation: Please check whether the module has been added to your customer license. The assignment of the app is done by the responsible Microsoft partner. The module name is: 5518500 brAG ZUGFeRD Interface.

Step 1: App Setup Settings for BC (Cloud and On-Premise)

After installation, for BC Cloud and BC On-Premise, the checkbox Allow HttpClient requests must be set in the app's extension settings!

To do this, open the Extension Management:

eDoc_Erweiterungsverwaltung.png
Extension Management

Then search among the installed extensions for the app brAG eDoc App:

eDoc_Installierte_Erweiterungen.png
Installed Extensions

Then set the checkbox Allow HttpClient requests:

eDoc_Erweiterungsverwaltung_02.png
Extension Settings

Step 2: Initialization

For initialization, the Dynamic Page setup, Demo setup, Job Queue initialization, and Electronic Transfer must be executed once.

setupguide_02.png
eDoc Setup

Dynamic Page Setup Initialization of the Dynamic Page (Dynamic request page for entities and fields, containing control parameters for outbound mapping).

Demo Setup Fills all fields relevant for inbound and outbound in the 'General' tab.

Initialize Job Queue (since version 5.5) Initialization of the task queue; necessary for batch processing

Electronic Transfer Initialization of the Endpoint Mgmt. (Electronic document format, document send profiles, eDoc endpoints, eDoc customer endpoints)

Step 3: Import eDoc Default Mapping

Creation or update of the initial mapping. In addition to the profiles, the data records necessary for the mapping are processed.

  • eDoc Codes

  • Transformation Rules

  • Custom Fields

  • Custom Field Mapping

  • eDoc Profiles

  • eDoc Profile Lines

  • eDoc Profile Mapping

setupguide_03.png
eDoc Setup
setupguide_03_01.png
Note: Import eDoc Default Mapping

Cancel The operation will be aborted, no data records will be imported.

Delta Import Recommended. The delta import adds new records; existing records in the above tables are not changed.

Full Import The full import deletes the records before importing.

eDoc Code List Mapping

Within electronic data exchange, codes from defined code lists are used for certain
information. These follow
UN/ECE Recommendation No. 20 and UN/ECE Recommendation No. 21.
For example, the standard code (H87) in BC corresponds to the
unit of measure piece.

eDoc_Codeliste.png
eDoc Code List

You can find the corresponding lists here:

Source: https://unece.org/trade/uncefact/cl-recommendations

eDoc Profile Mapping

In some e-invoice formats (especially ZUGFeRD or XRechnung), the field IncludedNote is available. IncludedNote is used to transmit additional textual information directly in the electronic invoice. These are free text fields where specific notes, comments, or important remarks can be entered that are relevant for processing or the legal validity of the invoice.

This information includes, among others:

  • AAI (General Information): Important general notes that apply to the entire invoice.

  • SUR (Seller's Notes): Additional comments or explanations from the seller, e.g., special conditions or agreements.

  • REG (Regulatory Information): Notes on regulations or legal requirements.

  • ABL (Legal Information): Details on legal matters, such as contract terms or liability clauses.

  • TXD (Tax Information): Tax-relevant notes, such as specific tax regulations or exemptions.

  • CUS (Customs Information): Details for customs-relevant processes, e.g., export or import regulations.

The assignment is located in the respective eDoc profile mapping.

The complete code list is specified in UNTDID 4451: UNTDID 4451 - Free Text Fields

Step 4: Setup

General Setup

Here you must now customize MS Account No., Service Token, Invoice Email Recipient to your customer-specific settings.

Screenshot

The following fields must be entered here:

  • MS Account No. Required for transmission to the web service.

  • Service Token You receive this from bartolome röder AG.

  • Invoice Email Recipient Email for identification at the web service

Step 5: Task Queue and Batch Processing Inbound

To use the inbound batch processing, initialize the Job Queue if not already done. To do this, click under Setup/General/eDoc Setup

eDoc_JobQ_Initialsieren_01.png

on Initialize

eDoc_JobQ_Initialsieren_02.png
eDoc Setup

and then on Initialize Job Queue, see screenshot.

eDoc_JobQ_Initialsieren.png
eDoc Setup

The following 5 entries are created in the list 'Task Queue Entries' :

  • EDOC-IMPORT-FILESYSTEM Reads a file from the file system. Not available in the cloud!

  • EDOC-IMPORT-ONEDRIVE Reads a file from OneDrive.

  • EDOC-VERIFICATION Checks an eDoc (intermediate document)

  • EDOC-CREATION Creates the BC document

  • EDOC-ARCHIVE Archives an eDoc

See also The Inbound Process

To configure or activate these batch jobs, first switch to the menu 'Task Queue Entries'

Then click on the entry you want to edit

eDoc_BatchJobs.png
Task Queue Entries

and switch to the corresponding card

eDoc_BatchJobsKarte.png
Card for Task Queue Entry

To activate the batch job, set status to 'Ready' and click

eDoc_BatchStarten.png
Card for Task Queue Entry

OneDrive Integration

The eDoc app provides an integration with OneDrive. A prerequisite is an app registration in Microsoft Azure / Microsoft Entra.

The following steps are necessary:

  • Perform app registration

  • Execute OneDrive initialization in BC

Creating an App Registration

Create a permission for your OneDrive application in MS Azure. Microsoft HowTo Configure OneDrive Integration with BC

The following data from the app registration is used in the OneDrive setup:

  • Tenant ID Your tenant ID

  • Application ID of the app registration

  • ClientSecret value of the generated client key

Setting up the OneDrive Integration

  1. In the eDoc app, go to the OneDrive Setup page (Setup/File Systems/OneDrive Setup)

  2. Click 'new entry' in the page menu

  3. Fill in the following fields:

    1. SharePoint URL URL of your SharePoint application e.g. https://contoso.sharepoint.com/

    2. Azure Tenant ID Your Azure tenant ID

    3. Client ID Application ID of the app registration

    4. Client Secret

  4. Run the function 'Initialize OneDrive'. This function checks the login and creates the subdirectory 'EDOC' in the root directory and further subdirectories 'OK' and 'ERROR'. After successful initialization, the fields under 'OneDrive Directories' are filled.

  5. Check in OneDrive whether the directories were created properly.

  6. Check whether the job 'EDOC-IMPORT-ONEDRIVE' exists in the task queue entries. If necessary, perform the Initialization of the Task Queue again.

  7. Schedule the job 'EDOC-IMPORT-ONEDRIVE' according to your requirements.

Regularly monitor the Error directory!

The following screenshot shows a successful configuration.

OneDrive_Setup.png
OneDrive Setup


Last updated: