‎2008 Apr 01 11:22 AM
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
‎2008 Apr 01 11:38 AM
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.
‎2008 Apr 01 12:53 PM
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.