--- title: "Set up EDI setup for legal entity" slug: "set-up-edi-setup-for-legal-entity" tags: ["Task topic"] updated: 2026-03-20T10:14:45Z published: 2026-03-20T17:44:24Z canonical: "docs.staedean.com/set-up-edi-setup-for-legal-entity" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.staedean.com/llms.txt > Use this file to discover all available pages before exploring further. # Set up EDI setup for legal entity Before you can exchange EDI messages, set up the EDI setup for your legal entity. ### Steps 1. Go to **Organization administration** > **Organizations** > **Legal entities**. 2. Click **Edit**. 3. In the list, find and select the desired legal entity. 4. If the GLN code is a bar code, you must define the relevant bar code setup. Usually, the GLN code is a 13-digit number. However, you can also define your own location number. And accordingly, define the related bar code setup. Expand the **EDI setup** section. 5. You can enter the **Global Location Number (GLN code)** of the legal entity. This usually is a unique 13-digit identification of the location of the legal entity. However, you can also define your own location number. In the **Bar code setup** field, enter or select a value. 6. You can enter the Global Location Number (GLN code) of the legal entity. This usually is a unique 13-digit identification of the location of the legal entity. However, you can also define your own location number. In the **GLN code** field, type a value. > [!NOTE] > Note > > You can use a specific **GLN code** but once. If you have set it for a legal entity, you cannot set it for another legal entity as well. 7. Close the page.