SAP Function Modules

FVD_REV_SERVICE SAP Function module - Reversal Service







FVD_REV_SERVICE 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_SERVICE 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_SERVICE - FVD REV SERVICE





CALL FUNCTION 'FVD_REV_SERVICE' "Reversal Service
  EXPORTING
    i_tab_vdbeki_rev =          " trty_rvdbeki_rev_bank  Tabelle mit zu stornierenden Belegen
    i_rev_post_info =           " rrev_post_info  Loans: Posting Information
*   i_revaccount_payed_disb =   " true          'X', wenn Auszahlung Storno auf Forderung
*   i_flg_simulation =          " c             Nur Simulation der Buchungen
*   i_tab_vdarl_release =       " trty_vdarl_key  Tabelle von Darlehen, für die keine Freigabeprüfung durchgeführt wird
*   i_flg_only_post =           " true          rein buchhalterische Verarbeitung
*   i_revacc_cleared_post =     " tb_revacc_cleared_post  Account Selection for Posting - Reversal or Acc. Receivable
  IMPORTING
    e_tab_vdbeki_new =          " trty_vdbeki   erzeugte VDBEKI-Sätze
    e_tab_vdbepi_new =          " trty_vdbepi   erzeugte VDBEPI-Sätze
    e_tab_vdarl_new =           " trty_vdarl    geänderte Vertragsdaten
    e_tab_bseg_op =             " trty_bseg     Open Items
    e_tab_return =              " bapirettab    Meldungen für die rufende Anwendung
    e_tab_vdbepp_new =          " trty_vdbepp   Table Type for Table VDBEPP
    e_tab_vdbepp_old =          " trty_vdbepp   Table Type for Table VDBEPP
  EXCEPTIONS
    POSTING_IMPOSSIBLE = 1      "               Stornierung nicht durchführbar
    POSTING_DATE_MISSING = 2    "               Buchungsdatum nicht vorhanden
    REVERSAL_REASON_MISSING = 3  "              Stornogrund nicht vorhanden
    CONTRACT_DATA_NOT_FOUND = 4  "              Vertragsdaten nicht gefunden
    ERROR_POSTING_PREPARATION = 5  "            Fehler in den Buchungsvorbereitungen
    ERROR_COMPLETE_POSTING = 6  "               Fehler in den Buchungsnacharbeiten
    POST_INFO_INVALID = 7       "               Buchungsinfo fehlerhaft
    .  "  FVD_REV_SERVICE

ABAP code example for Function Module FVD_REV_SERVICE





The ABAP code below is a full code listing to execute function module FVD_REV_SERVICE 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_e_tab_vdbeki_new  TYPE TRTY_VDBEKI ,
ld_e_tab_vdbepi_new  TYPE TRTY_VDBEPI ,
ld_e_tab_vdarl_new  TYPE TRTY_VDARL ,
ld_e_tab_bseg_op  TYPE TRTY_BSEG ,
ld_e_tab_return  TYPE BAPIRETTAB ,
ld_e_tab_vdbepp_new  TYPE TRTY_VDBEPP ,
ld_e_tab_vdbepp_old  TYPE TRTY_VDBEPP .

DATA(ld_i_tab_vdbeki_rev) = 'Check type of data required'.
DATA(ld_i_rev_post_info) = 'Check type of data required'.
DATA(ld_i_revaccount_payed_disb) = 'Check type of data required'.
DATA(ld_i_flg_simulation) = 'Check type of data required'.
DATA(ld_i_tab_vdarl_release) = 'Check type of data required'.
DATA(ld_i_flg_only_post) = 'Check type of data required'.
DATA(ld_i_revacc_cleared_post) = 'Check type of data required'. . CALL FUNCTION 'FVD_REV_SERVICE' EXPORTING i_tab_vdbeki_rev = ld_i_tab_vdbeki_rev i_rev_post_info = ld_i_rev_post_info * i_revaccount_payed_disb = ld_i_revaccount_payed_disb * i_flg_simulation = ld_i_flg_simulation * i_tab_vdarl_release = ld_i_tab_vdarl_release * i_flg_only_post = ld_i_flg_only_post * i_revacc_cleared_post = ld_i_revacc_cleared_post IMPORTING e_tab_vdbeki_new = ld_e_tab_vdbeki_new e_tab_vdbepi_new = ld_e_tab_vdbepi_new e_tab_vdarl_new = ld_e_tab_vdarl_new e_tab_bseg_op = ld_e_tab_bseg_op e_tab_return = ld_e_tab_return e_tab_vdbepp_new = ld_e_tab_vdbepp_new e_tab_vdbepp_old = ld_e_tab_vdbepp_old EXCEPTIONS POSTING_IMPOSSIBLE = 1 POSTING_DATE_MISSING = 2 REVERSAL_REASON_MISSING = 3 CONTRACT_DATA_NOT_FOUND = 4 ERROR_POSTING_PREPARATION = 5 ERROR_COMPLETE_POSTING = 6 POST_INFO_INVALID = 7 . " FVD_REV_SERVICE
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 ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "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_e_tab_vdbeki_new  TYPE TRTY_VDBEKI ,
ld_i_tab_vdbeki_rev  TYPE TRTY_RVDBEKI_REV_BANK ,
ld_e_tab_vdbepi_new  TYPE TRTY_VDBEPI ,
ld_i_rev_post_info  TYPE RREV_POST_INFO ,
ld_e_tab_vdarl_new  TYPE TRTY_VDARL ,
ld_i_revaccount_payed_disb  TYPE TRUE ,
ld_e_tab_bseg_op  TYPE TRTY_BSEG ,
ld_i_flg_simulation  TYPE C ,
ld_e_tab_return  TYPE BAPIRETTAB ,
ld_i_tab_vdarl_release  TYPE TRTY_VDARL_KEY ,
ld_e_tab_vdbepp_new  TYPE TRTY_VDBEPP ,
ld_i_flg_only_post  TYPE TRUE ,
ld_e_tab_vdbepp_old  TYPE TRTY_VDBEPP ,
ld_i_revacc_cleared_post  TYPE TB_REVACC_CLEARED_POST .

ld_i_tab_vdbeki_rev = 'Check type of data required'.
ld_i_rev_post_info = 'Check type of data required'.
ld_i_revaccount_payed_disb = 'Check type of data required'.
ld_i_flg_simulation = 'Check type of data required'.
ld_i_tab_vdarl_release = 'Check type of data required'.
ld_i_flg_only_post = 'Check type of data required'.
ld_i_revacc_cleared_post = '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_SERVICE or its description.