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

Change ALV Layout at Runtime

Former Member
0 Likes
620

Hi,

I recently got the job to create a rather comprehensive monitor for WM. I also created several layouts for the users in the ALV in the Monitor. These layouts can be transported via customizing transports.

Now the problem:

Depending on the filled Select-Options it makes sense to show the user specific layouts. Is it possible to switch these layouts at runtime without using different structures for the ALV?

3 REPLIES 3
Read only

Former Member
0 Likes
507

hi steffen,

we can select only one layout as "default" ..

based on the selection scrren input , it is not possible to change the layout.

but we can do it in another way,

<b>have a set of fcats in various performs.

call that perform based on the selection screen input.</b>

liek this ..

******dont forget to delete that layout which u hav created****8

if radio_1 = 'x'.

perform f_cat1.

elseif radio_2 = 'x'.

perform f_cat2.

endif.

form f_cat1. " fcats

srno

pernr

name

sex

endform.

form f_cat2.

srno

pernr

basic

hra

endform

With Regards,

S.BArani

Read only

0 Likes
507

Wow, thanks for your very quick response.

That's a possibility which I was already told by my colleagues. In my opinion this solution isn't adequate, because I cut out all the other fields the user might be interested in... I still want the option for the users to create their own layouts!

Someone else got a clue how to solve this?

Read only

0 Likes
507

yes steffen,

u r right , we have to provide such facility to user,

but sometimes we have to stick in certain things like this...

dont forget to tel me if u got another solution for this...

With Regards,

S.Barani