on 10-30-2009 9:24 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
As per your code, it should work fine..check weteher in any other method you might be displaying them..
Regards,
Lekha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.