SAP Function Modules

FVD_REV_CASH_FLOW_BUILD SAP Function module - Update Cash Flow of a Loan after the Reversal







FVD_REV_CASH_FLOW_BUILD is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name FVD_REV_CASH_FLOW_BUILD into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FVD_REVERSE
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM FVD_REV_CASH_FLOW_BUILD - FVD REV CASH FLOW BUILD





CALL FUNCTION 'FVD_REV_CASH_FLOW_BUILD' "Update Cash Flow of a Loan after the Reversal
  EXPORTING
    is_vdarl =                  " vdarl         Loan
    it_vdbeki_rev =             " trty_vdbeki   zu stornierende Belegköpfe des Darlehens
    it_vdbeki =                 " trty_vdbeki   alle Belegköpfe des Darlehens
    it_vdbepi =                 " trty_vdbepi   alle Belegpositionen des Darlehens
    it_vdbepp =                 " trty_vdbepp   alle Plansätze des Darlehens
*   it_vzzkoko =                " trty_vzzkoko  alle Konditionsköpfe des Darlehens
*   it_vvzzkopo =               " trty_vvzzkopo  alle Konditionspositionen des Darlehens
  IMPORTING
    et_vdbepp_new =             " trty_vdbepp   Finanzstrom des Darlehens nach Storno
    e_tab_schedule =            " trty_rvd_schedule  Table of Dates for Periodic Tasks
  EXCEPTIONS
    CHANGE_PLANNED_RECORDS_FAILED = 1  "        Fehler bei der Anpassung der Plansätze
    BUILD_CASH_FLOW_FAILED = 2  "               Fehler bei der Neuermittlung des Finanzstroms
    TZB0A_NOT_CUSTOMIZED = 3    "               kein Customizing für Bewegungsart
    .  "  FVD_REV_CASH_FLOW_BUILD

ABAP code example for Function Module FVD_REV_CASH_FLOW_BUILD





The ABAP code below is a full code listing to execute function module FVD_REV_CASH_FLOW_BUILD including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_et_vdbepp_new  TYPE TRTY_VDBEPP ,
ld_e_tab_schedule  TYPE TRTY_RVD_SCHEDULE .

DATA(ld_is_vdarl) = 'Check type of data required'.
DATA(ld_it_vdbeki_rev) = 'Check type of data required'.
DATA(ld_it_vdbeki) = 'Check type of data required'.
DATA(ld_it_vdbepi) = 'Check type of data required'.
DATA(ld_it_vdbepp) = 'Check type of data required'.
DATA(ld_it_vzzkoko) = 'Check type of data required'.
DATA(ld_it_vvzzkopo) = 'Check type of data required'. . CALL FUNCTION 'FVD_REV_CASH_FLOW_BUILD' EXPORTING is_vdarl = ld_is_vdarl it_vdbeki_rev = ld_it_vdbeki_rev it_vdbeki = ld_it_vdbeki it_vdbepi = ld_it_vdbepi it_vdbepp = ld_it_vdbepp * it_vzzkoko = ld_it_vzzkoko * it_vvzzkopo = ld_it_vvzzkopo IMPORTING et_vdbepp_new = ld_et_vdbepp_new e_tab_schedule = ld_e_tab_schedule EXCEPTIONS CHANGE_PLANNED_RECORDS_FAILED = 1 BUILD_CASH_FLOW_FAILED = 2 TZB0A_NOT_CUSTOMIZED = 3 . " FVD_REV_CASH_FLOW_BUILD
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_et_vdbepp_new  TYPE TRTY_VDBEPP ,
ld_is_vdarl  TYPE VDARL ,
ld_e_tab_schedule  TYPE TRTY_RVD_SCHEDULE ,
ld_it_vdbeki_rev  TYPE TRTY_VDBEKI ,
ld_it_vdbeki  TYPE TRTY_VDBEKI ,
ld_it_vdbepi  TYPE TRTY_VDBEPI ,
ld_it_vdbepp  TYPE TRTY_VDBEPP ,
ld_it_vzzkoko  TYPE TRTY_VZZKOKO ,
ld_it_vvzzkopo  TYPE TRTY_VVZZKOPO .

ld_is_vdarl = 'Check type of data required'.
ld_it_vdbeki_rev = 'Check type of data required'.
ld_it_vdbeki = 'Check type of data required'.
ld_it_vdbepi = 'Check type of data required'.
ld_it_vdbepp = 'Check type of data required'.
ld_it_vzzkoko = 'Check type of data required'.
ld_it_vvzzkopo = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name FVD_REV_CASH_FLOW_BUILD or its description.