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 doubt

Former Member
0 Likes
972

Hello!

I have a doubt about ALV. If I change the fields that are displayed in the screen of the ALV and I do not save the variant when I perform a new search the old layout is displayed again. How can I solve this problem?

Can anyone help me??

Best regards,

Caíque Escaler

Hi,

You can have variant either user specific or global. Always allow user to create the user-specific variant. Refer program SALVDEMO. And you can create as many variant as you want so no need to worry about temporary variants.

Regards,

Atish

7 REPLIES 7
Read only

uwe_schieferstein
Active Contributor
0 Likes
955

Hello Caíque

It is not sufficient to just save the layout you have to define it as DEFAULT layout.

Choose menu Layout -> Manage. In the list with the variant mark your default layout and save it.

Regards

Uwe

Read only

Former Member
0 Likes
955

Hello Uwe,

Thanks for your help but i do not want to save the layout it's a temporary layout. Is it possible?

Best regards,

Caíque Escaler

Read only

0 Likes
955

Hi,

Can you explain a bit more as what's happening and what do you want?

Regards,

Atish

Read only

Former Member
0 Likes
955

Hi Atish,

I have an ALV Grid and I perform a search.

I click on the button "Change Layout".

I add some fields and I just confirm. I don't save a new layout variant. When I perform a new search the fields that I added disappear and I want that this do not happens. Is it possible?

Sorry about my English

Best regards,

Caíque Escaler

Read only

0 Likes
955

Hi,

Unlesss you won't save your layout, it is not possible.

Everytime a grid called, it is called using the default layout defined in your program so to change the layout you need to first save it.

Regards,

Atish

Read only

Former Member
0 Likes
955

Hello Atish,

Thanks again for your reply.

Could your help me a little bit more? Is there a way to save a temporary variant and after I remove this variant?

Best Regards.

I'll reward points to you for help until now.

Caíque Escaler

Read only

0 Likes
955

Hi,

You can have variant either user specific or global. Always allow user to create the user-specific variant. Refer program SALVDEMO. And you can create as many variant as you want so no need to worry about temporary variants.

Regards,

Atish