We all have came across the disable empty rows that come at the end of ALV. There may be the case that you are getting values only in 2 rows in ALV, but along with that 8 empty rows are coming.
That, at times can be annoying for customer. Here is the solution.
We have to take help of interface IF_SALV_WD_TABLE_SETTINGS. This has methods named SET_DISPLAY_EMPTY_ROWS (Defines Whether Empty Rows Are Displayed). The parameter for this method is of ABAP_BOOL. So we have to pass ABAP_FALSE as the value in order to restrict the disable rows coming into picture. The default value passed to this parameter is ABAP_TRUE, hence disable empty rows.
Class CL_SALV_WD_CONFIG_TABLE uses the interface IF_SALV_WD_TABLE_SETTINGS. We can get the object of this class using the below code snippet in our hook method WDDOMODIFYVIEW.
Now we can test our WD application again.
That, at times can be annoying for customer. Here is the solution.
We have to take help of interface IF_SALV_WD_TABLE_SETTINGS. This has methods named SET_DISPLAY_EMPTY_ROWS (Defines Whether Empty Rows Are Displayed). The parameter for this method is of ABAP_BOOL. So we have to pass ABAP_FALSE as the value in order to restrict the disable rows coming into picture. The default value passed to this parameter is ABAP_TRUE, hence disable empty rows.
Class CL_SALV_WD_CONFIG_TABLE uses the interface IF_SALV_WD_TABLE_SETTINGS. We can get the object of this class using the below code snippet in our hook method WDDOMODIFYVIEW.
Now we can test our WD application again.
No comments:
Post a Comment