SAP FM_PAYTR_GET_CLEARED_ITEMS_FI Function Module for
FM_PAYTR_GET_CLEARED_ITEMS_FI is a standard fm paytr get cleared items fi 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 fm paytr get cleared items fi FM, simply by entering the name FM_PAYTR_GET_CLEARED_ITEMS_FI into the relevant SAP transaction such as SE37 or SE38.
Function Group: FMPA
Program Name: SAPLFMPA
Main Program: SAPLFMPA
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FM_PAYTR_GET_CLEARED_ITEMS_FI 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 'FM_PAYTR_GET_CLEARED_ITEMS_FI'".
EXPORTING
I_BELNR = "Clearing Document Number
I_BUKRS = "Company Code
I_GJAHR = "
I_BVORG = "Cross-Company Code Transaction
* I_AUGDT = "
* I_RFZEI = "
* I_FLG_CALL_FROM_S201 = "
TABLES
T_ITEMS_DOC = "
T_ITEMS = "
* T_ACCNT = "
EXCEPTIONS
NOT_FOUND = 1
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLFMPA_001 RFFMS200: Fill User Dimension
EXIT_SAPLFMPA_002 RFFMS200: Deactivate Conversion of Credit Memos
EXIT_SAPLFMPA_003 RFFMS200: Activating the V2 update
EXIT_SAPLFMPA_004 RFFMS200: Payment Records for Credit Memos not Statistical
EXIT_SAPLFMPA_005 RFFMS200: Activate Conversion of 60-50 Invoices
EXIT_SAPLFMPA_006 RFFMS200: Deactivate Conversion of Overpayments
IMPORTING Parameters details for FM_PAYTR_GET_CLEARED_ITEMS_FI
I_BELNR - Clearing Document Number
Data type: PAYR-VBLNROptional: No
Call by Reference: No ( called with pass by value option)
I_BUKRS - Company Code
Data type: PAYR-ZBUKROptional: No
Call by Reference: No ( called with pass by value option)
I_GJAHR -
Data type: PAYR-GJAHROptional: No
Call by Reference: No ( called with pass by value option)
I_BVORG - Cross-Company Code Transaction
Data type: BKPF-BVORGOptional: No
Call by Reference: No ( called with pass by value option)
I_AUGDT -
Data type: BSEG-AUGDTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_RFZEI -
Data type: BSEG-RFZEIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_CALL_FROM_S201 -
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FM_PAYTR_GET_CLEARED_ITEMS_FI
T_ITEMS_DOC -
Data type: FMPA_T_FI_ITEM_TYPEOptional: No
Call by Reference: Yes
T_ITEMS -
Data type: FMPA_T_FI_HEADER_TYPEOptional: No
Call by Reference: Yes
T_ACCNT -
Data type: RF05R_ACCTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FM_PAYTR_GET_CLEARED_ITEMS_FI 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_i_belnr | TYPE PAYR-VBLNR, " | |||
| lv_not_found | TYPE PAYR, " | |||
| lt_t_items_doc | TYPE STANDARD TABLE OF FMPA_T_FI_ITEM_TYPE, " | |||
| lv_i_bukrs | TYPE PAYR-ZBUKR, " | |||
| lt_t_items | TYPE STANDARD TABLE OF FMPA_T_FI_HEADER_TYPE, " | |||
| lv_i_gjahr | TYPE PAYR-GJAHR, " | |||
| lt_t_accnt | TYPE STANDARD TABLE OF RF05R_ACCT, " | |||
| lv_i_bvorg | TYPE BKPF-BVORG, " | |||
| lv_i_augdt | TYPE BSEG-AUGDT, " | |||
| lv_i_rfzei | TYPE BSEG-RFZEI, " | |||
| lv_i_flg_call_from_s201 | TYPE C. " |
|   CALL FUNCTION 'FM_PAYTR_GET_CLEARED_ITEMS_FI' " |
| EXPORTING | ||
| I_BELNR | = lv_i_belnr | |
| I_BUKRS | = lv_i_bukrs | |
| I_GJAHR | = lv_i_gjahr | |
| I_BVORG | = lv_i_bvorg | |
| I_AUGDT | = lv_i_augdt | |
| I_RFZEI | = lv_i_rfzei | |
| I_FLG_CALL_FROM_S201 | = lv_i_flg_call_from_s201 | |
| TABLES | ||
| T_ITEMS_DOC | = lt_t_items_doc | |
| T_ITEMS | = lt_t_items | |
| T_ACCNT | = lt_t_accnt | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| . " FM_PAYTR_GET_CLEARED_ITEMS_FI | ||
ABAP code using 7.40 inline data declarations to call FM FM_PAYTR_GET_CLEARED_ITEMS_FI
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 VBLNR FROM PAYR INTO @DATA(ld_i_belnr). | ||||
| "SELECT single ZBUKR FROM PAYR INTO @DATA(ld_i_bukrs). | ||||
| "SELECT single GJAHR FROM PAYR INTO @DATA(ld_i_gjahr). | ||||
| "SELECT single BVORG FROM BKPF INTO @DATA(ld_i_bvorg). | ||||
| "SELECT single AUGDT FROM BSEG INTO @DATA(ld_i_augdt). | ||||
| "SELECT single RFZEI FROM BSEG INTO @DATA(ld_i_rfzei). | ||||
Search for further information about these or an SAP related objects