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

Copying ALV Display Variants between different programs

Former Member
0 Likes
875

Is there a way to copy the ALV Display Variants from one program to another? I am NOT referring to selection screen variants.

An SAP standard program was copied to a Z program. Some changes were made to the logic. The original SAP program has many (100+) ALV Display Variants. I do not want to manually re-create them. Is there a way to copy these from one program to another (without using a custom program to manipulate the tables)?

Thanks.

Norm

Is there a way to copy the ALV Display Variants from one program to another? I am NOT referring to selection screen variants.

An SAP standard program was copied to a Z program. Some changes were made to the logic. The original SAP program has many (100+) ALV Display Variants. I do not want to manually re-create them. Is there a way to copy these from one program to another (without using a custom program to manipulate the tables)?

Thanks.

Norm

4 REPLIES 4
Read only

FredericGirod
Active Contributor
0 Likes
789

Hi Norman,

when you specify the IS_VARIANT structure, maybe you could set the name of the program in the IS_VARIANT-REPORT field.

Whith that, you will access the variant from the standard report.

Rgd

Frédéric.

Read only

0 Likes
789

I like the idea, but what about new display variants? If they create and save a new one with the Z program, it would really save under the original SAP program? I'll have to think about that one!

Read only

0 Likes
789

Yes what ever you mention the Program name in the variant , it will import all variants from it, and it will save all variants (if they are new ) to the mentioned one.

regards

vijay

Read only

Former Member
0 Likes
789

Hi norman,

even i was thinking the same while you passing the alv parameter is_variant, give the the program which is having 100 variants.

is_variant-REPORT = 'STANDARDPRG'.

this will import all varaints from it, but when you save any new one it will save in the same standard program.

regards

vijay