PO Masking

If your customer requires a PO number on each of their orders and the PO numbers must meet specific constraints (number of characters, PO length, etc.) then you can use CODIS PO masking to insure proper PO number entry during order entry. To force CODIS to prompt for a PO during order entry the customer must be set as such in the Customer Maintenance program, screen #5, line #15.

The accepted validation values you can use in screen #5, line #15 are indicated in the following screen shot.

Add a ‘GS’ (general string) codes record defining the PO mask.  The ‘GS’ codes record should look like the sample in the screen shot.  You can define up to 48 different PO masking schemes (POMASK_1 to POMASK_48).  The example in the screen shot follows the PO masking scheme described in “Example #1″ found after the screen shot.

The rules for PO masking in the ‘GS’ codes record are as follows:
1st character is Length qualifier
= – exact length
(entered po# must be the same length as mask)
< – minimum length
(entered po# can be longer than mask, no
validation is done on characters that are
beyond the mask)
~ – any length
(entered po# can be any length, validation
is only done on characters that are
as long as the mask)

2nd character and beyond is the validation mask
? – alpha-numeric
# – numeric
& – alpha
% – any printable character
Any other character must be an EXACT match

Example#1 – “=8###-&???%” means:
the po must match the EXACT length of 10
chr=1 must be an ’8′
chrs=2,3,4 must be numeric
chr=5 must be ‘-’
chr=6 must be alpha
chrs=7,8,9 must be alpha-numeric
chr=10 can be any printable character
“8123-AZ12$” would be a valid po#

Example#2 – “<?????” means:
the po must be a minimum of 5 characters long
chr=1-5 must be alpha-numeric
chr=6+ can be any printable character
“8123A-Z12$” would be a valid po#

Example#3 – “~###” means:
the po must be supplied, but can be any length
chr=1-3 (if supplied) must be alpha-numeric
chr=4+ can be any printable character
“81″ would be a valid po#

If you were setting a customer to use the PO mask defined in the ‘GS’ codes record above (POMASK_1) then you would place a K1 or KE1 on screen #5, line #15 for the customer in the Customer File Maintenance program.  K1 would validate the PO entered using the PO mask defined in the ‘GS’ codes record at the beginning of the order.  KE1 would validate the PO entered at the end of the order.

This entry was posted in Uncategorized. Bookmark the permalink.