SAP FM_FIPOS_READ_MULTIPLE Function Module for Read commitment items
FM_FIPOS_READ_MULTIPLE is a standard fm fipos read multiple SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read commitment items 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 fm fipos read multiple FM, simply by entering the name FM_FIPOS_READ_MULTIPLE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FM3A
Program Name: SAPLFM3A
Main Program:
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FM_FIPOS_READ_MULTIPLE 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_FIPOS_READ_MULTIPLE'"Read commitment items.
EXPORTING
I_FIKRS = "FM area
* I_FLAG_KONT = 'X' "Account assignment item indicator
* I_FLAG_VERD = 'X' "Summarization item indicator
* I_FLAG_TEXT = ' ' "Read indicator for text
* I_LANGUAGE = SY-LANGU "Read language key for texts
* I_POSHIVERS = 'SAP' "Item hierarchy version
* I_GJAHR = '0000' "Fiscal year
* I_PERIV = ' ' "Fiscal year variant
* I_DATUM = '00000000' "Date
TABLES
* R_FIPOS = "Ranges table for commitment items (external)
* R_POSIT = "Ranges table for commitment items (internal)
* T_FMFPO = "Account assignment items
* T_FMFPOT = "Account assignment item text
* T_FMFCPO = "Summarization items
* T_FMFCPOT = "Summarization item text
EXCEPTIONS
INPUT_ERROR = 1 MASTER_DATA_NOT_FOUND = 2
IMPORTING Parameters details for FM_FIPOS_READ_MULTIPLE
I_FIKRS - FM area
Data type: FM01-FIKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_FLAG_KONT - Account assignment item indicator
Data type: FMDY-XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLAG_VERD - Summarization item indicator
Data type: FMDY-XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLAG_TEXT - Read indicator for text
Data type: FMDY-XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LANGUAGE - Read language key for texts
Data type: FM01-SPRASDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_POSHIVERS - Item hierarchy version
Data type: FMFCPO-POSHIVERSDefault: 'SAP'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_GJAHR - Fiscal year
Data type: BPJA-GJAHRDefault: '0000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PERIV - Fiscal year variant
Data type: FM01-PERIVDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DATUM - Date
Data type: FM01-DATBISDefault: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FM_FIPOS_READ_MULTIPLE
R_FIPOS - Ranges table for commitment items (external)
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
R_POSIT - Ranges table for commitment items (internal)
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
T_FMFPO - Account assignment items
Data type: FMFPOOptional: Yes
Call by Reference: No ( called with pass by value option)
T_FMFPOT - Account assignment item text
Data type: FMFPOTOptional: Yes
Call by Reference: No ( called with pass by value option)
T_FMFCPO - Summarization items
Data type: FMFCPOOptional: Yes
Call by Reference: No ( called with pass by value option)
T_FMFCPOT - Summarization item text
Data type: FMFCPOTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INPUT_ERROR - Input error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MASTER_DATA_NOT_FOUND - Master record not found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FM_FIPOS_READ_MULTIPLE 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_fikrs | TYPE FM01-FIKRS, " | |||
| lt_r_fipos | TYPE STANDARD TABLE OF FM01, " | |||
| lv_input_error | TYPE FM01, " | |||
| lt_r_posit | TYPE STANDARD TABLE OF FM01, " | |||
| lv_i_flag_kont | TYPE FMDY-XFELD, " 'X' | |||
| lv_master_data_not_found | TYPE FMDY, " | |||
| lt_t_fmfpo | TYPE STANDARD TABLE OF FMFPO, " | |||
| lv_i_flag_verd | TYPE FMDY-XFELD, " 'X' | |||
| lt_t_fmfpot | TYPE STANDARD TABLE OF FMFPOT, " | |||
| lv_i_flag_text | TYPE FMDY-XFELD, " SPACE | |||
| lt_t_fmfcpo | TYPE STANDARD TABLE OF FMFCPO, " | |||
| lv_i_language | TYPE FM01-SPRAS, " SY-LANGU | |||
| lt_t_fmfcpot | TYPE STANDARD TABLE OF FMFCPOT, " | |||
| lv_i_poshivers | TYPE FMFCPO-POSHIVERS, " 'SAP' | |||
| lv_i_gjahr | TYPE BPJA-GJAHR, " '0000' | |||
| lv_i_periv | TYPE FM01-PERIV, " SPACE | |||
| lv_i_datum | TYPE FM01-DATBIS. " '00000000' |
|   CALL FUNCTION 'FM_FIPOS_READ_MULTIPLE' "Read commitment items |
| EXPORTING | ||
| I_FIKRS | = lv_i_fikrs | |
| I_FLAG_KONT | = lv_i_flag_kont | |
| I_FLAG_VERD | = lv_i_flag_verd | |
| I_FLAG_TEXT | = lv_i_flag_text | |
| I_LANGUAGE | = lv_i_language | |
| I_POSHIVERS | = lv_i_poshivers | |
| I_GJAHR | = lv_i_gjahr | |
| I_PERIV | = lv_i_periv | |
| I_DATUM | = lv_i_datum | |
| TABLES | ||
| R_FIPOS | = lt_r_fipos | |
| R_POSIT | = lt_r_posit | |
| T_FMFPO | = lt_t_fmfpo | |
| T_FMFPOT | = lt_t_fmfpot | |
| T_FMFCPO | = lt_t_fmfcpo | |
| T_FMFCPOT | = lt_t_fmfcpot | |
| EXCEPTIONS | ||
| INPUT_ERROR = 1 | ||
| MASTER_DATA_NOT_FOUND = 2 | ||
| . " FM_FIPOS_READ_MULTIPLE | ||
ABAP code using 7.40 inline data declarations to call FM FM_FIPOS_READ_MULTIPLE
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 FIKRS FROM FM01 INTO @DATA(ld_i_fikrs). | ||||
| "SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flag_kont). | ||||
| DATA(ld_i_flag_kont) | = 'X'. | |||
| "SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flag_verd). | ||||
| DATA(ld_i_flag_verd) | = 'X'. | |||
| "SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flag_text). | ||||
| DATA(ld_i_flag_text) | = ' '. | |||
| "SELECT single SPRAS FROM FM01 INTO @DATA(ld_i_language). | ||||
| DATA(ld_i_language) | = SY-LANGU. | |||
| "SELECT single POSHIVERS FROM FMFCPO INTO @DATA(ld_i_poshivers). | ||||
| DATA(ld_i_poshivers) | = 'SAP'. | |||
| "SELECT single GJAHR FROM BPJA INTO @DATA(ld_i_gjahr). | ||||
| DATA(ld_i_gjahr) | = '0000'. | |||
| "SELECT single PERIV FROM FM01 INTO @DATA(ld_i_periv). | ||||
| DATA(ld_i_periv) | = ' '. | |||
| "SELECT single DATBIS FROM FM01 INTO @DATA(ld_i_datum). | ||||
| DATA(ld_i_datum) | = '00000000'. | |||
Search for further information about these or an SAP related objects