SAP BAPI_PAYIT_POST_ITEM Function Module for Post Turnover (+ SWIFT and Bank Control Key)
BAPI_PAYIT_POST_ITEM is a standard bapi payit post item SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Post Turnover (+ SWIFT and Bank Control Key) 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 bapi payit post item FM, simply by entering the name BAPI_PAYIT_POST_ITEM into the relevant SAP transaction such as SE37 or SE38.
Function Group: FBI1A
Program Name: SAPLFBI1A
Main Program: SAPLFBI1A
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_PAYIT_POST_ITEM 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 'BAPI_PAYIT_POST_ITEM'"Post Turnover (+ SWIFT and Bank Control Key).
EXPORTING
* I_XREVERSE = ' ' "Flagged for Reversal
* I_XREPETITION = ' ' "X: Repeated Presentation
* I_X_UPDATE_TASK = ' ' "Update Control
* I_X_NO_COMMIT = ' ' "Control of COMMIT Processing
* I_X_SIMUL = ' ' "Simulation Indicator
IMPORTING
E_RETURN = "Return Code
TABLES
T_PAYM_ITEM = "Data for Turnover Posting
* T_PAYM_NOTE = "Payment Note Data
* E_TAB_XCHECK = "Structure for Checks and Results for Payment Items
* E_TAB_RETURN = "Return Parameters
* E_TAB_POST_INFO = "Structure for Additional Item Information
IMPORTING Parameters details for BAPI_PAYIT_POST_ITEM
I_XREVERSE - Flagged for Reversal
Data type: IBKK_ITEM-XREVERSEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_XREPETITION - X: Repeated Presentation
Data type: IBKK_MISC-XREPETITIONDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_X_UPDATE_TASK - Update Control
Data type: BKK_XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_X_NO_COMMIT - Control of COMMIT Processing
Data type: BKK_XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_X_SIMUL - Simulation Indicator
Data type: BKK_XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_PAYIT_POST_ITEM
E_RETURN - Return Code
Data type: IBKK_MISC-RCOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_PAYIT_POST_ITEM
T_PAYM_ITEM - Data for Turnover Posting
Data type: IBKK_PSTPIAOptional: No
Call by Reference: Yes
T_PAYM_NOTE - Payment Note Data
Data type: IBKK_PYNOTOptional: Yes
Call by Reference: No ( called with pass by value option)
E_TAB_XCHECK - Structure for Checks and Results for Payment Items
Data type: IBKK_XCHECK_ITEMOptional: Yes
Call by Reference: No ( called with pass by value option)
E_TAB_RETURN - Return Parameters
Data type: BAPIRET2Optional: Yes
Call by Reference: No ( called with pass by value option)
E_TAB_POST_INFO - Structure for Additional Item Information
Data type: IBKK_IT_INFOOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_PAYIT_POST_ITEM 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_return | TYPE IBKK_MISC-RC, " | |||
| lv_i_xreverse | TYPE IBKK_ITEM-XREVERSE, " SPACE | |||
| lt_t_paym_item | TYPE STANDARD TABLE OF IBKK_PSTPIA, " | |||
| lt_t_paym_note | TYPE STANDARD TABLE OF IBKK_PYNOT, " | |||
| lv_i_xrepetition | TYPE IBKK_MISC-XREPETITION, " SPACE | |||
| lt_e_tab_xcheck | TYPE STANDARD TABLE OF IBKK_XCHECK_ITEM, " | |||
| lv_i_x_update_task | TYPE BKK_XFELD, " SPACE | |||
| lt_e_tab_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_i_x_no_commit | TYPE BKK_XFELD, " SPACE | |||
| lv_i_x_simul | TYPE BKK_XFELD, " SPACE | |||
| lt_e_tab_post_info | TYPE STANDARD TABLE OF IBKK_IT_INFO. " |
|   CALL FUNCTION 'BAPI_PAYIT_POST_ITEM' "Post Turnover (+ SWIFT and Bank Control Key) |
| EXPORTING | ||
| I_XREVERSE | = lv_i_xreverse | |
| I_XREPETITION | = lv_i_xrepetition | |
| I_X_UPDATE_TASK | = lv_i_x_update_task | |
| I_X_NO_COMMIT | = lv_i_x_no_commit | |
| I_X_SIMUL | = lv_i_x_simul | |
| IMPORTING | ||
| E_RETURN | = lv_e_return | |
| TABLES | ||
| T_PAYM_ITEM | = lt_t_paym_item | |
| T_PAYM_NOTE | = lt_t_paym_note | |
| E_TAB_XCHECK | = lt_e_tab_xcheck | |
| E_TAB_RETURN | = lt_e_tab_return | |
| E_TAB_POST_INFO | = lt_e_tab_post_info | |
| . " BAPI_PAYIT_POST_ITEM | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_PAYIT_POST_ITEM
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 RC FROM IBKK_MISC INTO @DATA(ld_e_return). | ||||
| "SELECT single XREVERSE FROM IBKK_ITEM INTO @DATA(ld_i_xreverse). | ||||
| DATA(ld_i_xreverse) | = ' '. | |||
| "SELECT single XREPETITION FROM IBKK_MISC INTO @DATA(ld_i_xrepetition). | ||||
| DATA(ld_i_xrepetition) | = ' '. | |||
| DATA(ld_i_x_update_task) | = ' '. | |||
| DATA(ld_i_x_no_commit) | = ' '. | |||
| DATA(ld_i_x_simul) | = ' '. | |||
Search for further information about these or an SAP related objects