Outbound usage

The usage examples show the ED40 records and the resulting 850 transaction data.

No GLN

List Name GS_O_SHIPTO
Lawson Value LOC1 99A 1067
External Value 768593013

Using no GLNs and the above ED40 _O_SHIPTO record, the output 850 data would contain a single N1ST segment

N1^ST^^91^768593013

GLN Usage "B" and a SHIPTO GLN

List Name L1_O_USE_GLN
Lawson Value GS
External Value B
List Name L1_SHIPTO_GLN
Lawson Value LOC1
External Value 7601000939109

With this L1_O_USE_GLN record and L1_SHIPTO_GLN record the output data would have an N1ST with the vendor assigned account number and an N1DA segment with the GLN.

If using both vendor assigned account numbers and GLNs, the account number is created in an N1ST segment with a "91" qualifier; the GLN is created in an N1DA segment with a "UL" qualifier. GLNs should always be preceded with a "UL" qualifier.

N1^ST^^91^768593013

N1^DA^PO SHIP TO NAME ^UL^7601000939109

Adding a COMPANY GLN

List Name L1_COMPANY_GLN
Lawson Value 1067
External Value 7601000939100

Adding the company GLN Substitution record

Output data would contain an N1BT segment with the company GLN in N104.

N1^ST^^91^768593013

N1^DA^PO SHIP TO NAME ^UL^7601000939109

N1^BT^^UL^7601000939100

GLN usage "L"

List Name L1_O_USE_GLN
Lawson Value GS
External Value L
List Name L1_VENDOR_GLN
Lawson Value 9
External Value 3333333333333

Using an L1_O_USE_GLN record of "L", ( "Lookup" and use GLNs), would create an 850 without the vendor assigned account number. Notice that the GLN is now included in an N1ST segment, not an N1DA.

N1^ST^PO SHIP TO NAME ^UL^7601000939109

N1^BT^^UL^7601000939100

N1^VN^^UL^3333333333333