Description: Exit Point for SOQ change There is an exit point available when a buyer changes an SOQ (Suggested order quantity) on the K3S_1040 screen. This is controlled by an APP record in the K_TABLCOD file. To get to the APP record, start at the K3S Main Menu and take option 9. Operations, then option 3. Table codes, then use 1=Select on the very first Type called APP - Applications Control. Roll down until you see K3S_1040 SOQ_CHANGE with text of Exit point for SOQ change? Use 2=Change on the record and then change the Flag 1 value from 0=OFF to 1=ON. This turns the feature to ON. Now whenever the buyer makes a change to the Suggested Order Quantity on screen K3S_1040, an exit point occurs and the K3S_1040 program calls the following CL program with PARMs: c call 'K3S_1040X2' c parm lda_comp c parm pq_buyr c parm pq_locn c parm pq_supl c parm pq_suplsub c parm prod c parm pq_soqact You'll find the source for this CL program K3S_1040X2 in library K3S_5MOD. Your RPG program can decide if indeed you need special processing to occur or not, since changing the APP record ON (Flag1 to 1) will mean we exit to this program anytime a buyer makes an SOQ change, not just for a new product. |

