‎2007 Feb 14 6:32 AM
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
‎2007 Feb 14 6:38 AM
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
‎2007 Feb 14 6:40 AM
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
‎2007 Feb 14 7:13 AM
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...
‎2007 Feb 14 7:40 AM
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
‎2007 Feb 14 9:40 AM
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 .
‎2007 Feb 14 9:46 AM