2007 Jun 11 6:56 AM
Hi,
i need to get the two input values as parameter input (A & B ) in selection screen and have to calculate the sum of those values ( C = A + B ) . when i press F8 i have to display the sum of two values (C) in the same selection screen itself.
How to do this?
Thanks,
Navaneeth.
HI,
before running the programm by pressing F8
just press enter
parameters: a type char20 default '56',
b type char20 default '56',
c type char20.
AT SELECTION-SCREEN.
c = b + a.
regards,
venkatesh
2007 Jun 11 6:58 AM
HI,
try this,
at selection -s creen
if a is not initial
or b is not intial.
c = a + b.
endif.
reward points if helpful
regards,
venkatesh
2007 Jun 11 7:01 AM
Hi,
i need to print the result in same selection screen itself..
Thanks,
Navaneeth.
2007 Jun 11 7:01 AM
Hi,
see this code.
PARAMETERS:a(10).
PARAMETERS:b(10).
PARAMETERS:c(10).
AT SELECTION-SCREEN.
c = a + b.
rgds,
bharat.
2007 Jun 11 7:02 AM
hi try this.
report z_sample.
parameters: a type i,
b type i,
c type i MODIF ID dis.
at SELECTION-SCREEN OUTPUT.
loop at screen.
if screen-group1 = 'DIS'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
AT SELECTION-SCREEN ON b.
c = a + b.
start-of-selection.
end-of-selection.
2007 Jun 11 7:02 AM
HI,
before running the programm by pressing F8
just press enter
parameters: a type char20 default '56',
b type char20 default '56',
c type char20.
AT SELECTION-SCREEN.
c = b + a.
regards,
venkatesh
2007 Jun 11 7:04 AM
Hi,
Try this.It will work.
parameters : a type n,
b type n,
c type n modif id SEE.
at selection-screen output.
if not ( a is initial and b is initial ).
loop at screen.
if screen-group1 = 'SEE'.
c = a + b.
modify screen.
endif.
endloop.
endif.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |