2011 Aug 11 8:41 PM
Hi ,
I am using CL_GUI_ALV_TREE class for a ALV tree model output.
when the user presses on a button on tool bar I need to go to another transaction ..eg., Functional Location with the value of FL from the output screen.How to get the value of the functional location and pass it to the transaction.
Is there any specific method which can capture the values of the selected rows? I already tried get_selected_item and get_selected_nodes but they just return the field and line .
any help here?
Thanks,
Kamala
Hi ,
I am using CL_GUI_ALV_TREE class for a ALV tree model output.
when the user presses on a button on tool bar I need to go to another transaction ..eg., Functional Location with the value of FL from the output screen.How to get the value of the functional location and pass it to the transaction.
Is there any specific method which can capture the values of the selected rows? I already tried get_selected_item and get_selected_nodes but they just return the field and line .
any help here?
Thanks,
Kamala
2011 Aug 12 12:23 AM
Solved myself : did something like this
Getting the selected row from the output screen.
CALL METHOD tree1->get_selected_nodes
CHANGING
ct_selected_nodes = l_node_key.
Getting the index from the l_node_key
CLEAR : wa_key.
READ TABLE l_node_key INTO wa_key INDEX 1.
*Reading the Internal table with the key selected
CLEAR : wa_final1.
READ TABLE it_final INTO wa_final1 INDEX wa_key.
IF sy-subrc EQ 0.
l_notif = wa_final1-qmnum.
ENDIF.
SET PARAMETER ID : 'IQM' FIELD l_notif.
CALL TRANSACTION 'IW52'.
Thanks,
Kamala
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |