Enable Automatic Batches

Enable Automatic Batches

Use these members listed below in the 5MOD library as your starting source to automatically build batches by BUYR/LOCN. If you do not find these members in 5MOD, clone from ZZZ.

  • K3S_ABTCL - Automatic batches: close old & bld new. This is the ‘driver’ of the process.

  • K3S_ABTBLD - Auto ABT batches: build list of batches to build in K_AUTOBCH

  • K3S_ABTCLO - Auto ABT batches: close old automatic batches

  • K3S_ABTFND - Auto ABT batches: develop parms of new batches to build

Suggestion to replace ABT in the program names with the 3 letter code of the batches that will be built automatically.

Example: if the customer wants automatic overstock (OVR) batches we would call the programs

  • K3S_OVRCL
  • K3S_OVRBLD
  • K3S_OVRCLO
  • K3S_OVRFND

Determine what will trigger the process to create the batches. Typically it will be the last exit point of the night job K3S_X310CL.

Add an entry in the ABT tablecode group for the batch to be automatically created.

TA_CODEDS2 (Description 2) = Button label
TA_FLAG1 (Flag1) = 1 The button will show on the main screen.
TA_FLAG2 (Flag2) = 1 The individual batch will not use location filter.
TA_FLAG3 (Flag3) = 1 We will only display a batch to the user if it matches the user on the batch.

Important!!!

Program K3S_ABTBLD sets the user of the batch AB_USER = AUTOBATCH versus the user attached to the buy group. If you use this method, you will need to create a REPUSER for AUTOBATCH and add a UPD tablcode record for AUTOBATCH. This UPD tablecode tells the program building the batches which user and system status codes to include.

When you use the user attached to the buy group, you could run into the situation where a user has set to bypass specific status codes and the number of products selected for the batch does not match what you expect.