on 01-17-2012 6:47 AM
I have requirement, in which an ALV will be displayed with 5 columns , of which one column value will be selected through drop down.
I have created a editable ALV in which, if i select a drop down value from col1 then simultaneously the properties of the col2 to col5 should be changed (in that particular row only)
below is the scenario
Example: *DD-Drop down; DD1 is first value in the Drop Down and so on...
NE: Non editable
E : Editable
col1 --- col2 -
col3 -
col4 -
col5
DD1--
NE
DD2--
E
DD3--
NE
can anyone please guide me on this
I have another problem. My Dropdown is empty and I want it to be filled only when I click on it. I have set the ON_CELL_ACTION as enabled, and am trying to catch the event. But nothing happens when I click on the EMPTY dropdown.
Any Ideas anyone?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use onSelect Event of drop down and write code to modify alv contents accordingly. For drop down in ALV refer this article
[Drop down in WDA ALV|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0cbdde3-fe58-2c10-fcbc-8db18e693877?QuickLink=index&overridelayout=true]
Hope this helps u.,
Thanks & regards,
Kiran.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Kiran
if the drop down is a individual input field then i will get onselect event, but i have created the Drop down in ALV through codes, in that how would i capture the event...,
right now i'm trying to capture the ON_CELL_ACTION event of ALV and still working on it....
Edited by: SUNIL B SMG on Jan 17, 2012 1:30 PM
Hi,
By using the event ON_CELL_ACTION we can get R_param ,r_param->index,by using this we can do restriction in another columns i think.
But Before this we need to set the cell action event in IWDDOINIT.
data : lr_alv_conf_table TYPE REF TO cl_salv_wd_config_table,
CALL METHOD lr_alv_conf_table->if_salv_wd_table_settings~set_cell_action_event_enabled
EXPORTING
value = abap_true.
Thanks,
Lavanya.
@lavanyaMadhu
from WDDOMODIFYVIEW , i have written the code to trigger the ALV event ON_CELL_ACTION i.e,
DATA lv_value TYPE REF TO cl_salv_wd_config_table.
CALL METHOD lV_value->if_salv_wd_table_settings~set_cell_action_event_enabled
EXPORTING
VALUE = ABAP_TRUE .
by the above code the ON_CELL_ACTION event will be triggered, but i want the dropdown value selected ....
if i use r_param->VALUE i will get the selected value but i want to compare the value.
ie if r_param->VALUE eq 'DD1'.
here need to put the logic to set the col2 to col5 properities
endif.
but r_param->VALUE is of type DATA, so comparision is not happening with 'DD1' value....
Edited by: SUNIL B SMG on Jan 17, 2012 2:54 PM
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.