SAP CASH_FORECAST_LOANS_CHECK Function Module for Check and Update Preparation









CASH_FORECAST_LOANS_CHECK is a standard cash forecast loans check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Check and Update Preparation 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 loans check FM, simply by entering the name CASH_FORECAST_LOANS_CHECK into the relevant SAP transaction such as SE37 or SE38.

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



Function CASH_FORECAST_LOANS_CHECK 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_LOANS_CHECK'"Check and Update Preparation
EXPORTING
* I_ROLLBACK_WORK = ' ' "X - A-Meldung und rollback work bei Fehler
I_STATUS = "Contract Status
I_TZPA = "relevanter Tabelleneintrag aus TZPA
* I_RESTR_FD_AUFBAU = ' ' "Restriktion für FD-Aufbau (siehe Langtext)

IMPORTING
E_SKIPPED_SVORGKZ = "X-mind.1 Satz wegen Vorgangskennz. übersprungen

TABLES
* TAB_CVDBEPP_NEW = "'I' - Insert, 'U' - Update
* TAB_CVDBEPP_OLD = "'D' - Delete

EXCEPTIONS
DDISPO_MISSING = 1 LEVEL_MISSING = 2 NOT_FOUND_KNB1 = 3 NOT_FOUND_SKB1 = 4 ORIGN_INVALID = 5 ORIGN_MISSING = 6
.



IMPORTING Parameters details for CASH_FORECAST_LOANS_CHECK

I_ROLLBACK_WORK - X - A-Meldung und rollback work bei Fehler

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

I_STATUS - Contract Status

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

I_TZPA - relevanter Tabelleneintrag aus TZPA

Data type: TZPA
Optional: No
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)

EXPORTING Parameters details for CASH_FORECAST_LOANS_CHECK

E_SKIPPED_SVORGKZ - X-mind.1 Satz wegen Vorgangskennz. übersprungen

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

TABLES Parameters details for CASH_FORECAST_LOANS_CHECK

TAB_CVDBEPP_NEW - 'I' - Insert, 'U' - Update

Data type: CVDBEPP
Optional: Yes
Call by Reference: Yes

TAB_CVDBEPP_OLD - 'D' - Delete

Data type: CVDBEPP
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

DDISPO_MISSING - Dispositionsdatum nicht gepflegt

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

LEVEL_MISSING - Ebene nicht in T036

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

NOT_FOUND_KNB1 - Debitor im Buchungskreis nicht vorhanden

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

NOT_FOUND_SKB1 - Sachkonto im Buchungskreis nicht vorhanden

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

ORIGN_INVALID - Herkunftssymbol nicht zulässig

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

ORIGN_MISSING - Herkunftssymbol nicht in T039

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

Copy and paste ABAP code example for CASH_FORECAST_LOANS_CHECK 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_ddispo_missing  TYPE STRING, "   
lv_i_rollback_work  TYPE T001-XFDIS, "   SPACE
lt_tab_cvdbepp_new  TYPE STANDARD TABLE OF CVDBEPP, "   
lv_e_skipped_svorgkz  TYPE T001-XFDIS, "   
lv_i_status  TYPE VDARL-SSTATI, "   
lv_level_missing  TYPE VDARL, "   
lt_tab_cvdbepp_old  TYPE STANDARD TABLE OF CVDBEPP, "   
lv_i_tzpa  TYPE TZPA, "   
lv_not_found_knb1  TYPE TZPA, "   
lv_not_found_skb1  TYPE TZPA, "   
lv_i_restr_fd_aufbau  TYPE RFFFPDO1-FDBUILDUP, "   SPACE
lv_orign_invalid  TYPE RFFFPDO1, "   
lv_orign_missing  TYPE RFFFPDO1. "   

  CALL FUNCTION 'CASH_FORECAST_LOANS_CHECK'  "Check and Update Preparation
    EXPORTING
         I_ROLLBACK_WORK = lv_i_rollback_work
         I_STATUS = lv_i_status
         I_TZPA = lv_i_tzpa
         I_RESTR_FD_AUFBAU = lv_i_restr_fd_aufbau
    IMPORTING
         E_SKIPPED_SVORGKZ = lv_e_skipped_svorgkz
    TABLES
         TAB_CVDBEPP_NEW = lt_tab_cvdbepp_new
         TAB_CVDBEPP_OLD = lt_tab_cvdbepp_old
    EXCEPTIONS
        DDISPO_MISSING = 1
        LEVEL_MISSING = 2
        NOT_FOUND_KNB1 = 3
        NOT_FOUND_SKB1 = 4
        ORIGN_INVALID = 5
        ORIGN_MISSING = 6
. " CASH_FORECAST_LOANS_CHECK




ABAP code using 7.40 inline data declarations to call FM CASH_FORECAST_LOANS_CHECK

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_rollback_work).
DATA(ld_i_rollback_work) = ' '.
 
 
"SELECT single XFDIS FROM T001 INTO @DATA(ld_e_skipped_svorgkz).
 
"SELECT single SSTATI FROM VDARL INTO @DATA(ld_i_status).
 
 
 
 
 
 
"SELECT single FDBUILDUP FROM RFFFPDO1 INTO @DATA(ld_i_restr_fd_aufbau).
DATA(ld_i_restr_fd_aufbau) = ' '.
 
 
 


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!