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

Hard code in variants

Former Member
0 Likes
1,496

Hi experts ,

I have to change hard code in the variants . Is there a way where i can search the variants .? Please help...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,346

Thanks but here i will have to search each report specifying report name . Is there a way where i can probably get all reports with the variant parameter with a value 'ABCD'.? Please help

12 REPLIES 12
Read only

Former Member
0 Likes
1,346

Hi Shirali,

Use function module F4_REPORT_VARIANT which will help you.

<b><REMOVED BY MODERATOR></b>

Satish

Message was edited by:

Alvaro Tejada Galindo

Read only

0 Likes
1,346

Hi Satish ,

How can I search of data in the variants . As i have to modify data in the sense parameter values associated with perticular variant .

Thanks

Read only

0 Likes
1,346

Hi,

do like this, hope you are expecting a kind of code like this.

PARAMETERS: VARIANT LIKE RSVARADMIN-VARIANT.

SUBMIT (PROGRAMM) VIA SELECTION-SCREEN

USING SELECTION-SET VARIANT.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR VARIANT.

CHECK PROGRAMM NE SPACE.

CALL FUNCTION 'F4_REPORT_VARIANT'

EXPORTING

OBJECT = '*'

PROGRAM = PROGRAMM

IMPORTING

RESULT = VARIANT

EXCEPTIONS

OTHERS = 1.

IF SY-SUBRC <> 0.

MESSAGE E016(RP) WITH 'No variant were found for program'

PROGRAMM.

ENDIF.

<b><REMOVED BY MODERATOR></b>

Satish

Message was edited by:

Alvaro Tejada Galindo

Read only

0 Likes
1,346

This would give me the variant name but i want variant data .A variant would contain multiple parameters but i want to search all parameters in the variants having data 'ABCD' . Thanks .

Read only

0 Likes
1,346

Can anyone help?

Read only

0 Likes
1,346

Shirali,

Did you check FM <b>RS_VARIANT_CHANGE</b>... check the report how to use FM <b>RS_VARIANT_CHANGE</b>..

Check also..

<b>RS_CHANGE_CREATED_VARIANT

RS_VARIANT_CONTENTS</b>

Chandra.

Read only

0 Likes
1,346

Ya i did. But i need a way where i want to change all variants existing where parameter value is 'ABCD' and hence change this. Is there a way by which i can get the list of variants having the parameter value as 'ABCD".

Read only

0 Likes
1,346

Shirali,

You can try this FM <b>RS_VARIANT_VALUES_TECH_DATA</b>, This will return the values in the table where you can check the value with the condition and you can update it .......

Hope this helps..

Chandra.

Read only

Former Member
0 Likes
1,347

Thanks but here i will have to search each report specifying report name . Is there a way where i can probably get all reports with the variant parameter with a value 'ABCD'.? Please help

Read only

0 Likes
1,346

Is there a table which stores all variants and its parameters with data? please help

Read only

0 Likes
1,346

Shirali,

The variant tables are...

TVARV --> for storing the variants

VARID --> Variant directory

VARIT --> Variant texts

VARI --> Variant storage

...I dont think you can update all the values of the variants without passing the Report Name....

Chandra.

Read only

0 Likes
1,346

Thanks chandra . I have rewarded points .