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: 

ALV display Variant

Former Member
0 Kudos
103

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

former_member188685
Active Contributor
0 Kudos
66

Hi,

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

Regards

vijay

0 Kudos
66

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

0 Kudos
66

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

0 Kudos
66

hi,

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

Thanks

Aviroop

0 Kudos
66

Hi,

in you alv call are you passing the parameter

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

Regards

vijay

0 Kudos
66

Yes.. I am

0 Kudos
66

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