Inbound

For inbound processing, this is the process decision tree:

No GLN

This is the existing functionality. Only vendor assigned account numbers are used.

  1. If N1 segment with N103 = 91 or 92

    1. account number = N104 from N1^ST^^91^account number

    2. company = lookup tpid_I_COMPANY with account number.

    3. vendor = lookup tpid_I_VENDOR with account number.

    4. other substitutions available depending on transaction.

L1_I_USE_GLN = B

If GLN usage is set to Both, both Lawson id values and GLNs will be written to the interface file. For customers not on 9.0.1.4, the GLNs will not be written to the interface file.

  1. If N1 segment with N103 = 91 or 92

    1. account number = N104 from N1^ST^^91^account number

    2. company = lookup tpid_I_COMPANY with account number.

    3. vendor = lookup tpid_I_VENDOR with account number

    4. other substitutions available depending on transaction.

  2. If N1 segment with N103 = UL

    1. if N102 = ST or DA

      1. shipto_GLN = N104

      2. if no shipto_location, shipto_location = lookup L1_SHIPTO_GLN with shipto_GLN

      3. if no company, company = lookup L1_COMPANY_GLN with shipto_GLN

L1_I_USE_GLN = L

If GLN usage is set to Lookup, only GLNs will be used to lookup Lawson id values; only Lawson id values will be written to the interface file; GLNs will not be written to the interface file.

  1. If N1 segment with N103 = UL

    1. if N102 = ST or DA

      1. shipto_location = lookup L1_SHIPTO_GLN with N104

      2. if no company, company = lookup L1_COMPANY_GLN with N104

    2. if N102 = BT

      1. company = lookup L1_COMPANY_GLN with N104

    3. if N102 = VN

      1. vendor = lookup L1_VENDOR_GLN with N104

    4. if N102 = SE

      1. purch from = lookup L1_purch from_GLN with N104

    5. if N102 = RE

      1. remit to = lookup L1_remit to_GLN with N104

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 will be directly mapped to the interface file; no lookups will be performed; no Lawson id values will be mapped.

  1. If N1 segment with N103 = UL

    1. if N102 = ST or DA

      1. shipto_GLN = N104

    2. if N102 = BT

      1. company_GLN = N104

    3. if N102 = VN

      1. vendor_GLN = N104

    4. if N102 = SE

      1. purch from_GLN = N104

    5. if N102 = RE

      1. remit to_GLN = N104

L1_O_USE_GLN = B or L or O

If GLN usage is set to B, L, or O, GLNs will be written into the interface file in their appropriate position.