SAP BAPI_PAYIT_GET_BY_REFNO Function Module for Get Items by Payment Transaction Ref. No
BAPI_PAYIT_GET_BY_REFNO is a standard bapi payit get by refno SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get Items by Payment Transaction Ref. No 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 get by refno FM, simply by entering the name BAPI_PAYIT_GET_BY_REFNO 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_GET_BY_REFNO 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_GET_BY_REFNO'"Get Items by Payment Transaction Ref. No.
EXPORTING
* I_GET_SHORT_INFO_ONLY = 'X' "Pass item short structure only
IMPORTING
EV_RETURN = "ABAP-Systemfeld: Rückgabewert von ABAP-Anweisungen
TABLES
T_REFNO_PAYM = "Reference Numbers of External Payment Transaction System
* T_ITEM_EXP = "API: Export Structure for Payment Items (BCA)
* T_ITEM_EXP_SHORT = "Structure for Additional Item Information
EXCEPTIONS
NOT_AUTHORIZED = 1
IMPORTING Parameters details for BAPI_PAYIT_GET_BY_REFNO
I_GET_SHORT_INFO_ONLY - Pass item short structure only
Data type: XFELDDefault: 'X'
Optional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_PAYIT_GET_BY_REFNO
EV_RETURN - ABAP-Systemfeld: Rückgabewert von ABAP-Anweisungen
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_PAYIT_GET_BY_REFNO
T_REFNO_PAYM - Reference Numbers of External Payment Transaction System
Data type: IBKK_REFNOPAYMOptional: No
Call by Reference: Yes
T_ITEM_EXP - API: Export Structure for Payment Items (BCA)
Data type: IBKKAPIEXPOptional: Yes
Call by Reference: Yes
T_ITEM_EXP_SHORT - Structure for Additional Item Information
Data type: IBKK_IT_INFO_REFNOOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NOT_AUTHORIZED - Not authorized
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_PAYIT_GET_BY_REFNO 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_ev_return | TYPE SY-SUBRC, " | |||
| lt_t_refno_paym | TYPE STANDARD TABLE OF IBKK_REFNOPAYM, " | |||
| lv_not_authorized | TYPE IBKK_REFNOPAYM, " | |||
| lv_i_get_short_info_only | TYPE XFELD, " 'X' | |||
| lt_t_item_exp | TYPE STANDARD TABLE OF IBKKAPIEXP, " | |||
| lt_t_item_exp_short | TYPE STANDARD TABLE OF IBKK_IT_INFO_REFNO. " |
|   CALL FUNCTION 'BAPI_PAYIT_GET_BY_REFNO' "Get Items by Payment Transaction Ref. No |
| EXPORTING | ||
| I_GET_SHORT_INFO_ONLY | = lv_i_get_short_info_only | |
| IMPORTING | ||
| EV_RETURN | = lv_ev_return | |
| TABLES | ||
| T_REFNO_PAYM | = lt_t_refno_paym | |
| T_ITEM_EXP | = lt_t_item_exp | |
| T_ITEM_EXP_SHORT | = lt_t_item_exp_short | |
| EXCEPTIONS | ||
| NOT_AUTHORIZED = 1 | ||
| . " BAPI_PAYIT_GET_BY_REFNO | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_PAYIT_GET_BY_REFNO
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_ev_return). | ||||
| DATA(ld_i_get_short_info_only) | = 'X'. | |||
Search for further information about these or an SAP related objects