on 10-09-2007 2:09 PM
I have an alv that displays data from a few tables.
If I select a row from teh ALV, then the following screen should display some of the fields of the row along with additional information..
I understand that the ON_CLICK event should be used once the row is selected..However, I would appreciate it if someone gave me more info on the same..
Thanks!
Hi,
If you select a row in ALV the event asociated is "ON_LEAD_SELECT" . If you create a method asociated to this event, plz put this code in the method asociated:
<i> DATA: lr_index TYPE REF TO if_salv_wd_table_lead_select,
lv_line type SYTABIX.
lr_index ?= r_param.
MOVE lr_index->index TO lv_line.
</i>
In the variable lv_line you will have the selected line of alv.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Tray this:
<i> DATA: lr_table TYPE REF TO cl_salv_wd_table_lead_select,
lr_node TYPE REF TO if_wd_context_node,
lv_field1 TYPE (field1 of your alv table ).
lr_table ?= r_param.
lr_node ?= wd_context->get_child_node( 'NODE_TABLE' ).
CALL METHOD lr_node->get_attribute
EXPORTING
index = lr_table->IF_SALV_WD_TABLE_LEAD_SELECT~INDEX
name = 'FIELD1'
IMPORTING
value = lv_field1.
</i>
With this code, you will have the value of the field 1 of the selected row.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.