Application Development and Automation 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: 
Read only

Catch button press event

Former Member
0 Likes
1,059

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

1 ACCEPTED SOLUTION
Read only

sridhar_meesala
Active Contributor
0 Likes
787

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.

2 REPLIES 2
Read only

sridhar_meesala
Active Contributor
0 Likes
788

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.

Read only

Former Member
0 Likes
787

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