SAP CASH_FORECAST_TREASURY_POST Function Module for FD Update for Forex, Money Market Trading, Derivatives, Securities Trans.









CASH_FORECAST_TREASURY_POST is a standard cash forecast treasury post SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for FD Update for Forex, Money Market Trading, Derivatives, Securities Trans. 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 forecast treasury post FM, simply by entering the name CASH_FORECAST_TREASURY_POST into the relevant SAP transaction such as SE37 or SE38.

Function Group: FDTR
Program Name: SAPLFDTR
Main Program: SAPLFDTR
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update: 1



Function CASH_FORECAST_TREASURY_POST 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_FORECAST_TREASURY_POST'"FD Update for Forex, Money Market Trading, Derivatives, Securities Trans.
EXPORTING
* I_ALTERNATIVEBENE = ' ' "X-Alternativebene aus V_T036W nehmen
* I_SFGZUSTT = ' ' "Transaction Activity Category
I_VTBFHA = "Financial Transaction
* I_PLANIST = '0' "'1'=Plansatz, '0'=Istsatz (siehe Langtext)
* I_RESTR_FD_AUFBAU = ' ' "Restriktion für FD-Aufbau (siehe Langtext)
* I_FORCE_UPDATE = ' ' "X: Customizing in TRCC_SWITCH nicht berücksichtigen

TABLES
TAB_NEW = "Tab. VTBFHAPO mit neuen Sätzen
TAB_OLD = "Tab. VTBFHAPO mit alten Sätzen
.



IMPORTING Parameters details for CASH_FORECAST_TREASURY_POST

I_ALTERNATIVEBENE - X-Alternativebene aus V_T036W nehmen

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

I_SFGZUSTT - Transaction Activity Category

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

I_VTBFHA - Financial Transaction

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

I_PLANIST - '1'=Plansatz, '0'=Istsatz (siehe Langtext)

Data type: FDT1-PLANIST
Default: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RESTR_FD_AUFBAU - Restriktion für FD-Aufbau (siehe Langtext)

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

I_FORCE_UPDATE - X: Customizing in TRCC_SWITCH nicht berücksichtigen

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

TABLES Parameters details for CASH_FORECAST_TREASURY_POST

TAB_NEW - Tab. VTBFHAPO mit neuen Sätzen

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

TAB_OLD - Tab. VTBFHAPO mit alten Sätzen

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

Copy and paste ABAP code example for CASH_FORECAST_TREASURY_POST 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_tab_new  TYPE STANDARD TABLE OF VTBFHAPO, "   
lv_i_alternativebene  TYPE T001-XFDIS, "   SPACE
lt_tab_old  TYPE STANDARD TABLE OF VTBFHAPO, "   
lv_i_sfgzustt  TYPE AT02-SFGZUSTT, "   SPACE
lv_i_vtbfha  TYPE VTBFHA, "   
lv_i_planist  TYPE FDT1-PLANIST, "   '0'
lv_i_restr_fd_aufbau  TYPE RFFFPDO1-FDBUILDUP, "   SPACE
lv_i_force_update  TYPE XFLAG. "   SPACE

  CALL FUNCTION 'CASH_FORECAST_TREASURY_POST'  "FD Update for Forex, Money Market Trading, Derivatives, Securities Trans.
    EXPORTING
         I_ALTERNATIVEBENE = lv_i_alternativebene
         I_SFGZUSTT = lv_i_sfgzustt
         I_VTBFHA = lv_i_vtbfha
         I_PLANIST = lv_i_planist
         I_RESTR_FD_AUFBAU = lv_i_restr_fd_aufbau
         I_FORCE_UPDATE = lv_i_force_update
    TABLES
         TAB_NEW = lt_tab_new
         TAB_OLD = lt_tab_old
. " CASH_FORECAST_TREASURY_POST




ABAP code using 7.40 inline data declarations to call FM CASH_FORECAST_TREASURY_POST

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 XFDIS FROM T001 INTO @DATA(ld_i_alternativebene).
DATA(ld_i_alternativebene) = ' '.
 
 
"SELECT single SFGZUSTT FROM AT02 INTO @DATA(ld_i_sfgzustt).
DATA(ld_i_sfgzustt) = ' '.
 
 
"SELECT single PLANIST FROM FDT1 INTO @DATA(ld_i_planist).
DATA(ld_i_planist) = '0'.
 
"SELECT single FDBUILDUP FROM RFFFPDO1 INTO @DATA(ld_i_restr_fd_aufbau).
DATA(ld_i_restr_fd_aufbau) = ' '.
 
DATA(ld_i_force_update) = ' '.
 


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!