on 09-05-2008 9:27 AM
Hi Experts,
The displayed rows info that we get from get_ui_info of component SALV_WD_TABLE is not updated when we reload the ALV.
Could you please provide me with some other option to get the number of displayed rows in ALV.
Best Regards,
Arti.
Hi Tamil,
get_element_count does not give the correct number when you filter the ALV.
My req is that Table header should display the number of rows that are displayed.
Best Regards,
Arti.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Get the context node which you binded to the alv,use the method 'get_element_count' to get the number of elements,which is nothing but the number of rows in an alv
Regards
Tamil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suman,
Could you please let me know which internal table should be used. From the context you cannot get it as after filtering you still have the same context. It is only by the help of method get_ui_info( ) you get to know about the displayed rows.
which is not working in my case even the context is refreshed on data change and data check.
Best regards,
Arti.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tamil,
Visible row count can give you only the no. of rows that are visible not the avtual count that you can get by scrolling through the ALV.
Best Regards,
Arti.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try calling the method in wdmodifyview
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To get the visible rows in an ALV,Usethe following piece of code
data lo_cmp_usage type ref to if_wd_component_usage.
data visible_count TYPE i.
lo_cmp_usage = wd_this->wd_cpuse_alv( ).
if lo_cmp_usage->has_active_component( ) is initial.
lo_cmp_usage->create_component( ).
endif.
DATA lo_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
lo_INTERFACECONTROLLER = wd_this->wd_cpifc_alv( ).
DATA lo_value TYPE ref to cl_salv_wd_config_table.
lo_value = lo_interfacecontroller->get_model(
).
VISIBLE_COUNT = lo_value->IF_SALV_WD_TABLE_SETTINGS~GET_VISIBLE_ROW_COUNT( ).
Regards
Tamil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
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.