SAP FIMA_SECANT_METHOD Function Module for









FIMA_SECANT_METHOD is a standard fima secant method SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 fima secant method FM, simply by entering the name FIMA_SECANT_METHOD into the relevant SAP transaction such as SE37 or SE38.

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



Function FIMA_SECANT_METHOD 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 'FIMA_SECANT_METHOD'"
EXPORTING
* I_DELTA_D = '0.00001' "
* I_DELTA_H = '0.01' "
* I_REF_FIMA_ITERATION_OBJECT = "
* I_FORMROUTINE = "
* I_PROGRAMNAME = "
* I_STARTWERT = 10 "
* I_VARNAME = ' ' "Variable name
* I_MAX_STEPS = 50 "
* I_CHECK = ' ' "

IMPORTING
E_ITERWERT = "
E_STEPS = "number of iteration steps
E_Y = "Function Value

EXCEPTIONS
NICHT_LOESBAR = 1 APPLICATION_ERROR = 2
.



IMPORTING Parameters details for FIMA_SECANT_METHOD

I_DELTA_D -

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

I_DELTA_H -

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

I_REF_FIMA_ITERATION_OBJECT -

Data type: IF_FIMA_ITERATION_OBJECT
Optional: Yes
Call by Reference: Yes

I_FORMROUTINE -

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

I_PROGRAMNAME -

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

I_STARTWERT -

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

I_VARNAME - Variable name

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

I_MAX_STEPS -

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

I_CHECK -

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

EXPORTING Parameters details for FIMA_SECANT_METHOD

E_ITERWERT -

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

E_STEPS - number of iteration steps

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

E_Y - Function Value

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

EXCEPTIONS details

NICHT_LOESBAR -

Data type:
Optional: No
Call by Reference: Yes

APPLICATION_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FIMA_SECANT_METHOD 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_i_delta_d  TYPE STRING, "   '0,00001'
lv_e_iterwert  TYPE TRFF_VALUE, "   
lv_nicht_loesbar  TYPE TRFF_VALUE, "   
lv_e_steps  TYPE SYINDEX, "   
lv_i_delta_h  TYPE SYINDEX, "   '0,01'
lv_application_error  TYPE SYINDEX, "   
lv_e_y  TYPE TRFF_VALUE, "   
lv_i_ref_fima_iteration_object  TYPE IF_FIMA_ITERATION_OBJECT, "   
lv_i_formroutine  TYPE IF_FIMA_ITERATION_OBJECT, "   
lv_i_programname  TYPE IF_FIMA_ITERATION_OBJECT, "   
lv_i_startwert  TYPE TRFF_VALUE, "   10
lv_i_varname  TYPE TRFF_VALUE, "   SPACE
lv_i_max_steps  TYPE SYINDEX, "   50
lv_i_check  TYPE TRFF_FLG. "   SPACE

  CALL FUNCTION 'FIMA_SECANT_METHOD'  "
    EXPORTING
         I_DELTA_D = lv_i_delta_d
         I_DELTA_H = lv_i_delta_h
         I_REF_FIMA_ITERATION_OBJECT = lv_i_ref_fima_iteration_object
         I_FORMROUTINE = lv_i_formroutine
         I_PROGRAMNAME = lv_i_programname
         I_STARTWERT = lv_i_startwert
         I_VARNAME = lv_i_varname
         I_MAX_STEPS = lv_i_max_steps
         I_CHECK = lv_i_check
    IMPORTING
         E_ITERWERT = lv_e_iterwert
         E_STEPS = lv_e_steps
         E_Y = lv_e_y
    EXCEPTIONS
        NICHT_LOESBAR = 1
        APPLICATION_ERROR = 2
. " FIMA_SECANT_METHOD




ABAP code using 7.40 inline data declarations to call FM FIMA_SECANT_METHOD

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_i_delta_d) = '0.00001'.
 
 
 
 
DATA(ld_i_delta_h) = '0.01'.
 
 
 
 
 
 
DATA(ld_i_startwert) = 10.
 
DATA(ld_i_varname) = ' '.
 
DATA(ld_i_max_steps) = 50.
 
DATA(ld_i_check) = ' '.
 


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!