05-31-2007 7:36 AM
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.!!
05-31-2007 7:41 AM
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.
05-31-2007 7:42 AM
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
05-31-2007 7:46 AM
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