SAP CASH_FLOW_CONSTRUCT Function Module for NOTRANSL: Baut den CASH-FLOW auf









CASH_FLOW_CONSTRUCT is a standard cash flow construct SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Baut den CASH-FLOW auf 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 cash flow construct FM, simply by entering the name CASH_FLOW_CONSTRUCT into the relevant SAP transaction such as SE37 or SE38.

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



Function CASH_FLOW_CONSTRUCT 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 'CASH_FLOW_CONSTRUCT'"NOTRANSL: Baut den CASH-FLOW auf
EXPORTING
* I_CFLEISTE = ' ' "Interfaces-Parameters for the cash_flow

IMPORTING
E_BFRATE = "Amount in position currency
E_DATUM_LFZ = "Calculation Date
E_DRSALDO = "Calculation Date
E_RSALDO = "Nominal amount

TABLES
IBEPP = "Transaction data - Planned and actual item
IKOPO = "View of VZZKOPO with additional info. from VKOPOSTEU

EXCEPTIONS
KEINE_TILGUNGSKONDITIONEN = 1 LAUFZEITENDE_FEHLT = 2 LAUFZEITENDE_NICHT_ERMITTELBAR = 3 LAUFZEIT_ODER_RATE_FEHLT = 4 NEGATIVE_TILGUNG_AUFGETRETEN = 5
.



IMPORTING Parameters details for CASH_FLOW_CONSTRUCT

I_CFLEISTE - Interfaces-Parameters for the cash_flow

Data type: RCFLEISTE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CASH_FLOW_CONSTRUCT

E_BFRATE - Amount in position currency

Data type: VZZBEPP-BFRATE
Optional: No
Call by Reference: No ( called with pass by value option)

E_DATUM_LFZ - Calculation Date

Data type: VZZBEPP-DVALUT
Optional: No
Call by Reference: No ( called with pass by value option)

E_DRSALDO - Calculation Date

Data type: VZZBEPP-DVALUT
Optional: No
Call by Reference: No ( called with pass by value option)

E_RSALDO - Nominal amount

Data type: VZZBEPP-BNWHR
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for CASH_FLOW_CONSTRUCT

IBEPP - Transaction data - Planned and actual item

Data type: VZZBEPP
Optional: No
Call by Reference: No ( called with pass by value option)

IKOPO - View of VZZKOPO with additional info. from VKOPOSTEU

Data type: VVZZKOPO
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

KEINE_TILGUNGSKONDITIONEN -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

LAUFZEITENDE_FEHLT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

LAUFZEITENDE_NICHT_ERMITTELBAR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

LAUFZEIT_ODER_RATE_FEHLT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NEGATIVE_TILGUNG_AUFGETRETEN -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CASH_FLOW_CONSTRUCT 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_ibepp  TYPE STANDARD TABLE OF VZZBEPP, "   
lv_e_bfrate  TYPE VZZBEPP-BFRATE, "   
lv_i_cfleiste  TYPE RCFLEISTE, "   SPACE
lv_keine_tilgungskonditionen  TYPE RCFLEISTE, "   
lt_ikopo  TYPE STANDARD TABLE OF VVZZKOPO, "   
lv_e_datum_lfz  TYPE VZZBEPP-DVALUT, "   
lv_laufzeitende_fehlt  TYPE VZZBEPP, "   
lv_e_drsaldo  TYPE VZZBEPP-DVALUT, "   
lv_laufzeitende_nicht_ermittelbar  TYPE VZZBEPP, "   
lv_e_rsaldo  TYPE VZZBEPP-BNWHR, "   
lv_laufzeit_oder_rate_fehlt  TYPE VZZBEPP, "   
lv_negative_tilgung_aufgetreten  TYPE VZZBEPP. "   

  CALL FUNCTION 'CASH_FLOW_CONSTRUCT'  "NOTRANSL: Baut den CASH-FLOW auf
    EXPORTING
         I_CFLEISTE = lv_i_cfleiste
    IMPORTING
         E_BFRATE = lv_e_bfrate
         E_DATUM_LFZ = lv_e_datum_lfz
         E_DRSALDO = lv_e_drsaldo
         E_RSALDO = lv_e_rsaldo
    TABLES
         IBEPP = lt_ibepp
         IKOPO = lt_ikopo
    EXCEPTIONS
        KEINE_TILGUNGSKONDITIONEN = 1
        LAUFZEITENDE_FEHLT = 2
        LAUFZEITENDE_NICHT_ERMITTELBAR = 3
        LAUFZEIT_ODER_RATE_FEHLT = 4
        NEGATIVE_TILGUNG_AUFGETRETEN = 5
. " CASH_FLOW_CONSTRUCT




ABAP code using 7.40 inline data declarations to call FM CASH_FLOW_CONSTRUCT

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 BFRATE FROM VZZBEPP INTO @DATA(ld_e_bfrate).
 
DATA(ld_i_cfleiste) = ' '.
 
 
 
"SELECT single DVALUT FROM VZZBEPP INTO @DATA(ld_e_datum_lfz).
 
 
"SELECT single DVALUT FROM VZZBEPP INTO @DATA(ld_e_drsaldo).
 
 
"SELECT single BNWHR FROM VZZBEPP INTO @DATA(ld_e_rsaldo).
 
 
 


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!