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 field in Variant

Former Member
0 Kudos
376

Hi,

I have to make Period (from),Year (from),Period (to)

and Year (to) as Dynamic in the Variant for Program RKKRCO02.These are of type Parameters.

Please let me know how I can get it done.

Thanks in Advance,

Savitha

1 REPLY 1

Former Member
0 Kudos
127

HI Savitha,

If u open the variant and observe, there some options like hiding parameters and select-options. The same thing we can do my some function modules which will play the dynamic operation with variants in the selection screen.

And if u want to fix some values in the variant for any date field, you can do by this way.

To set the dynamic date:

Save variant on the selection screen.

In the vairant screen, press F4 against your field in the column "Selection Variable"

Select D here.

In the column Name of the variable, press F4 to have the list of the possible rules.

Here you can select "Current date - xxx,current date + yyy" if you want to have certain period.

When you select this system will pop up to put the values for XXX and YYY.

Say for last 7 days, you can set the values XXX as 7 and YYY as0.

But the best way is to change the program, if possible, and fill the select option in the initialization event.

Reagrds,

Raghu.