SAP CREATE_FICTIVE_CASHFLOW Function Module for Create Normalized Purchase as Basis to Create Full Cash Flow
CREATE_FICTIVE_CASHFLOW is a standard create fictive 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 Create Normalized Purchase as Basis to Create Full Cash Flow 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 create fictive cashflow FM, simply by entering the name CREATE_FICTIVE_CASHFLOW into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVW4
Program Name: SAPLFVW4
Main Program: SAPLFVW4
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CREATE_FICTIVE_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 'CREATE_FICTIVE_CASHFLOW'"Create Normalized Purchase as Basis to Create Full Cash Flow.
EXPORTING
IM_ANLA = "Basic data for Security
* IM_SET_NAME = "Redemption schedule set
* IM_ANLE = "Interest-Bearing Securities
* IM_FLG_POPUP4POSCAT = ' ' "Popup for active/passive
IMPORTING
EX_CASHFLOW_CALCULATOR = "Interface für Cash Flow Calculator
EX_IT_CF_FLOW = "Treasury: Flow Table for Cash Flow Calculation
EX_FLG_ERR = "Error Indicator
CHANGING
IE_ZKOKO = "Condition header for Security
IE_KOPO = "Table Type for Table VVZZKOPO
IMPORTING Parameters details for CREATE_FICTIVE_CASHFLOW
IM_ANLA - Basic data for Security
Data type: VWPANLAOptional: No
Call by Reference: Yes
IM_SET_NAME - Redemption schedule set
Data type: RDPT_SET_NAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_ANLE - Interest-Bearing Securities
Data type: VWPANLEOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_FLG_POPUP4POSCAT - Popup for active/passive
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for CREATE_FICTIVE_CASHFLOW
EX_CASHFLOW_CALCULATOR - Interface für Cash Flow Calculator
Data type: IF_CASHFLOW_CALCULATOR_TRSOptional: No
Call by Reference: Yes
EX_IT_CF_FLOW - Treasury: Flow Table for Cash Flow Calculation
Data type: TRSY_CF_FLOWOptional: No
Call by Reference: Yes
EX_FLG_ERR - Error Indicator
Data type: COptional: No
Call by Reference: Yes
CHANGING Parameters details for CREATE_FICTIVE_CASHFLOW
IE_ZKOKO - Condition header for Security
Data type: VZZKOKOOptional: No
Call by Reference: No ( called with pass by value option)
IE_KOPO - Table Type for Table VVZZKOPO
Data type: TRTY_VVZZKOPOOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CREATE_FICTIVE_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_im_anla | TYPE VWPANLA, " | |||
| lv_ie_zkoko | TYPE VZZKOKO, " | |||
| lv_ex_cashflow_calculator | TYPE IF_CASHFLOW_CALCULATOR_TRS, " | |||
| lv_ie_kopo | TYPE TRTY_VVZZKOPO, " | |||
| lv_im_set_name | TYPE RDPT_SET_NAME, " | |||
| lv_ex_it_cf_flow | TYPE TRSY_CF_FLOW, " | |||
| lv_im_anle | TYPE VWPANLE, " | |||
| lv_ex_flg_err | TYPE C, " | |||
| lv_im_flg_popup4poscat | TYPE XFELD. " SPACE |
|   CALL FUNCTION 'CREATE_FICTIVE_CASHFLOW' "Create Normalized Purchase as Basis to Create Full Cash Flow |
| EXPORTING | ||
| IM_ANLA | = lv_im_anla | |
| IM_SET_NAME | = lv_im_set_name | |
| IM_ANLE | = lv_im_anle | |
| IM_FLG_POPUP4POSCAT | = lv_im_flg_popup4poscat | |
| IMPORTING | ||
| EX_CASHFLOW_CALCULATOR | = lv_ex_cashflow_calculator | |
| EX_IT_CF_FLOW | = lv_ex_it_cf_flow | |
| EX_FLG_ERR | = lv_ex_flg_err | |
| CHANGING | ||
| IE_ZKOKO | = lv_ie_zkoko | |
| IE_KOPO | = lv_ie_kopo | |
| . " CREATE_FICTIVE_CASHFLOW | ||
ABAP code using 7.40 inline data declarations to call FM CREATE_FICTIVE_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.| DATA(ld_im_flg_popup4poscat) | = ' '. | |||
Search for further information about these or an SAP related objects