Skip to Content

Catch button press event

Hi experts,

I have started with ABAP programming but I programmed GUI applications in other languages for a long time. Could you give me an advise how to catch events in ABAP. I found only PAi and PBO. But what to do if I want to catch the event button click on one button.

I need two buttons which will calculate different results into an input field on the screen.

The screen will be the same, only some information on it will be different after the button click.

Could you please give me an advise how to do this.

Is it possible do develope own grapfic component in ABAP? Is it possinle to get the coordinations of the mouse in case of move, click...?

Thanks in advance,

Radek

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 27, 2010 at 04:33 AM

    Hi,

    We write the code for button click in PAI of the screen.

    Look at the example.

    In PAI.

    CASE sy-ucomm.
     WHEN 'BUTTON1'.
      CALL SCREEN 1000.
     WHEN 'BUTTON2'.
      CALL SCREEN 1001.
    ENDCASE.

    Thanks,

    Sri.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 27, 2010 at 05:07 AM

    hi,

    Goto to Transaction Code: BIBS and have a look at the examples....

    There is an example called Push Button for your requirement...

    Hope it helps you,

    Regards,

    Abhijit G. Borkar

    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.