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 report

Former Member
0 Likes
564

Hi,

Is it possible to change the ALV output dynamically?

eg. The ALV list output has columns.....

col1 col2 col3 col4

After display the user wants to change the position of the columns...

say for eg.... Col2 col3 col1 col4.

Is this possible?

Regards,

M..

1 ACCEPTED SOLUTION
Read only

GauthamV
Active Contributor
0 Likes
536

hi,

yes, you can change the layout just by draging fields into your required positions.

you have a button change layout (cntrl + f8 )in application tool bar use it..

Hi,

Is it possible to change the ALV output dynamically?

eg. The ALV list output has columns.....

col1 col2 col3 col4

After display the user wants to change the position of the columns...

say for eg.... Col2 col3 col1 col4.

Is this possible?

Regards,

M..

4 REPLIES 4
Read only

GauthamV
Active Contributor
0 Likes
537

hi,

yes, you can change the layout just by draging fields into your required positions.

you have a button change layout (cntrl + f8 )in application tool bar use it..

Read only

Former Member
0 Likes
536

Hi,

I am using that. But the field gets arranged in the same way as passed from the progam.

Read only

GauthamV
Active Contributor
0 Likes
536

hi,

you have to use save and layout option in REUSE_ALV_GRID_DISPLAY

function module and save it in output of layout.


data : gs_layout   TYPE slis_layout_alv ,
            g_save(1) TYPE c.

 g_save = 'A'.
CALL FUNCTION REUSE_ALV_GRID_DISPLAY
  EXPORTING
    I_CALLBACK_PROGRAM             = g_repid
    I_CALLBACK_USER_COMMAND        = 'USER_COMMAND'
    I_STRUCTURE_NAME               = 'ITAB'
    IS_LAYOUT                      = gs_layout                     < ----- use this.
    i_save                  = g_save                                    < ---- also this

Read only

jaheer_hussain
Active Contributor
0 Likes
536

Hi,

It is possible. Which field you want just drag(you see arrow with small box) and put it where ever you want.

With Regards,

Jaheer.