QBatch

How to Setup Selected Product Review Batch of Type Qxx

K3S has the capability for each customer to develop up to 99 customized Selected products review batches with type Q01 through Q99.

This is accomplished by setting up a tablecode record for the next sequential Q batch type and then developing an RPG program to pick out the products that fit the criteria for each batch. Follow the steps below.

  1. Create a tablecode record the next sequential Q batch type under batch type Selected records review types (TA_CODETYP = SPR).

Set the table code value (TA_CODEVAL) to the next sequential batch number, using the format of Q01-Q99.

Set Flag 1 (TA_FLAG1) to 1=ON.

Set the description 1 (TA_CODEDS1) to the description of the batch.

Set the description 2 (TA_CODEDS2) to one of the following letter codes from the table below to choose the default program type that users will go to when they are looking at products in the batch. This is a green screen setting that does not relate to the GUI. However it is still required to make a selection.

A = K3S_8000 - All locations for a product

D = K3S_1040 - Orders - Product Detail screen

H = K3S_3030 - Product History screen

P = K3S_3000 - Product Maintenance

W = K3S_3431 - Weekly Distribution

2.For each new Qxx batch type you will need to generate a corresponding RPG program with the name K3S_3Qxx. You will find the program K3S_3Q01 in library ZZZ_5MOD as a deafult source for the type Q01 to find products that are Out of stock and none on order. This program will serve as a template for you to create other Qxx batch types. The incoming parms to the program cannot be changed. By default the program will read through the product file. You determine the criteria to select a product for the batch. You can add additional files and logic as needed. When a product passes the test to be put into a batch, turn the ‘takeprod’ flag *ON.