Skip to Content
author's profile photo Former Member
Former Member

Events of ALV grid when change rows

Hi All,

I have problem. I need process the event when user selects other row. I don't find standarts events.

Could you tell me how I solve this problem?

Thanks a lot.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 24, 2005 at 12:06 PM

    You can use the events <b>BUTTON_CLICK</b> and <b>DOUBLE_CLICK</b>.

    In event, you receive the selected line.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 24, 2005 at 01:35 PM

    hi,

    Look at the inmplementation of double_click event in the report program BCALV_GRID_03 of development class SLIS.

    Happy eventing...:-)

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      How about the user moves the cursor with the up and down keys, and then hits enter? You code a function code for the enter key and then use standard ALV method call to retrieve the row/col where the cursor was placed. You can then retrieve the row and take whatever action you need.

      Let us know how it goes.

  • author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2005 at 08:08 AM

    I think the event DELAYED_CHANGED_SEL_CALLBACK may help you. Don’t forget to call the method REGISTER_DELAYED_EVENT for registering this event. This event works approximately in 3 sec. after the user has changed the row by mouse or by pressing key PgUp or PgDown.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello Igor,

      As long as you want to design your screen in the SAP GUI environment, you cannot have the event triggerring at the arrow butons on the key board.

      If you are bent on having the functionality, then the only option I see is for you to use OLE and have a Microsoft (VB or VBA) based fornt-end for the application.

      Regards,

      Anand Mandalika.

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.