Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CL_GUI_ALV_TREE with user command

kp_25
Participant
0 Likes
817

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

1 REPLY 1
Read only

kp_25
Participant
0 Likes
509

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