‎2009 Sep 30 7:00 AM
Hi,
I have one requirement,i want to have a variant where i have date field on screen.I want to run this program in background.but whenever i run this program(everyday) date will be changed without changing in variant everytime.Thus user does not want to change date everytime manually.how to achieve this?
Regards,
Soniya s.
‎2009 Sep 30 7:14 AM
create a dynamic variant for a selction field and use smae variant for running the report
Reagads, Sri
‎2009 Sep 30 7:15 AM
Search in SCN as to how to define Dynamic Variants. You will get lots of posts related to it.
‎2009 Sep 30 7:40 AM
Hi Soniya,
<li>check the below program.
<li>I have create variant ztest_var1 with values p_char = 'test1' and p_date = '29.09.2009'.
<li>I have create variant ztest_var2 with values p_char = 'test2' and p_date = '01.10.2009'.
<li>As I have filled p_date with sy-datum in PBO of the selection-screen.I am getting outputs like below.
REPORT ztest_program.
PARAMETERS p_char TYPE char5.
PARAMETERS p_date TYPE sy-datum.
AT SELECTION-SCREEN OUTPUT.
p_date = sy-datum.
START-OF-SELECTION.
WRITE:/ p_char,
p_date.TEST1 30.09.2009
.
So try that way. I think that it works.
Thanks
Venkat.OTEST2 30.09.2009
‎2009 Oct 28 7:11 AM