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

ALV display Variant

Former Member
0 Likes
1,040

hi,

I wrote a code for allowing the user to choose a display variant in the selection screen. The user chooses the required variant in the selection screen and views the ALV grid accordingly. This code is working fine in the development server but as it was transported to the quality server, somehow it has stopped working.

Any new variants that are created are displayed in the selection screeN F4 help, but somehow the variants are not working.

Could anyone suggest where i am going wrong?

Thanks,

Aviroop

hi,

I wrote a code for allowing the user to choose a display variant in the selection screen. The user chooses the required variant in the selection screen and views the ALV grid accordingly. This code is working fine in the development server but as it was transported to the quality server, somehow it has stopped working.

Any new variants that are created are displayed in the selection screeN F4 help, but somehow the variants are not working.

Could anyone suggest where i am going wrong?

Thanks,

Aviroop

7 REPLIES 7
Read only

Former Member
0 Likes
1,003

Hi,

Did you Check is there any default variant is set to your layout.

Regards

vijay

Read only

0 Likes
1,003

Yes,

I have . There is a default variant set to the program.

This code is working absolutely fine in the Dev box but not in the QA box

thanks

Read only

0 Likes
1,003

Hi Aviroop,

that is overriding your layout what ever you choose it from selection screen.

are you sure it is working in DEV box, is both the Programs are same or is there any differences...

Regards

vijay

Read only

0 Likes
1,003

hi,

I think that you might be right. How do i prevent the default variant from overriding this?

Thanks

Aviroop

Read only

0 Likes
1,003

Hi,

in you alv call are you passing the parameter

<b>default = 'X'.</b>

Regards

vijay

Read only

0 Likes
1,003

Yes.. I am

Read only

0 Likes
1,003

try to comment it and see./

it will work..

you are telling that alv Fm set the default variant.

if you don't want then comment it, then what ever you choose in selection screen will come in the output otherwise defaut variant overrides the selected one.

Regards

vijay