Application Development 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: 

Hi all, where the result should be posted to

Former Member
0 Kudos

Assume you have 4 pushbuttons on the screen(selection screen) and you try to create a new simple calculator program. Instead of displaying the result via message, I want to display it on one of the the screen elements. What can I use or do?

Thanks in advance...

Deniz.All answers will be rewarded.!!

3 REPLIES 3

Former Member
0 Kudos

Hi Deniz,

Just create an output field (op) on the screen, in pai check for button press.

  • PAI Module

CASE ok_code.

when 'add'.

op = ip1 + ip2.

when 'sub'

op = ip1 - ip2.

..........

endcase.

Award points if useful.

Regards

Indrajit.

S0025444845
Active Participant
0 Kudos

Hi,

You can create module pool program.create different screen

create four push buttons on first screen and assign function codes to them.

supoose u have four functions add,subtract,mul,div

in flow logic,

use like case sy-ucoom,

when 'ADD'

(functionality)

when 'SUB'

.........

.........

.........

endcase.

withregards,

sudha

Former Member
0 Kudos

Hi,

Create an I/O Field like Result on selection screen & fill the value at the time of execution.

Make the field garey out in at selection screen output event by using

loop at screen. if sreen-name = 'result'. screen-input = 0. endif. modify screen. endloop.

Thanks

Sandeep

Reward if helpful