Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

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

$
0
0

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


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>