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

Event for Cursor Movement

Hi

I have a problem in which some validations are required on cursor movement. Even not to press enter.

Is there any event for cursor? If yes , Tell me.

Ruchika

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 Aug 29, 2006 at 10:18 AM

    Hi Ruchika,

    There is an event called doubleclick in cl_gui_alv* (i'm not sure abt the Class). If you'r using ALV Grid then you can define a function module in the event parameter in the Function Module.

    Hope this might help you.

    Thanks,

    Prashanth

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 29, 2006 at 10:22 AM

    Try this:

    In the PAI event of the selection screen, the event

    AT SELECTION-SCREEN ON BLOCK block

    event is triggered. You define a block by enclosing the declarations of the elements in the block between the statements SELECTION-SCREEN BEGIN OF BLOCK block - END OF BLOCK block. You can use this event block to check the consistency of the input fields in the block. If an error message occurs within this event block, the fields in the block are made ready for input again on the selection screen.

    REPORT demo_at_selection_on_block.

    SELECTION-SCREEN BEGIN OF BLOCK part1 WITH FRAME.

    PARAMETERS: number1 TYPE i,

    number2 TYPE i,

    number3 TYPE i.

    SELECTION-SCREEN END OF BLOCK part1.

    SELECTION-SCREEN BEGIN OF BLOCK part2 WITH FRAME.

    PARAMETERS: number4 TYPE i,

    number5 TYPE i,

    number6 TYPE i.

    SELECTION-SCREEN END OF BLOCK part2.

    AT SELECTION-SCREEN ON BLOCK part1.

    IF number3 LT number2 OR

    number3 LT number1 OR

    number2 LT number1.

    MESSAGE e888(sabapdocu) WITH text-001.

    ENDIF.

    AT SELECTION-SCREEN ON BLOCK part2.

    IF number6 LT number5 OR

    number6 LT number4 OR

    number5 LT number4.

    MESSAGE e888(sabapdocu) WITH text-001.

    ENDIF.

    If the user does not enter numbers in ascending order in one of the blocks, the whole of the corresponding block is made ready for input again.

    Regards,

    Vishal

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi

      Actually , Requirement is like :

      There are two parameters. One is mandatory.one is not.

      Based on Radiobutton r1 or r2 I have to make other parameter also mandatory if i select r1.But This should happen as soon as cursor moves.Even User do not want press enter.

      This has been done but after pressing f8 using At selection screen validations.

      I am unable to find any event for cursor movement.

      Please help in this.

      Ruchika

  • author's profile photo Former Member
    Former Member
    Posted on Aug 29, 2006 at 10:25 AM

    Hi Ruchika,

    There are no events for cursor movements in list processing or alv grid.

    But if you want some event for screens or selection screens, you can use list box instead of text box for the field on which you want to set a event. Assign a function code to the list box. Then you will be able to proces the screen whenever the value in the listbox is changed.

    Prabhas.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Prabhas

      I had found this. Also working when I am going from r2 to r1. But as parameter become mandatory in this case ,

      screen does not allow to go at selction screen ouput when i want to change from r1 to r2 again.

      I had assigned the points for previous one .

      Ruchika

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.