SAP FVD_REV_CHECK_POSSIBLE Function Module for Check Whether Reversal is Permitted for Loan Documents (Reversal Logic)
FVD_REV_CHECK_POSSIBLE is a standard fvd rev check possible 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 Whether Reversal is Permitted for Loan Documents (Reversal Logic) 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 fvd rev check possible FM, simply by entering the name FVD_REV_CHECK_POSSIBLE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVD_REVERSE
Program Name: SAPLFVD_REVERSE
Main Program: SAPLFVD_REVERSE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FVD_REV_CHECK_POSSIBLE 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 'FVD_REV_CHECK_POSSIBLE'"Check Whether Reversal is Permitted for Loan Documents (Reversal Logic).
EXPORTING
* IS_VDARL = "Ausgangsvertrag
* IS_VDBEKI_REV = "Document to be reversed
* IT_VDBEKI_REV = "Tabelle mit zu stornierenden Belegen
* IT_VDBEPI = "Belegpositionen zu zu stornierenden Belegen
* I_FLG_CHECK_COMPLETE = 'X' "Kennzeichen für vollständige Prüfung
* I_TAB_VDARL_RELEASE = "Tabelle von Darlehen, für die keine Freigabeprüfung durchgeführt wird
* I_FLG_USE_BUFFER = "Nutzung des Puffers versuchen
* I_FLG_CHK_DISB_CLI = "Prüfung auf Auszahlung mit nachfolgender KLV
IMPORTING
E_FLG_OTHER_DOCUMENTS = "= 'X', wenn weitere Belege storniert werden
ET_VDBEKI_REV_ALL = "alle Belegköpfe des Darlehens, die (mit) storniert werden
E_TAB_RANL = "zusätzlich ermittelte Verträge
E_FLG_OLD_DISB = "alte Auszahlung bei zu stornierenden Belegen vorhanden
E_FLG_BO_WITH = "Sonderfall Geschäftsvorfälle
EXCEPTIONS
DOCUMENT_INVALID = 1 FLOW_TYPE_NOT_CUSTOMIZED = 2 REVERSE_NOT_POSSIBLE = 3
IMPORTING Parameters details for FVD_REV_CHECK_POSSIBLE
IS_VDARL - Ausgangsvertrag
Data type: VDARLOptional: Yes
Call by Reference: Yes
IS_VDBEKI_REV - Document to be reversed
Data type: VDBEKIOptional: Yes
Call by Reference: Yes
IT_VDBEKI_REV - Tabelle mit zu stornierenden Belegen
Data type: TRTY_VDBEKIOptional: Yes
Call by Reference: Yes
IT_VDBEPI - Belegpositionen zu zu stornierenden Belegen
Data type: TRTY_VDBEPIOptional: Yes
Call by Reference: Yes
I_FLG_CHECK_COMPLETE - Kennzeichen für vollständige Prüfung
Data type: TRUEDefault: 'X'
Optional: Yes
Call by Reference: Yes
I_TAB_VDARL_RELEASE - Tabelle von Darlehen, für die keine Freigabeprüfung durchgeführt wird
Data type: TRTY_VDARL_KEYOptional: Yes
Call by Reference: Yes
I_FLG_USE_BUFFER - Nutzung des Puffers versuchen
Data type: TRUEOptional: Yes
Call by Reference: Yes
I_FLG_CHK_DISB_CLI - Prüfung auf Auszahlung mit nachfolgender KLV
Data type: TRUEOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FVD_REV_CHECK_POSSIBLE
E_FLG_OTHER_DOCUMENTS - = 'X', wenn weitere Belege storniert werden
Data type: COptional: No
Call by Reference: Yes
ET_VDBEKI_REV_ALL - alle Belegköpfe des Darlehens, die (mit) storniert werden
Data type: TRTY_VDBEKIOptional: No
Call by Reference: Yes
E_TAB_RANL - zusätzlich ermittelte Verträge
Data type: TRTY_VDARLOptional: No
Call by Reference: Yes
E_FLG_OLD_DISB - alte Auszahlung bei zu stornierenden Belegen vorhanden
Data type: TRUEOptional: No
Call by Reference: Yes
E_FLG_BO_WITH - Sonderfall Geschäftsvorfälle
Data type: TRUEOptional: No
Call by Reference: Yes
EXCEPTIONS details
DOCUMENT_INVALID - Beleg unvollständig, keine Aussage möglich
Data type:Optional: No
Call by Reference: Yes
FLOW_TYPE_NOT_CUSTOMIZED - Customizing Bewegungsarten unvollständig
Data type:Optional: No
Call by Reference: Yes
REVERSE_NOT_POSSIBLE - Stornierung ncht möglich
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FVD_REV_CHECK_POSSIBLE 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_is_vdarl | TYPE VDARL, " | |||
| lv_document_invalid | TYPE VDARL, " | |||
| lv_e_flg_other_documents | TYPE C, " | |||
| lv_is_vdbeki_rev | TYPE VDBEKI, " | |||
| lv_et_vdbeki_rev_all | TYPE TRTY_VDBEKI, " | |||
| lv_flow_type_not_customized | TYPE TRTY_VDBEKI, " | |||
| lv_e_tab_ranl | TYPE TRTY_VDARL, " | |||
| lv_it_vdbeki_rev | TYPE TRTY_VDBEKI, " | |||
| lv_reverse_not_possible | TYPE TRTY_VDBEKI, " | |||
| lv_it_vdbepi | TYPE TRTY_VDBEPI, " | |||
| lv_e_flg_old_disb | TYPE TRUE, " | |||
| lv_e_flg_bo_with | TYPE TRUE, " | |||
| lv_i_flg_check_complete | TYPE TRUE, " 'X' | |||
| lv_i_tab_vdarl_release | TYPE TRTY_VDARL_KEY, " | |||
| lv_i_flg_use_buffer | TYPE TRUE, " | |||
| lv_i_flg_chk_disb_cli | TYPE TRUE. " |
|   CALL FUNCTION 'FVD_REV_CHECK_POSSIBLE' "Check Whether Reversal is Permitted for Loan Documents (Reversal Logic) |
| EXPORTING | ||
| IS_VDARL | = lv_is_vdarl | |
| IS_VDBEKI_REV | = lv_is_vdbeki_rev | |
| IT_VDBEKI_REV | = lv_it_vdbeki_rev | |
| IT_VDBEPI | = lv_it_vdbepi | |
| I_FLG_CHECK_COMPLETE | = lv_i_flg_check_complete | |
| I_TAB_VDARL_RELEASE | = lv_i_tab_vdarl_release | |
| I_FLG_USE_BUFFER | = lv_i_flg_use_buffer | |
| I_FLG_CHK_DISB_CLI | = lv_i_flg_chk_disb_cli | |
| IMPORTING | ||
| E_FLG_OTHER_DOCUMENTS | = lv_e_flg_other_documents | |
| ET_VDBEKI_REV_ALL | = lv_et_vdbeki_rev_all | |
| E_TAB_RANL | = lv_e_tab_ranl | |
| E_FLG_OLD_DISB | = lv_e_flg_old_disb | |
| E_FLG_BO_WITH | = lv_e_flg_bo_with | |
| EXCEPTIONS | ||
| DOCUMENT_INVALID = 1 | ||
| FLOW_TYPE_NOT_CUSTOMIZED = 2 | ||
| REVERSE_NOT_POSSIBLE = 3 | ||
| . " FVD_REV_CHECK_POSSIBLE | ||
ABAP code using 7.40 inline data declarations to call FM FVD_REV_CHECK_POSSIBLE
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.| DATA(ld_i_flg_check_complete) | = 'X'. | |||
Search for further information about these or an SAP related objects