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

Copy the selection screen variant

Dsk
Active Contributor
0 Likes
4,727

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
Read only

sriharsha_parayatham
Participant
0 Likes
3,052

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.).

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

12 REPLIES 12
Read only

adrian_mejido
Contributor
0 Likes
3,052

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

Read only

Dsk
Active Contributor
0 Likes
3,052

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

Read only

Former Member
0 Likes
3,052

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.

Read only

Dsk
Active Contributor
0 Likes
3,052

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

Read only

0 Likes
3,052

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

Read only

0 Likes
3,052

think this is for alv display variant

Read only

Former Member
0 Likes
3,052

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

Read only

0 Likes
3,052

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

Read only

sriharsha_parayatham
Participant
0 Likes
3,053

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.).

Read only

0 Likes
3,052

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

Read only

Dsk
Active Contributor
0 Likes
3,052

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

Read only

Former Member
0 Likes
3,052

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.