When you have a new item number replacing an old item number and you would like to copy the history, you can use our K_PRODLNK file. Because a user can take advantage of our 'Change Product Source' function and move products under a different supplier number in K3S compared to your host system, we will use program K3S_LNKBEF and K3S_LNKAFT to help populate the 'from' and 'to' supplier fields. The steps to set this up are: 1) Write records to file K_PRODLNK There are several important components required to make the automatic history copy via K_PRODLNK work: Place 10 asterisks (**********) into fields PK_FRMSUPL, PK_FRMSUB, PK_TO_SUPL, and PK_TO_SUB Set PK_TRANSTS = 0 Set PK_TYPE = 'C' Click on this link to get more information about how to populate the other fields in file K_PRODLNK 2) Have program K3S_5MOD/K3S_NIGHT call program K3S_LNKBEF. Remember to compile this into our K3S_ACTG_5 activation group. This program will populate the PK_FRMSUPL and PK_FRMSUB fields. 3) Have program K3S_5MOD/K3S_X145CL call program K3S_LNKAFT. Remember to compile this into our K3S_ACTG_5 activation group. This program will populate the PK_TO_SUPL and PK_TO_SUB fields. |