SAP BCA_TD_CASHFLOW_CONSTRUCT Function Module for Create Cash Flow for BCA TD









BCA_TD_CASHFLOW_CONSTRUCT is a standard bca td cashflow 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 Create Cash Flow for BCA TD 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 bca td cashflow construct FM, simply by entering the name BCA_TD_CASHFLOW_CONSTRUCT into the relevant SAP transaction such as SE37 or SE38.

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



Function BCA_TD_CASHFLOW_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 'BCA_TD_CASHFLOW_CONSTRUCT'"Create Cash Flow for BCA TD
EXPORTING
FHA = "Transaction
FHAZU = "Transaction Activity
* FLOWTYPE_AA = ' ' "Flow Type
* FLOWTYPE_VZ = ' ' "Flow Type

TABLES
FHAPO_IN = "Transaction Flow
FHAPO_OUT = "Transaction Flow
FINKO = "Transaction Condition

EXCEPTIONS
FLOWTYPE_AA_INVALID = 1 FLOWTYPE_AA_MISSING = 2 FLOWTYPE_AA_UNKNOWN = 3 FLOWTYPE_VZ_INVALID = 4 FLOWTYPE_VZ_MISSING = 5 FLOWTYPE_VZ_UNKNOWN = 6
.



IMPORTING Parameters details for BCA_TD_CASHFLOW_CONSTRUCT

FHA - Transaction

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

FHAZU - Transaction Activity

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

FLOWTYPE_AA - Flow Type

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

FLOWTYPE_VZ - Flow Type

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

TABLES Parameters details for BCA_TD_CASHFLOW_CONSTRUCT

FHAPO_IN - Transaction Flow

Data type: VTBFHAPO
Optional: No
Call by Reference: Yes

FHAPO_OUT - Transaction Flow

Data type: VTBFHAPO
Optional: No
Call by Reference: Yes

FINKO - Transaction Condition

Data type: VTBFINKO
Optional: No
Call by Reference: Yes

EXCEPTIONS details

FLOWTYPE_AA_INVALID - Flow type not allowed for inflow

Data type:
Optional: No
Call by Reference: Yes

FLOWTYPE_AA_MISSING - Flow type not indicated for inflow

Data type:
Optional: No
Call by Reference: Yes

FLOWTYPE_AA_UNKNOWN - Flow type not defined for inflow

Data type:
Optional: No
Call by Reference: Yes

FLOWTYPE_VZ_INVALID - Flow type not allowed for interest capitalization

Data type:
Optional: No
Call by Reference: Yes

FLOWTYPE_VZ_MISSING - Flow type not indicated for interest capitalization

Data type:
Optional: No
Call by Reference: Yes

FLOWTYPE_VZ_UNKNOWN - Flow type not defined for interest capitalization

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for BCA_TD_CASHFLOW_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:
lv_fha  TYPE VTBFHA, "   
lt_fhapo_in  TYPE STANDARD TABLE OF VTBFHAPO, "   
lv_flowtype_aa_invalid  TYPE VTBFHAPO, "   
lv_fhazu  TYPE VTBFHAZU, "   
lt_fhapo_out  TYPE STANDARD TABLE OF VTBFHAPO, "   
lv_flowtype_aa_missing  TYPE VTBFHAPO, "   
lt_finko  TYPE STANDARD TABLE OF VTBFINKO, "   
lv_flowtype_aa  TYPE VTBFHAPO-SFHAZBA, "   SPACE
lv_flowtype_aa_unknown  TYPE VTBFHAPO, "   
lv_flowtype_vz  TYPE VTBFHAPO-SFHAZBA, "   SPACE
lv_flowtype_vz_invalid  TYPE VTBFHAPO, "   
lv_flowtype_vz_missing  TYPE VTBFHAPO, "   
lv_flowtype_vz_unknown  TYPE VTBFHAPO. "   

  CALL FUNCTION 'BCA_TD_CASHFLOW_CONSTRUCT'  "Create Cash Flow for BCA TD
    EXPORTING
         FHA = lv_fha
         FHAZU = lv_fhazu
         FLOWTYPE_AA = lv_flowtype_aa
         FLOWTYPE_VZ = lv_flowtype_vz
    TABLES
         FHAPO_IN = lt_fhapo_in
         FHAPO_OUT = lt_fhapo_out
         FINKO = lt_finko
    EXCEPTIONS
        FLOWTYPE_AA_INVALID = 1
        FLOWTYPE_AA_MISSING = 2
        FLOWTYPE_AA_UNKNOWN = 3
        FLOWTYPE_VZ_INVALID = 4
        FLOWTYPE_VZ_MISSING = 5
        FLOWTYPE_VZ_UNKNOWN = 6
. " BCA_TD_CASHFLOW_CONSTRUCT




ABAP code using 7.40 inline data declarations to call FM BCA_TD_CASHFLOW_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 SFHAZBA FROM VTBFHAPO INTO @DATA(ld_flowtype_aa).
DATA(ld_flowtype_aa) = ' '.
 
 
"SELECT single SFHAZBA FROM VTBFHAPO INTO @DATA(ld_flowtype_vz).
DATA(ld_flowtype_vz) = ' '.
 
 
 
 


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!