SAP TV_SHOW_CASH_FLOW_ALV Function Module for RiskM: Cash Flow anzeigen über den ABAP List Viewer
TV_SHOW_CASH_FLOW_ALV is a standard tv show cash flow alv SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for RiskM: Cash Flow anzeigen über den ABAP List Viewer 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 tv show cash flow alv FM, simply by entering the name TV_SHOW_CASH_FLOW_ALV into the relevant SAP transaction such as SE37 or SE38.
Function Group: TVRP
Program Name: SAPLTVRP
Main Program: SAPLTVRP
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TV_SHOW_CASH_FLOW_ALV 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 'TV_SHOW_CASH_FLOW_ALV'"RiskM: Cash Flow anzeigen über den ABAP List Viewer.
EXPORTING
* E_GLIED = ' ' "
* INTERVALS = 06 "
F_DATE = "
* HORIZONT = "
* SZENARI1 = ' ' "
* SZENARI2 = ' ' "
* SZENARI3 = ' ' "
T_DATE = "
STATUS = "
* G_REPID = "
TABLES
E_CASHFLOW = "
E_RF40V = "
S_BUKRS = "
S_CASHFLOW1 = "
S_CASHFLOW2 = "
S_DISPW = "
IMPORTING Parameters details for TV_SHOW_CASH_FLOW_ALV
E_GLIED -
Data type: T038-GLIEDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
INTERVALS -
Data type: VTV_KOPSK-PERIODSDefault: 06
Optional: Yes
Call by Reference: No ( called with pass by value option)
F_DATE -
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
HORIZONT -
Data type: SY-DATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
SZENARI1 -
Data type: VTVSZKO-SZENARIDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SZENARI2 -
Data type: VTVSZKO-SZENARIDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SZENARI3 -
Data type: VTVSZKO-SZENARIDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
T_DATE -
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
STATUS -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
G_REPID -
Data type: SY-REPIDOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for TV_SHOW_CASH_FLOW_ALV
E_CASHFLOW -
Data type: VTVCASHFLOptional: No
Call by Reference: No ( called with pass by value option)
E_RF40V -
Data type: RF40VOptional: No
Call by Reference: No ( called with pass by value option)
S_BUKRS -
Data type: TVSL_BUKRS_TABOptional: No
Call by Reference: No ( called with pass by value option)
S_CASHFLOW1 -
Data type: VTVCASHFLOptional: No
Call by Reference: No ( called with pass by value option)
S_CASHFLOW2 -
Data type: VTVCASHFLOptional: No
Call by Reference: No ( called with pass by value option)
S_DISPW -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TV_SHOW_CASH_FLOW_ALV 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_glied | TYPE T038-GLIED, " SPACE | |||
| lt_e_cashflow | TYPE STANDARD TABLE OF VTVCASHFL, " | |||
| lv_intervals | TYPE VTV_KOPSK-PERIODS, " 06 | |||
| lv_f_date | TYPE SY-DATUM, " | |||
| lt_e_rf40v | TYPE STANDARD TABLE OF RF40V, " | |||
| lt_s_bukrs | TYPE STANDARD TABLE OF TVSL_BUKRS_TAB, " | |||
| lv_horizont | TYPE SY-DATUM, " | |||
| lv_szenari1 | TYPE VTVSZKO-SZENARI, " SPACE | |||
| lt_s_cashflow1 | TYPE STANDARD TABLE OF VTVCASHFL, " | |||
| lv_szenari2 | TYPE VTVSZKO-SZENARI, " SPACE | |||
| lt_s_cashflow2 | TYPE STANDARD TABLE OF VTVCASHFL, " | |||
| lt_s_dispw | TYPE STANDARD TABLE OF VTVCASHFL, " | |||
| lv_szenari3 | TYPE VTVSZKO-SZENARI, " SPACE | |||
| lv_t_date | TYPE SY-DATUM, " | |||
| lv_status | TYPE C, " | |||
| lv_g_repid | TYPE SY-REPID. " |
|   CALL FUNCTION 'TV_SHOW_CASH_FLOW_ALV' "RiskM: Cash Flow anzeigen über den ABAP List Viewer |
| EXPORTING | ||
| E_GLIED | = lv_e_glied | |
| INTERVALS | = lv_intervals | |
| F_DATE | = lv_f_date | |
| HORIZONT | = lv_horizont | |
| SZENARI1 | = lv_szenari1 | |
| SZENARI2 | = lv_szenari2 | |
| SZENARI3 | = lv_szenari3 | |
| T_DATE | = lv_t_date | |
| STATUS | = lv_status | |
| G_REPID | = lv_g_repid | |
| TABLES | ||
| E_CASHFLOW | = lt_e_cashflow | |
| E_RF40V | = lt_e_rf40v | |
| S_BUKRS | = lt_s_bukrs | |
| S_CASHFLOW1 | = lt_s_cashflow1 | |
| S_CASHFLOW2 | = lt_s_cashflow2 | |
| S_DISPW | = lt_s_dispw | |
| . " TV_SHOW_CASH_FLOW_ALV | ||
ABAP code using 7.40 inline data declarations to call FM TV_SHOW_CASH_FLOW_ALV
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 GLIED FROM T038 INTO @DATA(ld_e_glied). | ||||
| DATA(ld_e_glied) | = ' '. | |||
| "SELECT single PERIODS FROM VTV_KOPSK INTO @DATA(ld_intervals). | ||||
| DATA(ld_intervals) | = 06. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_f_date). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_horizont). | ||||
| "SELECT single SZENARI FROM VTVSZKO INTO @DATA(ld_szenari1). | ||||
| DATA(ld_szenari1) | = ' '. | |||
| "SELECT single SZENARI FROM VTVSZKO INTO @DATA(ld_szenari2). | ||||
| DATA(ld_szenari2) | = ' '. | |||
| "SELECT single SZENARI FROM VTVSZKO INTO @DATA(ld_szenari3). | ||||
| DATA(ld_szenari3) | = ' '. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_t_date). | ||||
| "SELECT single REPID FROM SY INTO @DATA(ld_g_repid). | ||||
Search for further information about these or an SAP related objects