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

Function BKK_PAYM_ORDER_PREPARE_ORDER 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_PREPARE_ORDER'"Payment Order: Complete the Data.
EXPORTING
* I_XWITHOUT_ITEM = 'X' "
* I_FLG_PO_FROM_FO = ' ' "Indicator: PO generated from Forward Order
* I_X_CHECK_BANKL = ' ' "Check Box
* I_AMOUNT_RETURN = "
* I_AMOUNT_WARRANTY = "
* I_ORIG_DATE = "Original Posting Date for Returns
* I_ITEM_RETURN = "API: Import Structure for Payment Items (BCA)
* I_X_NO_CHECK_RCV = "X: No Check on Recipient Account (Flag for IHC)
* I_X_NO_CHECK_PYNOT = "
* I_X_BAPI = "X: BAPI channel
* I_FLG_FIRST_RUN = 'X' "Indicator: First Run of a recurring SDD
IMPORTING
E_RC = "<>0: Error in Checks
CHANGING
C_BKKPOHD = "Payment Order Header
C_BKKPOIT_SND = "Payment Order of Sender
* C_TAB_MANDATES = "Table type for Mandates for recipients
TABLES
T_BKKPOIT_RCV = "Recipient Payment Order with Flags for Check
* T_PYNOT = "
* T_IBKKPONT = "
IMPORTING Parameters details for BKK_PAYM_ORDER_PREPARE_ORDER
I_XWITHOUT_ITEM -
Data type: BOOLE-BOOLEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_PO_FROM_FO - Indicator: PO generated from Forward Order
Data type: BKK_XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_X_CHECK_BANKL - Check Box
Data type: BKK_XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AMOUNT_RETURN -
Data type: IBKKPOIT-T_AMOUNTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_AMOUNT_WARRANTY -
Data type: IBKKPOIT-T_AMOUNTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ORIG_DATE - Original Posting Date for Returns
Data type: IBKKRTRNPN-DATE_ORIGOptional: Yes
Call by Reference: Yes
I_ITEM_RETURN - API: Import Structure for Payment Items (BCA)
Data type: IBKKAPIIMPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_X_NO_CHECK_RCV - X: No Check on Recipient Account (Flag for IHC)
Data type: BKK_XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_X_NO_CHECK_PYNOT -
Data type: BKK_XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_X_BAPI - X: BAPI channel
Data type: BKK_XFELDOptional: Yes
Call by Reference: Yes
I_FLG_FIRST_RUN - Indicator: First Run of a recurring SDD
Data type: BKK_DTE_FLG_SDD_FIRST_RUNDefault: 'X'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for BKK_PAYM_ORDER_PREPARE_ORDER
E_RC - <>0: Error in Checks
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for BKK_PAYM_ORDER_PREPARE_ORDER
C_BKKPOHD - Payment Order Header
Data type: IBKKPOHDOptional: No
Call by Reference: No ( called with pass by value option)
C_BKKPOIT_SND - Payment Order of Sender
Data type: IBKKPOITOptional: No
Call by Reference: No ( called with pass by value option)
C_TAB_MANDATES - Table type for Mandates for recipients
Data type: BKK_TAB_MANDATE_RECOptional: Yes
Call by Reference: Yes
TABLES Parameters details for BKK_PAYM_ORDER_PREPARE_ORDER
T_BKKPOIT_RCV - Recipient Payment Order with Flags for Check
Data type: IBKKPOITOptional: No
Call by Reference: No ( called with pass by value option)
T_PYNOT -
Data type: IBKK_NOTEOptional: Yes
Call by Reference: No ( called with pass by value option)
T_IBKKPONT -
Data type: IBKKPONTOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BKK_PAYM_ORDER_PREPARE_ORDER 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_c_bkkpohd | TYPE IBKKPOHD, " | |||
| lt_t_bkkpoit_rcv | TYPE STANDARD TABLE OF IBKKPOIT, " | |||
| lv_i_xwithout_item | TYPE BOOLE-BOOLE, " 'X' | |||
| lv_i_flg_po_from_fo | TYPE BKK_XFELD, " SPACE | |||
| lv_i_x_check_bankl | TYPE BKK_XFELD, " SPACE | |||
| lt_t_pynot | TYPE STANDARD TABLE OF IBKK_NOTE, " | |||
| lv_c_bkkpoit_snd | TYPE IBKKPOIT, " | |||
| lv_i_amount_return | TYPE IBKKPOIT-T_AMOUNT, " | |||
| lt_t_ibkkpont | TYPE STANDARD TABLE OF IBKKPONT, " | |||
| lv_c_tab_mandates | TYPE BKK_TAB_MANDATE_REC, " | |||
| lv_i_amount_warranty | TYPE IBKKPOIT-T_AMOUNT, " | |||
| lv_i_orig_date | TYPE IBKKRTRNPN-DATE_ORIG, " | |||
| lv_i_item_return | TYPE IBKKAPIIMP, " | |||
| lv_i_x_no_check_rcv | TYPE BKK_XFELD, " | |||
| lv_i_x_no_check_pynot | TYPE BKK_XFELD, " | |||
| lv_i_x_bapi | TYPE BKK_XFELD, " | |||
| lv_i_flg_first_run | TYPE BKK_DTE_FLG_SDD_FIRST_RUN. " 'X' |
|   CALL FUNCTION 'BKK_PAYM_ORDER_PREPARE_ORDER' "Payment Order: Complete the Data |
| EXPORTING | ||
| I_XWITHOUT_ITEM | = lv_i_xwithout_item | |
| I_FLG_PO_FROM_FO | = lv_i_flg_po_from_fo | |
| I_X_CHECK_BANKL | = lv_i_x_check_bankl | |
| I_AMOUNT_RETURN | = lv_i_amount_return | |
| I_AMOUNT_WARRANTY | = lv_i_amount_warranty | |
| I_ORIG_DATE | = lv_i_orig_date | |
| I_ITEM_RETURN | = lv_i_item_return | |
| I_X_NO_CHECK_RCV | = lv_i_x_no_check_rcv | |
| I_X_NO_CHECK_PYNOT | = lv_i_x_no_check_pynot | |
| I_X_BAPI | = lv_i_x_bapi | |
| I_FLG_FIRST_RUN | = lv_i_flg_first_run | |
| IMPORTING | ||
| E_RC | = lv_e_rc | |
| CHANGING | ||
| C_BKKPOHD | = lv_c_bkkpohd | |
| C_BKKPOIT_SND | = lv_c_bkkpoit_snd | |
| C_TAB_MANDATES | = lv_c_tab_mandates | |
| TABLES | ||
| T_BKKPOIT_RCV | = lt_t_bkkpoit_rcv | |
| T_PYNOT | = lt_t_pynot | |
| T_IBKKPONT | = lt_t_ibkkpont | |
| . " BKK_PAYM_ORDER_PREPARE_ORDER | ||
ABAP code using 7.40 inline data declarations to call FM BKK_PAYM_ORDER_PREPARE_ORDER
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 BOOLE FROM BOOLE INTO @DATA(ld_i_xwithout_item). | ||||
| DATA(ld_i_xwithout_item) | = 'X'. | |||
| DATA(ld_i_flg_po_from_fo) | = ' '. | |||
| DATA(ld_i_x_check_bankl) | = ' '. | |||
| "SELECT single T_AMOUNT FROM IBKKPOIT INTO @DATA(ld_i_amount_return). | ||||
| "SELECT single T_AMOUNT FROM IBKKPOIT INTO @DATA(ld_i_amount_warranty). | ||||
| "SELECT single DATE_ORIG FROM IBKKRTRNPN INTO @DATA(ld_i_orig_date). | ||||
| DATA(ld_i_flg_first_run) | = 'X'. | |||
Search for further information about these or an SAP related objects