SAP FITRV_CALCULATOR Function Module for Pocket Calculator for F4 Help









FITRV_CALCULATOR is a standard fitrv calculator SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Pocket Calculator for F4 Help processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for fitrv calculator FM, simply by entering the name FITRV_CALCULATOR into the relevant SAP transaction such as SE37 or SE38.

Function Group: FITRV_UTIL
Program Name: SAPLFITRV_UTIL
Main Program:
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FITRV_CALCULATOR pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'FITRV_CALCULATOR'"Pocket Calculator for F4 Help
EXPORTING
* INPUT_VALUE = "Value to Be Displayed When Called
* CURRENCY = "Currency for Rounding the Result
* START_COLUMN = '10' "Column for Window Positioning
* START_ROW = '10' "Line for Window Positioning

IMPORTING
OUTPUT_VALUE = "Calculated Value

EXCEPTIONS
INVALID_INPUT = 1 CALCULATION_CANCELED = 2
.



IMPORTING Parameters details for FITRV_CALCULATOR

INPUT_VALUE - Value to Be Displayed When Called

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

CURRENCY - Currency for Rounding the Result

Data type: WAERS
Optional: Yes
Call by Reference: No ( called with pass by value option)

START_COLUMN - Column for Window Positioning

Data type:
Default: '10'
Optional: Yes
Call by Reference: No ( called with pass by value option)

START_ROW - Line for Window Positioning

Data type:
Default: '10'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FITRV_CALCULATOR

OUTPUT_VALUE - Calculated Value

Data type:
Optional: No
Call by Reference: Yes

EXCEPTIONS details

INVALID_INPUT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

CALCULATION_CANCELED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for FITRV_CALCULATOR Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_input_value  TYPE STRING, "   
lv_output_value  TYPE STRING, "   
lv_invalid_input  TYPE STRING, "   
lv_currency  TYPE WAERS, "   
lv_calculation_canceled  TYPE WAERS, "   
lv_start_column  TYPE WAERS, "   '10'
lv_start_row  TYPE WAERS. "   '10'

  CALL FUNCTION 'FITRV_CALCULATOR'  "Pocket Calculator for F4 Help
    EXPORTING
         INPUT_VALUE = lv_input_value
         CURRENCY = lv_currency
         START_COLUMN = lv_start_column
         START_ROW = lv_start_row
    IMPORTING
         OUTPUT_VALUE = lv_output_value
    EXCEPTIONS
        INVALID_INPUT = 1
        CALCULATION_CANCELED = 2
. " FITRV_CALCULATOR




ABAP code using 7.40 inline data declarations to call FM FITRV_CALCULATOR

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
DATA(ld_start_column) = '10'.
 
DATA(ld_start_row) = '10'.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!