SAP Program to find the addition of two numbers using function call

 Program: 


*&---------------------------------------------------------------------*

*& Report ZADD

*&---------------------------------------------------------------------*

*&

*&---------------------------------------------------------------------*

REPORT zadd.


PARAMETERS: p_one TYPE int4,

            p_two TYPE int4.


DATA: thr TYPE int4.


CALL FUNCTION 'ZADD'

  EXPORTING

    im_a = p_one

    im_b = p_two

  IMPORTING

    ex_c = thr.

IF sy-subrc = 0.

  WRITE: thr.

ENDIF.

Post a Comment

0 Comments