‎2009 Dec 04 10:09 AM
Hi.
I need to create dynamic date range in ECC5.0 for variant, Low value previous day and Hight value is Current day . When I am creating only Low value is coming and High value is not comming. Please suggest how can i get High value for selection option .
Thanks in advance,
Regards,
Ramprasad
‎2009 Dec 04 10:21 AM
Hello Ramprasad,
You cannot assign multiple values using the dynamic variant calculation.
SAP documentation says:
The field SELECTION OPTIONS is only supported for date variables that supply select options and assign single values to them.
I think J@y's solution is best suited for your req.
BR,
Suhas
‎2009 Dec 04 10:12 AM
can have this code in intialization
read table sel_opt into wa_opt index 1.
if sy-subrc eq 0.
wa_opt-high = sy-datum.
wa_opt-low = date_wanted. "(= sy-datum - 1 )
append wa_opt to sel_opt.
endif.
‎2009 Dec 04 10:21 AM
Hello Ramprasad,
You cannot assign multiple values using the dynamic variant calculation.
SAP documentation says:
The field SELECTION OPTIONS is only supported for date variables that supply select options and assign single values to them.
I think J@y's solution is best suited for your req.
BR,
Suhas
‎2009 Dec 04 10:31 AM
Hi,
You can create a variant and and atatch to your program. This variant can be made to calculate the dates dynamically.
‎2010 Apr 11 5:08 PM
Hello Shivkumar ... Please give your answers in detail. Don't answer just vaguely . Thanks