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: 

call transactio from ALV

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

Check this out.

Regards,

Samson Rodrigues.