SAP TM_AMOUNTS_DETERMINE_NET Function Module for Determine Amounts of a Money Market Transaction per Key Date
TM_AMOUNTS_DETERMINE_NET is a standard tm amounts determine net SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determine Amounts of a Money Market Transaction per Key Date 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 amounts determine net FM, simply by entering the name TM_AMOUNTS_DETERMINE_NET into the relevant SAP transaction such as SE37 or SE38.
Function Group: TM01
Program Name: SAPLTM01
Main Program: SAPLTM01
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TM_AMOUNTS_DETERMINE_NET 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_AMOUNTS_DETERMINE_NET'"Determine Amounts of a Money Market Transaction per Key Date.
EXPORTING
* CUT_OFF_DATE = 0 "Key Date
* LOCAL_CURRENCY = "Local Currency
IMPORTING
AMOUNTS = "Akkumulierte Beträge zum Stichtag
AMOUNTS_LC = "Akkumulierte Beträge zum Stichtag in Hauswährung
NOMINAL_AMOUNT = "Total Nominal amount
NOMINAL_AMOUNT_RVS = "Total Nominal amount upto key date
NOMINAL_AMOUNT_RAS = "Total Nominal amount on key date
TABLES
TRANSACTIONS = "Flows
IMPORTING Parameters details for TM_AMOUNTS_DETERMINE_NET
CUT_OFF_DATE - Key Date
Data type: VTBFHAPO-DZTERMOptional: Yes
Call by Reference: No ( called with pass by value option)
LOCAL_CURRENCY - Local Currency
Data type: VTBFHAPO-WZBETROptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TM_AMOUNTS_DETERMINE_NET
AMOUNTS - Akkumulierte Beträge zum Stichtag
Data type: VTBAKKUOptional: No
Call by Reference: No ( called with pass by value option)
AMOUNTS_LC - Akkumulierte Beträge zum Stichtag in Hauswährung
Data type: VTBAKKUOptional: No
Call by Reference: No ( called with pass by value option)
NOMINAL_AMOUNT - Total Nominal amount
Data type: TM_BNOMIOptional: No
Call by Reference: No ( called with pass by value option)
NOMINAL_AMOUNT_RVS - Total Nominal amount upto key date
Data type: TM_BNOMIOptional: No
Call by Reference: No ( called with pass by value option)
NOMINAL_AMOUNT_RAS - Total Nominal amount on key date
Data type: TM_BNOMIOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for TM_AMOUNTS_DETERMINE_NET
TRANSACTIONS - Flows
Data type: VTBFHAPOOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TM_AMOUNTS_DETERMINE_NET 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_amounts | TYPE VTBAKKU, " | |||
| lv_cut_off_date | TYPE VTBFHAPO-DZTERM, " 0 | |||
| lt_transactions | TYPE STANDARD TABLE OF VTBFHAPO, " | |||
| lv_amounts_lc | TYPE VTBAKKU, " | |||
| lv_local_currency | TYPE VTBFHAPO-WZBETR, " | |||
| lv_nominal_amount | TYPE TM_BNOMI, " | |||
| lv_nominal_amount_rvs | TYPE TM_BNOMI, " | |||
| lv_nominal_amount_ras | TYPE TM_BNOMI. " |
|   CALL FUNCTION 'TM_AMOUNTS_DETERMINE_NET' "Determine Amounts of a Money Market Transaction per Key Date |
| EXPORTING | ||
| CUT_OFF_DATE | = lv_cut_off_date | |
| LOCAL_CURRENCY | = lv_local_currency | |
| IMPORTING | ||
| AMOUNTS | = lv_amounts | |
| AMOUNTS_LC | = lv_amounts_lc | |
| NOMINAL_AMOUNT | = lv_nominal_amount | |
| NOMINAL_AMOUNT_RVS | = lv_nominal_amount_rvs | |
| NOMINAL_AMOUNT_RAS | = lv_nominal_amount_ras | |
| TABLES | ||
| TRANSACTIONS | = lt_transactions | |
| . " TM_AMOUNTS_DETERMINE_NET | ||
ABAP code using 7.40 inline data declarations to call FM TM_AMOUNTS_DETERMINE_NET
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 DZTERM FROM VTBFHAPO INTO @DATA(ld_cut_off_date). | ||||
| "SELECT single WZBETR FROM VTBFHAPO INTO @DATA(ld_local_currency). | ||||
Search for further information about these or an SAP related objects