Mentor SAP
2017-03-05 Submitted by:- Admin
REPORT  ZCHECKBOX.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
parameters: add as checkbox,
            sub as checkbox,
            div as checkbox,
            mul as checkbox.
SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
parameters: Num1(5) type c MODIF ID bl2,
            num2(5) type c MODIF ID bl2.
SELECTION-SCREEN END OF BLOCK b2.

data: c(5) type c.

if add = 'X'.
     c = num1 + num2.
   write:/ c.

   endif.

 if sub = 'X'.

   c = num1 - num2.
   write:/ c.

   endif.

  if div = 'X'.

   c = num1 / num2.
   write:/ c.

   endif.

  if mul = 'X'.

   c = num1 * num2.
   write:/ c.

   endif.