Outbound

For outbound processing, the process decision tree is as follows:

No GLN

This is the existing functionality. Vendor assigned account number is used, GLNs will not be used.

  1. account number = lookup tpid_O_SHIPTO

  2. write N1ST - N1^ST^^91^account number

L1_O_USE_GLN = B

Both vendor assigned account numbers and GLNs are used. If a GLN does not exist in the interface file, a substitution lookup is performed using the appropriate Lawson id value to get the matching GLN.

  1. account number = lookup tpid_O_SHIPTO

  2. write N1ST - N1^ST^^91^account number

  3. shipto_gln

    if no shipto_gln,

    shipto_gln = lookup L1_SHIPTO_GLN with shipto location.

    if shipto_gln,
    • if N1ST segment exists write N1^DA^^UL^shipto_gln

    • if N1ST segment does not exist write N1^ST^^UL^shipto_gln

  4. company_gln

    if no company_gln, company_gln = lookup L1_COMPANY_GLN with company location.
    if company_gln, write N1^BT^^UL^company_gln
  5. vendor_gln

    if no vendor_gln vendor_gln = lookup L1_VENDOR_GLN with vendor location.
    if vendor_gln, write N1^VN^^UL^vendor_gln
  6. purchfrom_gln

    if no purchfrom_gln, purchfrom_gln = lookup L1_PURCHFROM_GLN with purchfrom location.
    if purchfrom_gln write N1^SE^^UL^purchfrom_gln

L1_O_USE_GLN = L

Vendor assigned account numbers will not be used. Substitution lookups are performed using the appropriate Lawson id value to get the matching GLN.

  1. shipto_gln

    if no shipto_gln, shipto_gln = lookup L1_SHIPTO_GLN with shipto location.
    if shipto_gln, write N1^ST^^UL^shipto_gln
  2. company_gln

    if no company_gln, company_gln = lookup L1_COMPANY_GLN with company location.
    if company_gln, write N1^BT^^UL^company_gln
  3. vendor_gln

    if no vendor_gln vendor_gln = lookup L1_VENDOR_GLN with vendor location.
    if vendor_gln, write N1^VN^^UL^vendor_gln
  4. purchfrom_gln

    if no purchfrom_gln, purchfrom_gln = lookup L1_PURCHFROM_GLN with purchfrom location.
    if purchfrom_gln write N1^SE^^UL^purchfrom_gln

L1_I_USE_GLN = O

This usage is only valid for customer with 9.0.1.4 Lawson Applications or 9.0.1.3 with CTP's applied. With this option, GLNs are directly mapped to the ASC X12 file; no lookups are performed; no Lawson id values are mapped.

L1_O_USE_GLN = B or L or O

  1. if shipto_gln

    • if there is an N1^ST^^91^account_number, write N1^DA^^UL^shipto_gln

    • else write N1^ST^^UL^shipto_gln

  2. if company_gln, write N1^BT^^UL^company_gln

  3. if vendor_gln, write N1^VN^^UL^vendor_gln

  4. if purchfrom_gln, write N1^SE^^UL^purchfrom_gln