SAP FTR_FC_FEE_CALCULATE Function Module for FTR Facilities: Generate Cash Flow for a Facility









FTR_FC_FEE_CALCULATE is a standard ftr fc fee calculate SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for FTR Facilities: Generate Cash Flow for a Facility 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 ftr fc fee calculate FM, simply by entering the name FTR_FC_FEE_CALCULATE into the relevant SAP transaction such as SE37 or SE38.

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



Function FTR_FC_FEE_CALCULATE 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 'FTR_FC_FEE_CALCULATE'"FTR Facilities: Generate Cash Flow for a Facility
EXPORTING
PI_DATESTART = "Berechungsbeginn
PI_DATEEND = "Berechungsende
PI_SINCLE = "End of Term Inclusive Indicator
PI_ROUNDING = "Round (Up, Down or to the Nearest)
PI_TAB_PROFILES = "FTR Assignment Management: Profile Changes
PI_TAB_FINKO = "TR Transaction Management: Conditions Table
PI_CURRENCY = "Bezugswährung des Finanzstromrechners
PI_TAB_FEE = "Gebühren in Bewegungsform

IMPORTING
PE_TAB_FEE = "Gebühren in Bewegungsform

EXCEPTIONS
CALCULATE_FAILED = 1
.



IMPORTING Parameters details for FTR_FC_FEE_CALCULATE

PI_DATESTART - Berechungsbeginn

Data type: TB_DBLFZ
Optional: No
Call by Reference: Yes

PI_DATEEND - Berechungsende

Data type: TB_DELFZ
Optional: No
Call by Reference: Yes

PI_SINCLE - End of Term Inclusive Indicator

Data type: TB_SINCLE
Optional: No
Call by Reference: Yes

PI_ROUNDING - Round (Up, Down or to the Nearest)

Data type: TB_SRNDNG
Optional: No
Call by Reference: Yes

PI_TAB_PROFILES - FTR Assignment Management: Profile Changes

Data type: VTS_TAB_ASGN_PROFILE
Optional: No
Call by Reference: Yes

PI_TAB_FINKO - TR Transaction Management: Conditions Table

Data type: FTRTR_TAB_FINKO
Optional: No
Call by Reference: Yes

PI_CURRENCY - Bezugswährung des Finanzstromrechners

Data type: WWHR
Optional: No
Call by Reference: Yes

PI_TAB_FEE - Gebühren in Bewegungsform

Data type: FTRTR_TAB_FHAPO
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for FTR_FC_FEE_CALCULATE

PE_TAB_FEE - Gebühren in Bewegungsform

Data type: FTRTR_TAB_FHAPO
Optional: No
Call by Reference: Yes

EXCEPTIONS details

CALCULATE_FAILED - Berechungen fehlgeschlagen

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FTR_FC_FEE_CALCULATE 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_pe_tab_fee  TYPE FTRTR_TAB_FHAPO, "   
lv_pi_datestart  TYPE TB_DBLFZ, "   
lv_calculate_failed  TYPE TB_DBLFZ, "   
lv_pi_dateend  TYPE TB_DELFZ, "   
lv_pi_sincle  TYPE TB_SINCLE, "   
lv_pi_rounding  TYPE TB_SRNDNG, "   
lv_pi_tab_profiles  TYPE VTS_TAB_ASGN_PROFILE, "   
lv_pi_tab_finko  TYPE FTRTR_TAB_FINKO, "   
lv_pi_currency  TYPE WWHR, "   
lv_pi_tab_fee  TYPE FTRTR_TAB_FHAPO. "   

  CALL FUNCTION 'FTR_FC_FEE_CALCULATE'  "FTR Facilities: Generate Cash Flow for a Facility
    EXPORTING
         PI_DATESTART = lv_pi_datestart
         PI_DATEEND = lv_pi_dateend
         PI_SINCLE = lv_pi_sincle
         PI_ROUNDING = lv_pi_rounding
         PI_TAB_PROFILES = lv_pi_tab_profiles
         PI_TAB_FINKO = lv_pi_tab_finko
         PI_CURRENCY = lv_pi_currency
         PI_TAB_FEE = lv_pi_tab_fee
    IMPORTING
         PE_TAB_FEE = lv_pe_tab_fee
    EXCEPTIONS
        CALCULATE_FAILED = 1
. " FTR_FC_FEE_CALCULATE




ABAP code using 7.40 inline data declarations to call FM FTR_FC_FEE_CALCULATE

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.

 
 
 
 
 
 
 
 
 
 


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!