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

Changing Variant

Former Member
0 Likes
924

Hello Everyone,

I have one requirement where I have to change the variant of one program from another program.

The requirement is like this:

If have one program lets say A with variant VAR1.

I want to change the contents of variant VAR1 from another program B.

Kindly let me know how I go ahead with program B to change the contents of variant VAR1.

Program B I have to develop from scratch for changing the contents of variant VAR1.

Thanks in advance for your help.

Regards,

Tarun

6 REPLIES 6
Read only

Former Member
0 Likes
871

like this

<b> submit (t_repid) using selection-set 'EMAIL'

with s_werks eq yplant-pplnt

with s_budat in s_budat

exporting list to memory and return.</b>

it will over write

Regards

Prabhu

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
871

Hi

For the program A by goto -> variants -> change the contents u can change the contents of variants na.

Then what's the need to create another program to change the variant contants.

Regards,

kumar

Read only

Former Member
0 Likes
871

Hi..

If u check table TVARV..it contains the select-options and parameters values .

U first check if ur selection-criteria appears in this table...

If yes....in ur program B u can simply put this code....

FORM set_z17_today_date.

*/03 UPDATE tvarv

UPDATE tvarvc " /03

SET low = sy-datum

WHERE name = 'Z17_TODAY_DATE_(YYYYMMDD)'

AND type = 'P'.

ENDFORM. "set_z17_today_date

In my case when A was executed 'Z17_TODAY_DATE_(YYYYMMDD)' had system date...so whenevr i ran B it use to overwrite this parameter...

Hope this is helpful....

Thanx...

Read only

0 Likes
871

Hello Praveen,

I checked in table TVARV.

There are no entries related to my variant.

Any idea how to change the values of the variant and where variants gets stored.

Also, in table TVARV there are very few entries of another variants.

I think, data related to the variants are stored in different table, not in table TVARV.

Regards,

Tarun

Read only

0 Likes
871

Hi ...

Please inform on this...

Are u running pgm A always with default variant ?

what kind of selection variant u r using ?

Let me find out my case .

Praveen .

Read only

Former Member
0 Likes
871

Hi..

Also check TVARVC ..

Thanx .