on 01-17-2013 1:41 PM
Hi everyone,
I am struggling with a problem in Abap Webdynpro application. I have a 'display' structure in which another structure (data structure) is included. I need to display all components of the display structure but, for some reasons ALV displays only those components, which are in included data structure. I am able to get the rest of columns only in runtime via ALV settings in UI (in this case ALV bypasses some settings which I hardcoded - column position, tooltip, and so on).
It's not the first time I do this, although it is the first time I am dealing with this kind of problem. I don't see any reasons for such behavior (I don't delete those columns, neither hide). I did reset the context node, did couple of restarts, I checked settings of these structures, but nothing works, everything seems to be set fine.
Any idea, where could be the problem? Any help would be appriciated.
Thank you guys.
Hi Petr,
did you try the following:
DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
lo_interfacecontroller = wd_this->wd_cpifc_cpu_alv( ).
lo_interfacecontroller->set_data(
* only_if_new_descr = " wdy_boolean
r_node_data = lo_nd_node " ref to if_wd_context_node
).
DATA lv_value TYPE REF TO cl_salv_wd_config_table.
lv_value = lo_interfacecontroller->get_model( ).
DATA: lo_column TYPE REF TO cl_salv_wd_column,
lo_column_settings TYPE REF TO if_salv_wd_column_settings.
lo_column_settings ?= lv_value.
lo_column = lo_column_settings->get_column( 'ATTRIBUTE' ).
lo_column->set_visible( 02 ).
in NODE choose your node of the structure and in ATTRIBUTE the column you wish to Display.
hope this helps,
regards,
Mathias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, in context node is the whole structure, all attributes of the structure. Then in method for setting ALV, there are all the columns. It is sure, that for the specific column, the visible property is set to visible (checked by debugging). No errors in set method. All goes fine until the ALV is displayed - without columns..
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.