Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Sanjivani SAP Training Programme

Program 05: Design the CHECKBOXES on selection screen to perform


arithmetic operations.

REPORT Z1208PROG5.

parameters : p_x type i default 20 obligatory,


p_y type i default 30 obligatory.

data v_z type i.

parameters : p_c1 as checkbox default 'X',


p_c2 as checkbox default 'X',
p_c3 as checkbox,
p_c4 as checkbox.

start-of-selection.

if p_c1 = 'X'.
v_z = p_x + p_y.
write : / 'sum of two no.is',v_z .
endif.

if p_c2 = 'X'.
v_z = p_x - p_y.
write : / 'Difference of two no.is',v_z .
endif.

if p_c3 = 'X'.
v_z = p_x * p_y.
write : / 'product of two no.is',v_z .
endif.

if p_c4 = 'X'.
v_z = p_x / p_y.
write : / 'division of two no.is',v_z .
endif.

Prepared By: Salkar Sailee R (SAP Co-Incharge, SAP ABAP Trainer, Sanjivani College of Engineering
Kopargaon)

You might also like