Skip to Content
0
Former Member
Apr 07, 2013 at 01:50 AM

"AT LINE-SELECTION" event in a Query (SQ01 or SQ02)

1149 Views

Hi there

I want to know if it's possible to put "AT LINE-SELECTION" event in an ABAP Query? I'm trying that in SQ02 - the infoset - but nothing happens when I double-click on the output lines. I cannot find any place to type codes in SQ01.

The purpose is to call a transaction VA03 when people double-click on the output field "sales order number" and here is the code I put in "Free coding" section of SQ02.

AT LINE-SELECTION.

DATA: w_cucol TYPE sy-cucol.

w_cucol = sy-cucol + sy-staco.

w_cucol = w_cucol - 2.

IF w_cucol BETWEEN 103 AND 119.

SET PARAMETER ID 'AUN' FIELD vbkd-vbeln.

CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.

ENDIF.

yu