06-06-2008 8:33 PM
Hi Experts,
My report runs in batch job with a variant, daily.
One of the filed in selction screen should hv CURRENT DATE, with out providing as input explicitly by user.
So, How Can I get it done?
Its some thing with Dynamic variants + Selection Variables + date selection, but, I forgot the navigation etc.
pl. let me know
thanq
06-06-2008 8:41 PM
Refer this link -
http://www.saptechnical.com/Tutorials/ABAP/DynamicVariant/Procedure.htm
Regards,
Amit
06-06-2008 8:41 PM
Refer this link -
http://www.saptechnical.com/Tutorials/ABAP/DynamicVariant/Procedure.htm
Regards,
Amit
06-06-2008 9:01 PM
thanq.
and pls. let me further clarify that,
programitically am populating the date as current date minus 1 in the field of my_date in the selection screen.
now, they wanna to run the report in back ground, daily.
now, I followed ur tip/link and saved with_date_variant, fine.
so, pls. let me know that,
1) if the report runs in back ground tomorrow with with_date_variant(which is i created by seeing ur link), Is the selection screen my_date(prog. populates as June 5th) will be override with current date(i.e. June 6th)?
In broad, Is the selection criteria wuld be over writes with the Dynamic varints?
thanq
06-06-2008 9:08 PM
Yes it will overwrite.
Also it will overwrite any default value once that variant is selected. You can check this just by pressing F8 to program and selecting variant. You will see here that date will be replaced.
thnx,
ags.
06-06-2008 8:44 PM
Hello friend
I am using ECC6 and here is the method:
Save any variant.
You will see all the selection-screen parameters in the table control there.
for you date field select D in your selection variable column which stands for dynamic date selection and then in last column i.e name of variable choose first option: current date.
I hope the process will be similar in other versions too.
hope this helps
thnx, ags.
06-19-2015 6:15 PM