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.
-
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 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.
-
account number = lookup tpid_O_SHIPTO
-
write N1ST - N1^ST^^91^account number
-
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
-
-
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 -
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.
-
shipto_gln
if no shipto_gln, shipto_gln = lookup L1_SHIPTO_GLN with shipto location. if shipto_gln, write N1^ST^^UL^shipto_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 -
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
-
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
-
-
if company_gln, write N1^BT^^UL^company_gln
-
if vendor_gln, write N1^VN^^UL^vendor_gln
-
if purchfrom_gln, write N1^SE^^UL^purchfrom_gln