07-11-2007 10:43 AM
Hi,
I display ALV Grid, now when I double click on cell
where for example was value "1000023" i would like
to call transaction with vale "1000023".
How to do that ?
Regards,
Greg.
07-11-2007 10:47 AM
Hi,
If you call the transaction directly you will not have the authority check for this transaction. If you need this, you can use function module ABAP4_CALL_TRANSACTION instead.
If you want to open the transaction in a new window you can use the static method CL_RECA_GUI_SERVICES=>CALL_TRANSACTION (no authority check!).
<b>Reward points</b>
Regards
07-11-2007 10:47 AM
Hi,
In the user command of ALV report you can call a transaction
see the code
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
WHEN 'PICK'. " Double click line
* Check field clicked on within ALVgrid report
IF rs_selfield-fieldname = 'VBELN'.
* Read data table, using index of row user clicked on
READ TABLE t_disp_tab INTO wa_item_tab INDEX
rs_selfield-tabindex.
* Set parameter ID for transaction screen field
SET PARAMETER ID 'VL' FIELD wa_item_tab-vbeln.
CALL TRANSACTION 'VL03N' AND SKIP FIRST SCREEN.
endif.
endform.
Reward points if useful
Regards
Deepu.K
07-11-2007 10:55 AM
hello,
Just go through the following links...
http://www.sapfans.com/forums/viewtopic.php?t=11601
http://www.sapfans.com/forums/viewtopic.php?t=23010
It may help..
Regards,
Roshani
07-11-2007 11:04 AM