Calling Calculator in ABAP Program

* FM - FITRV_CALCULATOR is used to call the calculator.

Report Program

REPORT ZAB_CALCULATOR.

datalv_output type LENGTH 20.

CALL FUNCTION 'FITRV_CALCULATOR'
* EXPORTING
*   INPUT_VALUE                =
*   CURRENCY                   =
*   START_COLUMN               = '10'
*   START_ROW                  = '10'
 IMPORTING
   OUTPUT_VALUE               lv_output
 EXCEPTIONS
   INVALID_INPUT              1
   CALCULATION_CANCELED       2
   OTHERS                     3.

write 'Result is : ',lv_output.

Input

* Perform Operation finally click on equal button.

* In this example 5 * 5. Then click on =.

Output




Comments

Popular posts from this blog

New syntax for append- VALUE (new syntax 7.4+) in ABAP

Read statement new syntax in ABAP. (7.4+).

Concatenation new syntax( 7.4+ ).