Inbound
For inbound processing, this is the process decision tree:
No GLN
This is the existing functionality. Only vendor assigned account numbers are used.
-
If N1 segment with N103 = 91 or 92
-
account number = N104 from N1^ST^^91^account number
-
company = lookup tpid_I_COMPANY with account number.
-
vendor = lookup tpid_I_VENDOR with account number.
-
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.
-
If N1 segment with N103 = 91 or 92
-
account number = N104 from N1^ST^^91^account number
-
company = lookup tpid_I_COMPANY with account number.
-
vendor = lookup tpid_I_VENDOR with account number
-
other substitutions available depending on transaction.
-
-
If N1 segment with N103 = UL
-
if N102 = ST or DA
-
shipto_GLN = N104
-
if no shipto_location, shipto_location = lookup L1_SHIPTO_GLN with shipto_GLN
-
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.
-
If N1 segment with N103 = UL
-
if N102 = ST or DA
-
shipto_location = lookup L1_SHIPTO_GLN with N104
-
if no company, company = lookup L1_COMPANY_GLN with N104
-
-
if N102 = BT
-
company = lookup L1_COMPANY_GLN with N104
-
-
if N102 = VN
-
vendor = lookup L1_VENDOR_GLN with N104
-
-
if N102 = SE
-
purch from = lookup L1_purch from_GLN with N104
-
-
if N102 = RE
-
remit to = lookup L1_remit to_GLN with N104
-
-
L1_I_USE_GLN = O
With this option, GLNs will be directly mapped to the interface file; no lookups will be performed; no Lawson ID values will be mapped.
-
If N1 segment with N103 = UL
-
if N102 = ST or DA
-
shipto_GLN = N104
-
-
if N102 = BT
-
company_GLN = N104
-
-
if N102 = VN
-
vendor_GLN = N104
-
-
if N102 = SE
-
purch from_GLN = N104
-
-
if N102 = RE
-
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.