cancel
Showing results for 
Search instead for 
Did you mean: 

ALV if_salv_wd_table_settings~set_display_empty_rows not working?

Former Member
0 Kudos

In reference to the images below.

I have set the empty_rows setting to true. However, 1 empty row is still displayed upon scroll forward.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I found the answer. This issue arises if I use edit_mode_mass and empty_rows=false.

This code worked for me:

*-Do not display empty rows.

lo_model->if_salv_wd_table_settings~set_display_empty_rows( value = abap_false ).

 

*-On the this view, edit_mode_mass conflicts with empty_rows=false.

  lo_model->if_salv_wd_table_settings~set_edit_mode( if_salv_wd_c_table_settings=>edit_mode_standard ).

Answers (3)

Answers (3)

m_aravindan
Active Participant
0 Kudos

Hi len,

           While  binding data to the ALV from  the internal table , check is there any row with empty values .

Regards

Arvnd

Former Member
0 Kudos

Hi Len,

If you do not want to display empty rows, you shall set the value to false instead of true in set_display_empty_rows.

Former Member
0 Kudos

Here's my code:

lo_model->if_salv_wd_table_settings~set_display_empty_rows( value = abap_false ).

The result of which you can see in my first post.

ashish_sharma1
Explorer
0 Kudos

Hello Len,

You can refer standard SAP Component for reference how they did that.

Component : SALV_WD_TEST_TABLE_PROPS

View          :  TABLE

Method      : SET_TABLE_SETTINGS (Line 38)

See how they are doing it you can use the same approach. I hope it helps.

Thanks

Ashish Sharma