cancel
Showing results for 
Search instead for 
Did you mean: 

ALV-Sizing

AFork
Advisor
Advisor
0 Kudos

Hey all,

I would like to display a ALV table from the left to the very right in a window.

What I did

- defined a view with ROOTUIELEMENTCONTAINER -> Flow Layout

- defined a group with Flow Layout - 100% width

- defined a viewcontainerUIElement in this group

Result:

The group is as expected (from the left to the right border)

The ALV-table in the goup is smaller and do not touch the right border

Question:

How can I "force" ALV to use the complete line?

Thanks for helpful hints,

Achim

Accepted Solutions (1)

Accepted Solutions (1)

former_member182190
Active Participant
0 Kudos

Hello Achim,

I think you need to explicitly set the width of ALV to 100%

Try using this piece of code

*... get ALV component

DATA:

lr_salv_wd_table TYPE REF TO iwci_salv_wd_table.

lr_table type ref to CL_SALV_WD_CONFIG_TABLE.

  • Note : give your used component of ALV properly here

lr_salv_wd_table = wd_this->wd_cpifc_alv( ).

*... (1) get ConfigurationModel from ALV Component

lr_table = lr_salv_wd_table->get_model( ).

DATA: lr_table_settings TYPE REF TO if_salv_wd_table_settings.

lr_table_settings ?= lr_table .

lr_table_settings->set_width( '100% ' ).

Hope this solves your problem.

Regards,

Ismail.

AFork
Advisor
Advisor
0 Kudos

Hello Ismail,

thanks for the hint - I forgot to write that I set the value to 100 with the mentioned method..

Greetings,

Achim

AFork
Advisor
Advisor
0 Kudos

Hello Ismail!

I'm very sorry - I did not read the text carfully....

This solve the problem and now I'm painfree....

Thanks a lot!

Achim

Answers (1)

Answers (1)

Former Member
0 Kudos

hi achim....

give the cell design of the view container as lrnopad or padless.... this is the maximum you could do.

---regards,

alex b justin

AFork
Advisor
Advisor
0 Kudos

Hey Alex,

thanks for the fast reply. I did what you said but the result is unchanged.

Greetings,

Achim

Former Member
0 Kudos

Hi,

First you need uncheck the property 'hasContentPadding' of group.

Second if you want always ALV fully to fill group you need dynamically control the width of table columns.

BTW I guess you only need the first.