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 Variants

Former Member
0 Kudos

Dear All,

Pls. let me know how to create DYNAMIC VARIANTS.

If you provide step by step procedure, it will be very helpfull to me...

Thanks a lot,

CR

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Use these functions according to your needs.

RRS_MAINTAIN_ALL_VARIANTS

RRS_VARIANT_CREATE

RRS_VARIANT_DELETE

RRS_VARIANT_DISPLAY

RRS_VARIANT_F4

RRS_VARIANT_LIST

RRS_VARIANT_MAINTAIN

You can also look at function group SVAR where there are quite few functions for the same.

Regards,

Ravi

Note :Please mark the helpful answers

Message was edited by: Ravikumar Allampallam

7 REPLIES 7

Former Member
0 Kudos

Hi,

Use these functions according to your needs.

RRS_MAINTAIN_ALL_VARIANTS

RRS_VARIANT_CREATE

RRS_VARIANT_DELETE

RRS_VARIANT_DISPLAY

RRS_VARIANT_F4

RRS_VARIANT_LIST

RRS_VARIANT_MAINTAIN

You can also look at function group SVAR where there are quite few functions for the same.

Regards,

Ravi

Note :Please mark the helpful answers

Message was edited by: Ravikumar Allampallam

Former Member
0 Kudos

Hi

Dynamic varaints possible in 2 ways.

- Dynamic declaration by System defined variables

- Dynamic declaration by custom defined variables

the first one is defined by the variant management screen. The second one is defined using STVARV and STVARC tcode.

In STVARV you define a variable which will be available as drop down in the varaint management screen.

Hope this helps

Cheers

0 Kudos

Hi ALL,

Still I didn't get the information on Dynamic Variants..

If any one known about this pls. let me know.

Thanks,

Ranjan

Former Member
0 Kudos

Hello KC,

I am assuming u are asking abt how to populate the variants dynamicall!!.

There are probalably two ways..

1. When u are creating variants in any program u can save them. Enter name and description. If the variable is date field then select checkbox under L(selection variable) and then click on D it will u to select varaibles which are automatically populated.

2. U can assign variable to the screen field and then update the variable through another program.

Former Member
0 Kudos

hi,

Please follow these steps:

1. Enter the values in the selection screen

2. Save the variant using the SAVE button

3. In the next screen for the date variable select the 'Selection variable' checkbox (L) and click on the button 'Selection variable' in the toolbar.

4. Now you will see this variable in the next screen with 3 types of buttons. Click on the middle button (ie. D - Dynamic date calculation).

5. Click on the down arrow button and select the option 'Current Date'.

6. Save the variant.

Regards,

Sailaja.

0 Kudos

Hi,

Helpful.

Regards,

Girish

Former Member
0 Kudos

Hi,

If you want to create a variant from a program dynamically, you can use the FM RS_CREATE_VARIANT. To this FM, you need to pass CURR_REPORT with Sy-repid, CURR_VARIANT with variant name , VARI_DESC with description and VARI_CONTENTS with selection field details.

hope this is helpful to solve ur problem.

Best Regards,

vijay