Outbound
For outbound processing, the process decision tree is as follows:
No GLN
This is the existing functionality. Vendor assigned account number will be used, GLNs will not be used.
- account number = lookup tpid_O_SHIPTO
- write N1ST - N1^ST^^91^account number
L1_O_USE_GLN = B
Both vendor assigned account numbers and GLNs will be used. If a GLN does not exist in the interface file, a substitution lookup will be performed using the appropriate Lawson ID value to get the matching GLN.
- account number = lookup tpid_O_SHIPTO
- write N1ST - N1^ST^^91^account number
- ship to_GLN
- if no ship to_GLN,
- ship to_GLN = lookup L1_SHIPTO_GLN with ship to location.
- if shipto_GLN,
- if N1ST segment exists write N1^DA^^UL^ship to_GLN
- if N1ST segment does not exist write N1^ST^^UL^ship to_GLN
- if no ship to_GLN,
- company_GLN
- if no company_GLN,
- company_GLN = lookup L1_COMPANY_GLN with company location.
- if company_GLN,
-
write N1^BT^^UL^company_GLN
-
- if no company_GLN,
-
vendor_GLN
-
if no vendor_GLN
-
vendor_GLN = lookup L1_VENDOR_GLN with vendor location.
-
-
if vendor_GLN,
-
i. write N1^VN^^UL^vendor_GLN
-
-
-
purch from_GLN
-
if no purch from_GLN,
-
purch from_GLN = lookup L1_PURCHFROM_GLN with purch from location.
-
-
if purch from_GLN
-
write N1^SE^^UL^purchfrom_GLN
-
-
L1_O_USE_GLN = L
Vendor assigned account numbers will not be used. Substitution lookups will be performed using the appropriate Lawson ID value to get the matching GLN.
-
shipto_GLN
-
if no ship to_GLN,
-
ship to_GLN = lookup L1_SHIPTO_GLN with ship to location.
-
-
if ship to_GLN,
-
write N1^ST^^UL^ship to _GLN
-
-
-
company_GLN
-
if no company_GLN,
-
company_GLN = lookup L1_COMPANY_GLN with company location.
-
-
if company_GLN,
-
write N1^BT^^UL^company_GLN
-
-
-
vendor_GLN
-
if no vendor_GLN
-
vendor_GLN = lookup L1_VENDOR_GLN with vendor location.
-
-
if vendor_GLN,
-
write N1^VN^^UL^vendor_GLN
-
-
-
purch from_GLN
-
if no purch from_GLN,
-
purch from_GLN = lookup L1_PURCHFROM_GLN with purch from location.
-
-
if purch from_GLN
-
write N1^SE^^UL^purch from_GLN
-
-
L1_I_USE_GLN = O
With this option, GLNs are directly mapped to the ASC X12 file. No lookups are performed. No Lawson ID values will be mapped.
L1_O_USE_GLN = B or L or O
-
if ship to_GLN
-
if there is an N1^ST^^91^account_number, write N1^DA^^UL^ship to_GLN
-
else write N1^ST^^UL^ship to_GLN
-
-
if company_GLN, write N1^BT^^UL^company_GLN
-
if vendor_GLN, write N1^VN^^UL^vendor_GLN
-
if purch from_GLN, write N1^SE^^UL^purch from_GLN