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: 

Copy the selection screen variant

Dsk
Active Contributor
0 Kudos

Hello All,

I like to know how to copy the selection screen variants of a report (RIAUFK20)  from one user to another user.

Example: I have report RIAUFK20 with variant created as V1 for user John. Now i have to copy the same variant V1 as V2 to user Jack.

Since we have many variant like this to be copied between users.

any standard report or solution would be helpful.

Br,

Dsk

1 ACCEPTED SOLUTION

sriharsha_parayatham
Participant
0 Kudos

check this table VARID

also check other tables in package SLDBV

check function modules in function group SVAR

like

RS_VARIANT_ADD

RS_VARIANT_COPY  --- this perticular one might be helpful to you

( i tried this , it worked but no user log when tried to select variant , i mean it will not show who created it or who last changed it . 

but you can write simple modify statement and update in the table VARI AND VARID.).

12 REPLIES 12

adrian_mejido
Contributor
0 Kudos

Hi Dhandapani,

If you want to copy display variants of table control by using an existing variant of a user , you can try with this report:

RSTCX_COPY_TCVARIANT

However variants of a report aren't user defined.

Best regards

Dsk
Active Contributor
0 Kudos

In the se38 i have this variant in my report.

when i use this report and give the report/ username then it tells there is no variant.

kindly advice.

Br

Satheesh kumar D

former_member184569
Active Contributor
0 Kudos

Copy the variant. In the new variant, set the attribute as global. (button besides the new variant name).

This variant will now be available for all users.

0 Kudos

solution of copying manually works well. considering the volume we are looking for some reports

0 Kudos

You can also do it programatically.

I just came across this thread. I have not tried it, but I guess it should work.

The variants are stored in table ltdx. The variant id, report name and user name all form part of the key fields.

Retrieve the corresponding variant for the respective report from this table. Change the user name and modify the table.

Check this thread.

https://scn.sap.com/thread/13463

0 Kudos

think this is for alv display variant

Former Member
0 Kudos

see if this link is useful for you https://scn.sap.com/thread/427718

0 Kudos

think this is for code inspector variant , list of checks to perform...

sriharsha_parayatham
Participant
0 Kudos

check this table VARID

also check other tables in package SLDBV

check function modules in function group SVAR

like

RS_VARIANT_ADD

RS_VARIANT_COPY  --- this perticular one might be helpful to you

( i tried this , it worked but no user log when tried to select variant , i mean it will not show who created it or who last changed it . 

but you can write simple modify statement and update in the table VARI AND VARID.).

0 Kudos

Hello,

Thanks for your reply.

My core part is to copy the variant from one user to another user. that is open and looking any inputs other than a z program.

Br,

Dsk

Dsk
Active Contributor
0 Kudos

Dear All,

Thanks for all your replies. But looks there is no standard way of doing this. I am now progressing on the faesibility side by technical development.

thanks for all your replies.

Br,

Dsk

Former Member
0 Kudos

You can copy list by following below steps.

Go to the job -> step ->

Select Program Name and click on Goto -> Variant

Here you can see the list in 'frm' Row. Scroll down slowly you can find required list.

There might be other lists also in this row but select till end of Your required list.