SAP TM_INTEREST_CONDITION_GENERATE Function Module for Generate an Interest Condition









TM_INTEREST_CONDITION_GENERATE is a standard tm interest condition generate SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Generate an Interest Condition 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 tm interest condition generate FM, simply by entering the name TM_INTEREST_CONDITION_GENERATE into the relevant SAP transaction such as SE37 or SE38.

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



Function TM_INTEREST_CONDITION_GENERATE 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 'TM_INTEREST_CONDITION_GENERATE'"Generate an Interest Condition
EXPORTING
* I_FLG_CHANGE = "Kennzeichen: Änderung einer Kondition?
I_SKOART = "Condition Type
I_SSIGN = "Direction
I_ARHYTM = "Frequency
I_FHA = "Transaction
I_FHAZU = "Curr. Transaction
* I_FINKO = "Kondition (eingehend)

IMPORTING
E_FINKO = "Kondition (ausgehend)

EXCEPTIONS
INVALID = 1
.



IMPORTING Parameters details for TM_INTEREST_CONDITION_GENERATE

I_FLG_CHANGE - Kennzeichen: Änderung einer Kondition?

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

I_SKOART - Condition Type

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

I_SSIGN - Direction

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

I_ARHYTM - Frequency

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

I_FHA - Transaction

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

I_FHAZU - Curr. Transaction

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

I_FINKO - Kondition (eingehend)

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

EXPORTING Parameters details for TM_INTEREST_CONDITION_GENERATE

E_FINKO - Kondition (ausgehend)

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

EXCEPTIONS details

INVALID - Not Permitted

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

Copy and paste ABAP code example for TM_INTEREST_CONDITION_GENERATE 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_e_finko  TYPE VTBFINKO, "   
lv_invalid  TYPE VTBFINKO, "   
lv_i_flg_change  TYPE BOOLE-BOOLE, "   
lv_i_skoart  TYPE VTBFINKO-SKOART, "   
lv_i_ssign  TYPE VTBFINKO-SSIGN, "   
lv_i_arhytm  TYPE VTMFINKO-ARHYTM, "   
lv_i_fha  TYPE VTBFHA, "   
lv_i_fhazu  TYPE VTBFHAZU, "   
lv_i_finko  TYPE VTBFINKO. "   

  CALL FUNCTION 'TM_INTEREST_CONDITION_GENERATE'  "Generate an Interest Condition
    EXPORTING
         I_FLG_CHANGE = lv_i_flg_change
         I_SKOART = lv_i_skoart
         I_SSIGN = lv_i_ssign
         I_ARHYTM = lv_i_arhytm
         I_FHA = lv_i_fha
         I_FHAZU = lv_i_fhazu
         I_FINKO = lv_i_finko
    IMPORTING
         E_FINKO = lv_e_finko
    EXCEPTIONS
        INVALID = 1
. " TM_INTEREST_CONDITION_GENERATE




ABAP code using 7.40 inline data declarations to call FM TM_INTEREST_CONDITION_GENERATE

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.

 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_flg_change).
 
"SELECT single SKOART FROM VTBFINKO INTO @DATA(ld_i_skoart).
 
"SELECT single SSIGN FROM VTBFINKO INTO @DATA(ld_i_ssign).
 
"SELECT single ARHYTM FROM VTMFINKO INTO @DATA(ld_i_arhytm).
 
 
 
 


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!