Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Variant -Current date in selection screen - for batch jobs

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

amit_khare
Active Contributor
5 REPLIES 5

amit_khare
Active Contributor

0 Kudos

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

0 Kudos

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.

Former Member
0 Kudos

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.

0 Kudos

This message was moderated.