cancel
Showing results for 
Search instead for 
Did you mean: 

ALV Removing Empty Rows

Former Member
0 Kudos

Hi All,

I am facing an issue in removing the empty lines in ALV. I have a dynamic ALV created.

Even if i bind just 7 rows, it displays additional empty rows. Some of the columns in the ALV are of type DEC. I am not sure if this is the reason why it displays the empty rows. I have replaced the zeros of these columns by space using format properties.

I provided the below set of coding to remove empty rows. But these rows still appear.

DATA: lo_table_settings TYPE REF TO if_salv_wd_table_settings.

lo_table_settings ?= wd_this->go_alv_model.

lo_table_settings->set_display_empty_rows( abap_false ).

Can you suggest me how i could delete the empty rows or maybe disable entire rows?

Regards,

Rekha

Accepted Solutions (1)

Accepted Solutions (1)

Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Are you checking for the Standard View of ALV table only ,because if we create our own view/if the you have cretaed a view in Administrative mode and expect to see the changes it doesnt reflect.

All the settings which we do by coding are applicable only to the Standard view of ALV table .

Regards,

Priya

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Leka and Priya,

Thanks for the information provided by you. I solved this issue by myself.

I have retained the same code for removing empty rows.

I was initially using

CALL METHOD wd_this->go_alv_model->if_salv_wd_table_settings~set_edit_mode

EXPORTING

value = if_salv_wd_c_table_settings=>edit_mode_mass.

to set the ALV in edit mode.

I just changed it to

CALL METHOD wd_this->go_alv_model->if_salv_wd_table_settings~set_read_only( abap_false ).

This resolved the issue.

Regards,

Rekha

Former Member
0 Kudos

Hi,

As per your code, it should work fine..check weteher in any other method you might be displaying them..

Regards,

Lekha.