Application Development 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: 

Interactive ALV

Former Member
0 Kudos

Hi Gurus,

I have some functionality that if in my output of ALV I click one field then the command should go to 'CR03' transaction and witin that transaction the cursor should be at 'CAPACITY' button only.

So please help me.

Thanks,

Sandeep Garg

2 REPLIES 2

Former Member
0 Kudos

Once u get the ALV output.

you need to captured the row index.

for example:

CALL METHOD wcl_alv_grid->get_selected_rows

IMPORTING

et_index_rows = i_index_rows.

LOOP AT i_index_rows INTO wa_index_rows .

CLEAR w_output1.

READ TABLE i_output INTO w_output1 INDEX wa_index_rows-index.

ENDLOOP.

******************after that use set parameter:

READ TABLE i_output INTO w_output INDEX ws_row_id.

IF sy-subrc EQ 0.

SET PARAMETER ID 'WRK' FIELD w_output-WERKS.

SET PARAMETER ID 'AGR' FIELD w_output-ARBPL.

CALL TRANSACTION 'CR03' .

REWARDS POINTS IF USEFUL.

Former Member
0 Kudos

Hi

Try this..

This is sample code...

AT LINE-SELECTION.

SET PARAMETER ID 'RBN' field wa_final-belnr1.

set PARAMETER ID 'GJR' field WA_FINAL-gjahr.

CALL TRANSACTION 'MIR4' AND SKIP FIRST SCREEN.

Reward if useful.