Calling Calculator in ABAP Program

* FM - FITRV_CALCULATOR is used to call the calculator.

Report Program

REPORT ZAB_CALCULATOR.

data: lv_output type c 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

Custom entity/Action dialog in RAP using Unmanaged scenario

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

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