Skip to Content

Table Control

Hi,

Is it possible to trigger an event on double clicking on any field of a table control.

My requirement is to call a transaction on double clicking of a field on a table control in module pool pgming

Regards,

Vinotha M.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Dec 01, 2005 at 09:00 AM

    yes its possible.

    in the table control field attribute/display tab set the check box Respond to double click to 'X'

    Regards

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 01, 2005 at 09:03 AM

    Hi Vinotha,

    check out with the At Line-selection command.

    Regards,

    Nagarajan.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 01, 2005 at 09:05 AM

    I Vinotha,

    I dont think it is possible to give doble click on

    table control. Only you can do is give option to

    select rows and provide one button to after pressing

    it you can do wahtever you want.

    With ALV grid you can do it.Depending on your

    requirement you can use ALV Grid also.

    And if you are working in 46C and higher version you

    can do all the operations like we do using Table

    control like adding rows, ediiting tehm..etc....

    Hope this is helpful to you.

    Thanks & Regards,

    Siri.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 01, 2005 at 10:44 AM

    Hi,

    It is not any different from double click on a screen field. All you have to do is to give some function code to F2 key in your GUI Status, standard functions section.

    Typically we use PICK as function code for it.

    And then in your screen's PAI, USER_COMMAND module,

    do some thing similar to the following,

    WHEN 'PICK'.

    *Declare lv_cursor_line like sy-tabix and

    *lv_cursor_field(30).

    GET CURSOR FIELD lv_cursor_field LINE lv_cursor_line.

    IF lv_cursor_field EQ <your field name>.

    lv_cursor_line

    = lv_cursor_line + <your TC name>-top_line - 1.

    ****Now read your internal table with this index

    READ TABLE <your itab> INDEX lv_cursor_line.

    IF sy-subrc EQ 0.

    ****SET PARAMETER ID (if necessary)

    ****CALL TRANSACTION

    ENDIF.

    ENDIF.

    Hope this helps..

    Sri

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.