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

Variant definition

Former Member
0 Likes
483

Hi all,

I have a requirement to schedule a job to run on the 17th and the program in it shall pick up all records starting by 15th of last month(START DATE) till 14th of the current month (END DATE).

However, I cannot find any option that allow us to define a variant like with this parameters.

Do you guys know possible solutions?

Thanks in advance,

Luis

3 REPLIES 3
Read only

Former Member
0 Likes
446

Hi,

Your Program need to do all these things, you need to write the code like, it should allow the records from 15th of last month to 14th of this month ....

This program you can schedule on 17th using SM36 Transaction code .......

Regards

Sudheer

Read only

Former Member
0 Likes
446

Hi

You can code in the <b>initialization</b> event to take START DATE and END DATE as required.

So, if you run this prg anytime, it will take 15th of last month as START DATE and 14th of current month as END DATE by <b>DEFAULT</b>.

Regards,

Raj

Read only

Former Member
0 Likes
446

Hi Luís,

You can create two new TVARVC variables(Entries in TVARVC table) and write an ABAP program to update these variables with the required dates(This can be scheduled as a step ahead of the current program)

Assign the TVARVC variables to the select fields via the selection variables option while creating the variant that is used to run the program in Back ground

Thanks,

Vinay