SAP CAP_FLOOR_CASHFLOW Function Module for Cashflow eines Cap / Floor zu einem gegebenen Zeitpunkt
CAP_FLOOR_CASHFLOW is a standard cap floor cashflow SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Cashflow eines Cap / Floor zu einem gegebenen Zeitpunkt 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 cap floor cashflow FM, simply by entering the name CAP_FLOOR_CASHFLOW into the relevant SAP transaction such as SE37 or SE38.
Function Group: TVZB
Program Name: SAPLTVZB
Main Program: SAPLTVZB
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CAP_FLOOR_CASHFLOW 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 'CAP_FLOOR_CASHFLOW'"Cashflow eines Cap / Floor zu einem gegebenen Zeitpunkt.
EXPORTING
* AKT_DATUM = SY-DATUM "
* AUSW_DATUM = SY-DATUM "Datum, zu dem der Barwert (Prämie) gerechnet wir
* SZENAME = ' ' "
SCAPFLOOR = "
* SHIFT_REGEL = "
IMPORTING
MISSING_FIXING = "
TABLES
E_CASHFLOW = "
CF_BEWEG = "
EXCEPTIONS
NEG_DAYS = 1 NO_PC = 2 ZERO_NEG_SPOT = 3 ZERO_NEG_STRIKE = 4
IMPORTING Parameters details for CAP_FLOOR_CASHFLOW
AKT_DATUM -
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
AUSW_DATUM - Datum, zu dem der Barwert (Prämie) gerechnet wir
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
SZENAME -
Data type: VTVMETHOD-SZENAMEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
SCAPFLOOR -
Data type: ATPA-SCAPFLOOROptional: No
Call by Reference: No ( called with pass by value option)
SHIFT_REGEL -
Data type: JBRREGOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CAP_FLOOR_CASHFLOW
MISSING_FIXING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CAP_FLOOR_CASHFLOW
E_CASHFLOW -
Data type: VTVCASHFLOptional: No
Call by Reference: No ( called with pass by value option)
CF_BEWEG -
Data type: JBRBEWEGOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NEG_DAYS - Anzahl Tage negativ
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_PC - Keine Kennung für Put/Call
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ZERO_NEG_SPOT - Spot <= 0
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ZERO_NEG_STRIKE - Strike <=0
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CAP_FLOOR_CASHFLOW 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_neg_days | TYPE STRING, " | |||
| lv_akt_datum | TYPE SY-DATUM, " SY-DATUM | |||
| lt_e_cashflow | TYPE STANDARD TABLE OF VTVCASHFL, " | |||
| lv_missing_fixing | TYPE VTVCASHFL, " | |||
| lv_no_pc | TYPE VTVCASHFL, " | |||
| lt_cf_beweg | TYPE STANDARD TABLE OF JBRBEWEG, " | |||
| lv_ausw_datum | TYPE SY-DATUM, " SY-DATUM | |||
| lv_szename | TYPE VTVMETHOD-SZENAME, " ' ' | |||
| lv_zero_neg_spot | TYPE VTVMETHOD, " | |||
| lv_scapfloor | TYPE ATPA-SCAPFLOOR, " | |||
| lv_zero_neg_strike | TYPE ATPA, " | |||
| lv_shift_regel | TYPE JBRREG. " |
|   CALL FUNCTION 'CAP_FLOOR_CASHFLOW' "Cashflow eines Cap / Floor zu einem gegebenen Zeitpunkt |
| EXPORTING | ||
| AKT_DATUM | = lv_akt_datum | |
| AUSW_DATUM | = lv_ausw_datum | |
| SZENAME | = lv_szename | |
| SCAPFLOOR | = lv_scapfloor | |
| SHIFT_REGEL | = lv_shift_regel | |
| IMPORTING | ||
| MISSING_FIXING | = lv_missing_fixing | |
| TABLES | ||
| E_CASHFLOW | = lt_e_cashflow | |
| CF_BEWEG | = lt_cf_beweg | |
| EXCEPTIONS | ||
| NEG_DAYS = 1 | ||
| NO_PC = 2 | ||
| ZERO_NEG_SPOT = 3 | ||
| ZERO_NEG_STRIKE = 4 | ||
| . " CAP_FLOOR_CASHFLOW | ||
ABAP code using 7.40 inline data declarations to call FM CAP_FLOOR_CASHFLOW
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 DATUM FROM SY INTO @DATA(ld_akt_datum). | ||||
| DATA(ld_akt_datum) | = SY-DATUM. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_ausw_datum). | ||||
| DATA(ld_ausw_datum) | = SY-DATUM. | |||
| "SELECT single SZENAME FROM VTVMETHOD INTO @DATA(ld_szename). | ||||
| DATA(ld_szename) | = ' '. | |||
| "SELECT single SCAPFLOOR FROM ATPA INTO @DATA(ld_scapfloor). | ||||
Search for further information about these or an SAP related objects