SAP TB_CASHFLOW_SHOW Function Module for Display Cash Flow for Treasury
TB_CASHFLOW_SHOW is a standard tb cashflow show SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Display Cash Flow for Treasury 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 tb cashflow show FM, simply by entering the name TB_CASHFLOW_SHOW into the relevant SAP transaction such as SE37 or SE38.
Function Group: TB06
Program Name: SAPLTB06
Main Program: SAPLTB06
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function TB_CASHFLOW_SHOW 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 'TB_CASHFLOW_SHOW'"Display Cash Flow for Treasury.
EXPORTING
* I_AUTOBUCHEN = ' ' "
* I_FUNKTION = ' ' "Function to Be Executed
* I_HEADER_DYNNR = '0060' "
* I_HEADER_REPID = 'SAPMF705' "
* I_SORT = '1' "
IMPORTING
E_DATALOSS = "
E_NEU_BERECHNEN = "
TABLES
* I_ANPASS = "Tabelle mit den Kondionsanpassungsterminen
I_BEWE = "eingehende Bewegungen
IMPORTING Parameters details for TB_CASHFLOW_SHOW
I_AUTOBUCHEN -
Data type: VTIZBMF71A-XMERKDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FUNKTION - Function to Be Executed
Data type: VTIZBMF71A-XMERKDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_HEADER_DYNNR -
Data type: SY-DYNNRDefault: '0060'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_HEADER_REPID -
Data type: SY-REPIDDefault: 'SAPMF705'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SORT -
Data type: VTIZBMF71A-XMERKDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TB_CASHFLOW_SHOW
E_DATALOSS -
Data type: R185D-DATALOSSOptional: No
Call by Reference: No ( called with pass by value option)
E_NEU_BERECHNEN -
Data type: VTIZBMF71A-XMERKOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for TB_CASHFLOW_SHOW
I_ANPASS - Tabelle mit den Kondionsanpassungsterminen
Data type: VTBZIANPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BEWE - eingehende Bewegungen
Data type: VTBFHAPOOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TB_CASHFLOW_SHOW 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: | ||||
lt_i_anpass | TYPE STANDARD TABLE OF VTBZIANP, " | |||
lv_e_dataloss | TYPE R185D-DATALOSS, " | |||
lv_i_autobuchen | TYPE VTIZBMF71A-XMERK, " ' ' | |||
lt_i_bewe | TYPE STANDARD TABLE OF VTBFHAPO, " | |||
lv_i_funktion | TYPE VTIZBMF71A-XMERK, " ' ' | |||
lv_e_neu_berechnen | TYPE VTIZBMF71A-XMERK, " | |||
lv_i_header_dynnr | TYPE SY-DYNNR, " '0060' | |||
lv_i_header_repid | TYPE SY-REPID, " 'SAPMF705' | |||
lv_i_sort | TYPE VTIZBMF71A-XMERK. " '1' |
  CALL FUNCTION 'TB_CASHFLOW_SHOW' "Display Cash Flow for Treasury |
EXPORTING | ||
I_AUTOBUCHEN | = lv_i_autobuchen | |
I_FUNKTION | = lv_i_funktion | |
I_HEADER_DYNNR | = lv_i_header_dynnr | |
I_HEADER_REPID | = lv_i_header_repid | |
I_SORT | = lv_i_sort | |
IMPORTING | ||
E_DATALOSS | = lv_e_dataloss | |
E_NEU_BERECHNEN | = lv_e_neu_berechnen | |
TABLES | ||
I_ANPASS | = lt_i_anpass | |
I_BEWE | = lt_i_bewe | |
. " TB_CASHFLOW_SHOW |
ABAP code using 7.40 inline data declarations to call FM TB_CASHFLOW_SHOW
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 DATALOSS FROM R185D INTO @DATA(ld_e_dataloss). | ||||
"SELECT single XMERK FROM VTIZBMF71A INTO @DATA(ld_i_autobuchen). | ||||
DATA(ld_i_autobuchen) | = ' '. | |||
"SELECT single XMERK FROM VTIZBMF71A INTO @DATA(ld_i_funktion). | ||||
DATA(ld_i_funktion) | = ' '. | |||
"SELECT single XMERK FROM VTIZBMF71A INTO @DATA(ld_e_neu_berechnen). | ||||
"SELECT single DYNNR FROM SY INTO @DATA(ld_i_header_dynnr). | ||||
DATA(ld_i_header_dynnr) | = '0060'. | |||
"SELECT single REPID FROM SY INTO @DATA(ld_i_header_repid). | ||||
DATA(ld_i_header_repid) | = 'SAPMF705'. | |||
"SELECT single XMERK FROM VTIZBMF71A INTO @DATA(ld_i_sort). | ||||
DATA(ld_i_sort) | = '1'. | |||
Search for further information about these or an SAP related objects