SAP Tutorials Blog


 


data : num1 type I,

NUM2 TYPE I,

RES TYPE I.

NUM1 = 5.

NUM2 = 8.



PERFORM MUL_DSIP USING NUM1 NUM2 CHANGING RES.

WRITE :/ ‘VALUE OF RES = ‘ , RES.

*&———————————————————————*

*&      Form  MUL_DSIP

*&———————————————————————*


FORM MUL_DSIP  USING    VALUE(P_NUM1)

VALUE(P_NUM2)

CHANGING VALUE(P_RES).


P_RES = P_NUM1 * P_NUM2.


WRITE :/ ‘VALUE OF P_RES = ‘, P_RES.

WRITE :/ ‘VALUE OF RES = ‘, RES.


ENDFORM.                    ” MUL_DSIP


***********OUTPUT**************

VALUE OF P_RES =          40

VALUE OF RES =           0

VALUE OF RES =          40


Serkan AKKAVAK

Computer Engineer BSc

Head of SAP & Software Department

Contact : serkurumsal@yandex.com