SAP BKK_PAYM_ORDER_REVERSE Function Module for Reverse Payment Order
BKK_PAYM_ORDER_REVERSE is a standard bkk paym order reverse SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Reverse Payment Order 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 bkk paym order reverse FM, simply by entering the name BKK_PAYM_ORDER_REVERSE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FBP0
Program Name: SAPLFBP0
Main Program: SAPLFBP0
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BKK_PAYM_ORDER_REVERSE 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 'BKK_PAYM_ORDER_REVERSE'"Reverse Payment Order.
EXPORTING
I_BKKRS = "Bank Area
I_PAORN = "Payment Order Number
* I_X_IN_UPDATE_TASK = 'X' "In Update Task
I_DATE_POST = "
* I_X_NO_CHK_RELEASE = "No Dual Control
IMPORTING
E_RC = "Error Code (See Long Text)
TABLES
* T_BKKIT = "Payment Item(s)
IMPORTING Parameters details for BKK_PAYM_ORDER_REVERSE
I_BKKRS - Bank Area
Data type: IBKKPOHD-BKKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_PAORN - Payment Order Number
Data type: IBKKPOHD-PAORNOptional: No
Call by Reference: No ( called with pass by value option)
I_X_IN_UPDATE_TASK - In Update Task
Data type: BKK_XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DATE_POST -
Data type: IBKKPOHD-DATE_POSTOptional: No
Call by Reference: No ( called with pass by value option)
I_X_NO_CHK_RELEASE - No Dual Control
Data type: BKK_XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BKK_PAYM_ORDER_REVERSE
E_RC - Error Code (See Long Text)
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BKK_PAYM_ORDER_REVERSE
T_BKKIT - Payment Item(s)
Data type: BKKITOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BKK_PAYM_ORDER_REVERSE 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_e_rc | TYPE SY-SUBRC, " | |||
| lv_i_bkkrs | TYPE IBKKPOHD-BKKRS, " | |||
| lt_t_bkkit | TYPE STANDARD TABLE OF BKKIT, " | |||
| lv_i_paorn | TYPE IBKKPOHD-PAORN, " | |||
| lv_i_x_in_update_task | TYPE BKK_XFELD, " 'X' | |||
| lv_i_date_post | TYPE IBKKPOHD-DATE_POST, " | |||
| lv_i_x_no_chk_release | TYPE BKK_XFELD. " |
|   CALL FUNCTION 'BKK_PAYM_ORDER_REVERSE' "Reverse Payment Order |
| EXPORTING | ||
| I_BKKRS | = lv_i_bkkrs | |
| I_PAORN | = lv_i_paorn | |
| I_X_IN_UPDATE_TASK | = lv_i_x_in_update_task | |
| I_DATE_POST | = lv_i_date_post | |
| I_X_NO_CHK_RELEASE | = lv_i_x_no_chk_release | |
| IMPORTING | ||
| E_RC | = lv_e_rc | |
| TABLES | ||
| T_BKKIT | = lt_t_bkkit | |
| . " BKK_PAYM_ORDER_REVERSE | ||
ABAP code using 7.40 inline data declarations to call FM BKK_PAYM_ORDER_REVERSE
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 SUBRC FROM SY INTO @DATA(ld_e_rc). | ||||
| "SELECT single BKKRS FROM IBKKPOHD INTO @DATA(ld_i_bkkrs). | ||||
| "SELECT single PAORN FROM IBKKPOHD INTO @DATA(ld_i_paorn). | ||||
| DATA(ld_i_x_in_update_task) | = 'X'. | |||
| "SELECT single DATE_POST FROM IBKKPOHD INTO @DATA(ld_i_date_post). | ||||
Search for further information about these or an SAP related objects