SAP FKK_REVERSE_DOCS_OPBELS Function Module for
FKK_REVERSE_DOCS_OPBELS is a standard fkk reverse docs opbels SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 fkk reverse docs opbels FM, simply by entering the name FKK_REVERSE_DOCS_OPBELS into the relevant SAP transaction such as SE37 or SE38.
Function Group: FKBRD
Program Name: SAPLFKBRD
Main Program: SAPLFKBRD
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FKK_REVERSE_DOCS_OPBELS 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 'FKK_REVERSE_DOCS_OPBELS'".
EXPORTING
* I_BLART_STORNO = "
* I_SAME_ACCOUNTS = "
* I_VOIDR = "
* IX_COMMIT = 'X' "
* I_PARALLEL_PROCESSING = "
* I_CALLR = "
* IX_NO_RESET_CLEARING = "
* I_BLART_AUSGL = "
* I_FIKEY = "
* I_RESOB = "
* I_RESKY = "
* I_UPDATE_TASK = "
* I_ONLY_ANALYZE = "
* I_STORNO_BUDAT = "
* I_STORNO_STODT = "
TABLES
T_TO_REVERSE = "
* T_REVERSE_DOCS = "
* T_AFFECTED_DOCS = "
* T_ALREADY_REV_DOCS = "
* T_FIMSG = "
EXCEPTIONS
AUTHORITY_CHECK_FAILED = 1
IMPORTING Parameters details for FKK_REVERSE_DOCS_OPBELS
I_BLART_STORNO -
Data type: FKKKO-BLARTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SAME_ACCOUNTS -
Data type: XRAVT_KKOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VOIDR -
Data type: VOIDREAS_KKOptional: Yes
Call by Reference: Yes
IX_COMMIT -
Data type: BOOLE-BOOLEDefault: 'X'
Optional: Yes
Call by Reference: Yes
I_PARALLEL_PROCESSING -
Data type: BOOLE-BOOLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CALLR -
Data type: CALLR_KKOptional: Yes
Call by Reference: Yes
IX_NO_RESET_CLEARING -
Data type: XFELDOptional: Yes
Call by Reference: Yes
I_BLART_AUSGL -
Data type: FKKKO-BLARTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FIKEY -
Data type: FKKKO-FIKEYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_RESOB -
Data type: RESOB_KKOptional: Yes
Call by Reference: No ( called with pass by value option)
I_RESKY -
Data type: RESKY_KKOptional: Yes
Call by Reference: No ( called with pass by value option)
I_UPDATE_TASK -
Data type: BOOLE-BOOLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ONLY_ANALYZE -
Data type: BOOLE-BOOLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_STORNO_BUDAT -
Data type: FKKKO-BUDATOptional: Yes
Call by Reference: No ( called with pass by value option)
I_STORNO_STODT -
Data type: FKKKO-BUDATOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FKK_REVERSE_DOCS_OPBELS
T_TO_REVERSE -
Data type: FKKREVDS_2Optional: No
Call by Reference: No ( called with pass by value option)
T_REVERSE_DOCS -
Data type: FKKREVDSOptional: Yes
Call by Reference: No ( called with pass by value option)
T_AFFECTED_DOCS -
Data type: FKKREVDSOptional: Yes
Call by Reference: No ( called with pass by value option)
T_ALREADY_REV_DOCS -
Data type: FKKREVDSOptional: Yes
Call by Reference: Yes
T_FIMSG -
Data type: FIMSGOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
AUTHORITY_CHECK_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FKK_REVERSE_DOCS_OPBELS 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_t_to_reverse | TYPE STANDARD TABLE OF FKKREVDS_2, " | |||
| lv_i_blart_storno | TYPE FKKKO-BLART, " | |||
| lv_authority_check_failed | TYPE FKKKO, " | |||
| lv_i_same_accounts | TYPE XRAVT_KK, " | |||
| lv_i_voidr | TYPE VOIDREAS_KK, " | |||
| lv_ix_commit | TYPE BOOLE-BOOLE, " 'X' | |||
| lv_i_parallel_processing | TYPE BOOLE-BOOLE, " | |||
| lv_i_callr | TYPE CALLR_KK, " | |||
| lv_ix_no_reset_clearing | TYPE XFELD, " | |||
| lv_i_blart_ausgl | TYPE FKKKO-BLART, " | |||
| lt_t_reverse_docs | TYPE STANDARD TABLE OF FKKREVDS, " | |||
| lv_i_fikey | TYPE FKKKO-FIKEY, " | |||
| lt_t_affected_docs | TYPE STANDARD TABLE OF FKKREVDS, " | |||
| lv_i_resob | TYPE RESOB_KK, " | |||
| lt_t_already_rev_docs | TYPE STANDARD TABLE OF FKKREVDS, " | |||
| lv_i_resky | TYPE RESKY_KK, " | |||
| lt_t_fimsg | TYPE STANDARD TABLE OF FIMSG, " | |||
| lv_i_update_task | TYPE BOOLE-BOOLE, " | |||
| lv_i_only_analyze | TYPE BOOLE-BOOLE, " | |||
| lv_i_storno_budat | TYPE FKKKO-BUDAT, " | |||
| lv_i_storno_stodt | TYPE FKKKO-BUDAT. " |
|   CALL FUNCTION 'FKK_REVERSE_DOCS_OPBELS' " |
| EXPORTING | ||
| I_BLART_STORNO | = lv_i_blart_storno | |
| I_SAME_ACCOUNTS | = lv_i_same_accounts | |
| I_VOIDR | = lv_i_voidr | |
| IX_COMMIT | = lv_ix_commit | |
| I_PARALLEL_PROCESSING | = lv_i_parallel_processing | |
| I_CALLR | = lv_i_callr | |
| IX_NO_RESET_CLEARING | = lv_ix_no_reset_clearing | |
| I_BLART_AUSGL | = lv_i_blart_ausgl | |
| I_FIKEY | = lv_i_fikey | |
| I_RESOB | = lv_i_resob | |
| I_RESKY | = lv_i_resky | |
| I_UPDATE_TASK | = lv_i_update_task | |
| I_ONLY_ANALYZE | = lv_i_only_analyze | |
| I_STORNO_BUDAT | = lv_i_storno_budat | |
| I_STORNO_STODT | = lv_i_storno_stodt | |
| TABLES | ||
| T_TO_REVERSE | = lt_t_to_reverse | |
| T_REVERSE_DOCS | = lt_t_reverse_docs | |
| T_AFFECTED_DOCS | = lt_t_affected_docs | |
| T_ALREADY_REV_DOCS | = lt_t_already_rev_docs | |
| T_FIMSG | = lt_t_fimsg | |
| EXCEPTIONS | ||
| AUTHORITY_CHECK_FAILED = 1 | ||
| . " FKK_REVERSE_DOCS_OPBELS | ||
ABAP code using 7.40 inline data declarations to call FM FKK_REVERSE_DOCS_OPBELS
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 BLART FROM FKKKO INTO @DATA(ld_i_blart_storno). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_ix_commit). | ||||
| DATA(ld_ix_commit) | = 'X'. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_parallel_processing). | ||||
| "SELECT single BLART FROM FKKKO INTO @DATA(ld_i_blart_ausgl). | ||||
| "SELECT single FIKEY FROM FKKKO INTO @DATA(ld_i_fikey). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_update_task). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_only_analyze). | ||||
| "SELECT single BUDAT FROM FKKKO INTO @DATA(ld_i_storno_budat). | ||||
| "SELECT single BUDAT FROM FKKKO INTO @DATA(ld_i_storno_stodt). | ||||
Search for further information about these or an SAP related objects