Problem Description
Detail section records:
Item store salesdate price price_eff_dt price_exp_dt
001 003 23-Apr-2006 $1.0 1-Oct-2005 30-Dec-2005
001 003 23-Apr-2006 $1.5 1-Apr-2006 30-Apr-2006
001 003 23-Apr-2006 $2.5 1-Apr-2006 NULL
001 003 23-Apr-2006 $1.5 1-Aug-2006 30-Sep-2006
Item, store, salesdate, price_eff_dt and price_exp_dt are Table fields.
PRICE is the crystal formula that determines the product price (based on sales date that falls in PRICE_EFF_DT and PRICE_EXP_DT) for that product and store combination.
The requirement now is, once I determine the valid price for a product and store combination (record 2 in the above example), I want to set the price as ZERO for the rest of the records for the SAME PRODUCT & STORE combination.
I tried definining global variable..etc. Nothing really worked for me so far, since its in detail section and the global variables are getting reset.
Any help will be sincerely appreciated.
Thanks, Nansat
Detail section records:
Item store salesdate price price_eff_dt price_exp_dt
001 003 23-Apr-2006 $1.0 1-Oct-2005 30-Dec-2005
001 003 23-Apr-2006 $1.5 1-Apr-2006 30-Apr-2006
001 003 23-Apr-2006 $2.5 1-Apr-2006 NULL
001 003 23-Apr-2006 $1.5 1-Aug-2006 30-Sep-2006
Item, store, salesdate, price_eff_dt and price_exp_dt are Table fields.
PRICE is the crystal formula that determines the product price (based on sales date that falls in PRICE_EFF_DT and PRICE_EXP_DT) for that product and store combination.
The requirement now is, once I determine the valid price for a product and store combination (record 2 in the above example), I want to set the price as ZERO for the rest of the records for the SAME PRODUCT & STORE combination.
I tried definining global variable..etc. Nothing really worked for me so far, since its in detail section and the global variables are getting reset.
Any help will be sincerely appreciated.
Thanks, Nansat