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

Selection screen

Former Member
0 Likes
604

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.

6 REPLIES 6
Read only

Former Member
0 Likes
563

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

Read only

0 Likes
563

Hi,

i need to print the result in same selection screen itself..

Thanks,

Navaneeth.

Read only

Former Member
0 Likes
563

Hi,

see this code.

PARAMETERS:a(10).

PARAMETERS:b(10).

PARAMETERS:c(10).

AT SELECTION-SCREEN.

c = a + b.

rgds,

bharat.

Read only

Former Member
0 Likes
563

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.

Read only

Former Member
0 Likes
563

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

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
563

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.