Daytime Add Of A New Product

To enable the daytime add of new products you will need to work with the customer to send the K_INTPRDD file.

  • K_INTPRDD is a mirror of K_INTPROD. The differences are that K_INTPRDD is only used in the daytime on an as needed basis, the prefix is IY_, and only new products added to your system today are eligible to be written to the file (ie if a product is in K_INTPROD it is not eligible to go into K_INTPRDD). K_INTPROD is only used in the night process and the prefix is IP_.

  • Map the data to K_INTPRDD the same way it would be written to K_INTPROD.

  • Clear K_INTPRDD at the start of each day

  • K_INTPRDD will not be removed from the exchange site; replace the existing file sitting there.

  • The customer will create a way for the user to initiate the build of K_INTPRDD and the send of K_INTPRDD from their server to the interface folder at the exchange site.

  • If the process is initiated multiple times on the same day, add the new records on to the existing data, and send the new version of K_INTPRDD to the exchange site (ie do not clear K_INTPRDD each time the process is initiated; only clear K_INTPRDD at the start of a new day).

From the K3S side, do the following:

  • Enable the button ‘Get from Host System’ to appear by setting TA_FLAG1 = 1 where TA_CODETYP = BTN and TA_CODEVAL = GETHOST.

  • Have the button point to the proper program/library by setting TA_CODEDS2 = K3S_9028CL and TA_CODEDS3 = the customer’s 5MOD library where TA_CODETYP = UEX and TA_CODEVAL = AR_GETADPR.

  • Copy the source for these objects from the ZZZ repository if they do not exist. If they do exist, overwrite the existing code with the code from ZZZ. Replace ZZZ with the customer’s 3 letter code where applicable:

  1. I_INTPRDD.PF

  2. K3S_9028.CLLE

  3. QSH_GETDAY.CLLE

  4. K3S_9028.RPGLE

  5. K3S_DAYFND.RPGLE

  • Create the IFS script for ‘getDay’ to pull the K_INTPRDD.CSV file. This script is typically located at: /k3sapps/ZZZ/scripts/getDay