Application Development and Automation 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: 
Read only

Batch Job

Former Member
0 Likes
743

Hi,

I need to create a batch job.

In the selection-screen in have made one of the date parameter as sy-datum.

When i create a variant today that variantw will have todays date, and if i need ot run the same variant

tomorrow the date is getting vanished.

How can i make the date in the variant i create as sy-datum

What are the steps involved in creating the batch job and creating the variant with default sy-datum.

Pls help.

Thanks.

4 REPLIES 4
Read only

Former Member
0 Likes
665

HI,

One way would be to have the default today's date set for the date parameter on selection screen.

Another way would be to make use of Selection variables TVARV.

Hope this helps.

Read only

former_member212005
Active Contributor
0 Likes
665

Deepti....you can make that parameter as sy-datum...in the program..may be in start-of-selection...so that it doesnt even consider the date in the variant....

Infact why are you keeping that variable in Selection-Screen, if you always want it as Sy-Datum...when you run the report...

Hope it helps!

Read only

Former Member
0 Likes
665

Please set that parameter default to sy-datum.

Read only

Former Member
0 Likes
665

Hi,

Please try mapping your variant with TVARV table.

Thanks and Regards,

Jayakrishnan R.