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: 

How to define parameter ID for transaction call in query.

Former Member
0 Kudos

Hi folks,

In SQ01 I've made report assignment. So now buy double click from ALV table I'm calling a new transaction and to fill fields on first screen I need define parameters ID. So how can I do it in query?

Thanks.

1 REPLY 1

Former Member
0 Kudos

hi,

try this snippet,

FORM user_command_form  USING p_ucomm    LIKE sy-ucomm

                              p_selfield TYPE slis_selfield.

  CASE p_ucomm.

    WHEN '&IC1'.        " SAP standard code for double-clicking

           SET PARAMETER ID 'XXX' FIELD p_selfield-value.

      CALL TRANSACTION 'YYYY'.

  ENDCASE.

ENDFORM.                    "user_command_form