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

Variants

Former Member
0 Likes
521

Hi everyone.......

i have a small requirement.......

i have 2 program (program1 and program2 )with the same fields on their selection screens.....

program1 has 2 variants,

i want to copy these 2 variants to program2...

how can i achieve this.....

Its urgent.......

<b>Points guaranteed.............

</b>

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
489

Hi Suresh,

There is no direct way to do this.

You have to manually copy field by field.

If you want to do this programatically, then you can use the fm:

RS_VARIANT_COPY in the second program initialization

3 REPLIES 3
Read only

Former Member
0 Likes
490

Hi Suresh,

There is no direct way to do this.

You have to manually copy field by field.

If you want to do this programatically, then you can use the fm:

RS_VARIANT_COPY in the second program initialization

Read only

Former Member
0 Likes
489

Hello,

Make use of the FM <b>RS_VARIANT_COPY</b>

Vasanth

Read only

Former Member
0 Likes
489

Hi,

when you copy a pgm to another program in se38,you can choose to copy variants also.

lets say you want to copy variants from A to B.

take backup of B.

then go to SE38.select copy icon. give source and copy files.ensure to select all check boxes.

then over write ur program in B.

hope that helps.

rgds,

sap fan