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 Grid: Changed layout after REFRESH_TABLE_DISPLAY

Former Member
0 Likes
1,430

Hello,

I'm using ALV Grid Control to show tabular data. This ALV Grid has layout with hided toolbar (I passed I_LAYOUT import to method set_table_for_first_display).

If I call REFRESH_TABLE_DISPLAY method to this ALV Grid, toolbar suddenly appears.

I tried this:


data: wa_layout TYPE LVC_S_LAYO.

        wa_layout-NO_TOOLBAR = 1.
        call method hpl_grid->set_frontend_layout
          exporting IS_LAYOUT  = wa_layout.
        call method hpl_grid->refresh_table_display.

.. but problem remains the same. I even tried to switch set_frontend_layout and refresh_table_display methods.

Can anybody help me?

Josef Motl

1 ACCEPTED SOLUTION
Read only

former_member182670
Contributor
0 Likes
780

If you set

wa_layout-NO_TOOLBAR = 1.

it won't work

but try

wa_layout-NO_TOOLBAR = 'X'.

- it works

If you set

wa_layout-NO_TOOLBAR = 1.

it won't work

but try

wa_layout-NO_TOOLBAR = 'X'.

- it works

2 REPLIES 2
Read only

former_member182670
Contributor
0 Likes
781

If you set

wa_layout-NO_TOOLBAR = 1.

it won't work

but try

wa_layout-NO_TOOLBAR = 'X'.

- it works

Read only

Former Member
0 Likes
780

Josef,

Try this,

Get the existing layout using GET_FRONTEND_LAYOUT, take that layout - modify that and then pass it to SET_FRONTEND_LAYOUT.

Regards,

Ravi

Note : Please reward the posts that help you.