cancel
Showing results for 
Search instead for 
Did you mean: 

Adjust ALV size (width) in WebDynpro

Former Member
0 Kudos

Hey,

I want to set the maximum width of my ALV which is displayed on my WD.

I tried to set the width of the ROOTELEMENTCONTAINER. I tried to put it in a transparent container and adjust the width of the container, but nothing worked right now.

Can I set the width of (or height) of an ALV to a maximum or fixed value in a WD?


Thanks for any hints!

Accepted Solutions (1)

Accepted Solutions (1)

AbhishekSharma
Active Contributor
0 Kudos

Hi Dominic,

You can try by changing layout of View Container to Matrix Layout where your ALV is embedded and then set height and width of View Container UI to 100%.

Hope this will help.

Thanks-

Abhishek

Former Member
0 Kudos

Hey thanks for you response. Maybe I didn't say it right. I don't want my ALV to be bigger, instead I want to keep it smaller. I want to set a maximum size so it is never growing bigger than that size

Former Member
0 Kudos

Hello Dominic,

you have to set this property for the ALV: 


   DATA lo_wd_alv_tab TYPE REF TO iwci_salv_wd_table .

   DATA lo_value TYPE REF TO cl_salv_wd_config_table.

   DATA: lr_table_settings TYPE REF TO if_salv_wd_table_settings

   lo_wd_alv_tab = wd_this->wd_cpifc_alv_...( ).

  

   lo_value = lo_wd_alv_tab->get_model( ).

    ...

   lr_table_settings ?= lo_value.

   ...

   lr_table_settings->set_width( '800px' ).
   lr_table_settings->set_fixed_table_layout( abap_true ).

Regards
Shkelqim

Former Member
0 Kudos

Hi, would you please check CL_SALV_WD_CONFIG_TABLE->IF_SALV_WD_TABLE_SETTINGS~SET_WIDTH method from the config model?

Let me know if this helps.

Answers (0)