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

Dynamic Variant for Background Programs

Former Member
0 Likes
1,222

Hi,

On a Std program, I have two parameter Settlement Period and Settlement Year.

I want to run this std program in the background with VAriant.

The values in these variable should change automatically for every new period/fiscal year.

I tried to user Selection variable. But no success. May be I am doing something wrong.

Can anyone suggest any solution??

- Harshad

4 REPLIES 4
Read only

Former Member
0 Likes
744

Hi Harshad,

Once u enter the values you require on the selection screen and click on the SAVE button to save a variant, the Variant attributes screen comes up where you can provide a variant name and description.

On this screen there is a column called "Save field wthout values". If you check this option then the values to which the selection screen variables are defaulted will change dynamically.

So basically you have to default the selection screen new period/fiscal year in your program to the present values using a function module which im sure your using(if you need it ask me). Once you default them while saving the variant check the "Save field without values" check box against those fields.

Hope this helps you. Please award points if it does.

Regards,

Ganesh

Message was edited by:

Ganesh Chilakapati

Read only

0 Likes
744

Hi Ganesh,

Do you have any Idea which Values I should use in the "Selection VAriable" and "Name of the Variable Column"??

Also, maintaining these varible in TVARV Tables means we have to set some global value or We can give some formula also.

I have to do some calculation based on Sy-datum and then I have to assign those to those parameters.

- HArshad

Read only

dhirendra_pandit
Active Participant
0 Likes
744

Hi Harshad,

You can use the table update VARID, its containing the variant parameter.

If you are using any job just make report before to update this table with dynamic variant value details and your job will run with new variant parameter.

For changing variant parameter you can use function module FASU_RS_CHANGE_CREATED_VARIANT.

Regards

Dhirendra Pandit

Read only

andrea_olivieri
Contributor
0 Likes
744

Hi,

check the answers in this thread [;.

Regards,

Andrea