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: 

Copying Variants

Former Member
0 Kudos

We have 2 SAP boxes one for development the other for production.

There is a program say <b>PROGRAM1 on the production server</b> whose variants we want to copy to become the variants of another program say <b>PROGRAM2 on the development server</b>.

Both these program share the same selection screen design. My questions are

1) Can only the variants of one program be imported into another program. More specifically is there any transaction to do this?

2) Can this be managed programatically?

1 ACCEPTED SOLUTION

andreas_mann3
Active Contributor
0 Kudos

hi,

look function group svar:

fm:

1)RS_VARIANT_CONTENTS

2)RS_VARIANT_ADD or RS_VARIANT_CHANGE

Andreas

4 REPLIES 4

andreas_mann3
Active Contributor
0 Kudos

hi,

look function group svar:

fm:

1)RS_VARIANT_CONTENTS

2)RS_VARIANT_ADD or RS_VARIANT_CHANGE

Andreas

Former Member
0 Kudos

If program names are same on both boxes this can be achieved easily with report RSTRANSP. With this report you can create transport on source system and ask your basis to import this into the target system .

For variant of program 1 on system A to varaint of program 2 on System B is not possible . You can write ABAP to download , change the program names in file and then upload .

Cheers.

Former Member
0 Kudos

You can save a variant in a transport and migarte it to other client (only possible from development to QA and production, not the other way round) for the same program. For this go to SE38, choose variant Display and then Utilities->transport request->Execute.

I don't know of a way of copying variant of one program to another.

Regards,

Chandrika

Former Member
0 Kudos

Just found another way of doing it... use function module RS_COPY_SELECTION_SETS