SAP FM_INVENTORY_READ_WITH_RANGES Function Module for Read FMBE with ranges
FM_INVENTORY_READ_WITH_RANGES is a standard fm inventory read with ranges 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 FMBE with ranges 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 inventory read with ranges FM, simply by entering the name FM_INVENTORY_READ_WITH_RANGES into the relevant SAP transaction such as SE37 or SE38.
Function Group: FMBE
Program Name: SAPLFMBE
Main Program:
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FM_INVENTORY_READ_WITH_RANGES 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_INVENTORY_READ_WITH_RANGES'"Read FMBE with ranges.
TABLES
* T_LEDNR = "
* T_BUKRS = "
* T_GSBER = "
T_FMBETAB = "
* T_OBJNR = "
* T_GJAHR = "
* T_PERIO = "
* T_PERIO7 = "
* T_WRTTP = "
* T_VORGA = "
* T_POSIT = "
* T_TWAER = "
TABLES Parameters details for FM_INVENTORY_READ_WITH_RANGES
T_LEDNR -
Data type: RANGE_C4Optional: Yes
Call by Reference: No ( called with pass by value option)
T_BUKRS -
Data type: RANGE_C4Optional: Yes
Call by Reference: No ( called with pass by value option)
T_GSBER -
Data type: RANGE_C4Optional: Yes
Call by Reference: No ( called with pass by value option)
T_FMBETAB -
Data type: FMFMBE2Optional: No
Call by Reference: No ( called with pass by value option)
T_OBJNR -
Data type: RANGE_C22Optional: Yes
Call by Reference: No ( called with pass by value option)
T_GJAHR -
Data type: RANGE_N4Optional: Yes
Call by Reference: No ( called with pass by value option)
T_PERIO -
Data type: RANGE_N3Optional: Yes
Call by Reference: No ( called with pass by value option)
T_PERIO7 -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
T_WRTTP -
Data type: RSN2RANGEOptional: Yes
Call by Reference: No ( called with pass by value option)
T_VORGA -
Data type: RANGE_C4Optional: Yes
Call by Reference: No ( called with pass by value option)
T_POSIT -
Data type: RANGE_C8Optional: Yes
Call by Reference: No ( called with pass by value option)
T_TWAER -
Data type: RANGE_CUKYOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FM_INVENTORY_READ_WITH_RANGES 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: | ||||
| lt_t_lednr | TYPE STANDARD TABLE OF RANGE_C4, " | |||
| lt_t_bukrs | TYPE STANDARD TABLE OF RANGE_C4, " | |||
| lt_t_gsber | TYPE STANDARD TABLE OF RANGE_C4, " | |||
| lt_t_fmbetab | TYPE STANDARD TABLE OF FMFMBE2, " | |||
| lt_t_objnr | TYPE STANDARD TABLE OF RANGE_C22, " | |||
| lt_t_gjahr | TYPE STANDARD TABLE OF RANGE_N4, " | |||
| lt_t_perio | TYPE STANDARD TABLE OF RANGE_N3, " | |||
| lt_t_perio7 | TYPE STANDARD TABLE OF RANGE_N3, " | |||
| lt_t_wrttp | TYPE STANDARD TABLE OF RSN2RANGE, " | |||
| lt_t_vorga | TYPE STANDARD TABLE OF RANGE_C4, " | |||
| lt_t_posit | TYPE STANDARD TABLE OF RANGE_C8, " | |||
| lt_t_twaer | TYPE STANDARD TABLE OF RANGE_CUKY. " |
|   CALL FUNCTION 'FM_INVENTORY_READ_WITH_RANGES' "Read FMBE with ranges |
| TABLES | ||
| T_LEDNR | = lt_t_lednr | |
| T_BUKRS | = lt_t_bukrs | |
| T_GSBER | = lt_t_gsber | |
| T_FMBETAB | = lt_t_fmbetab | |
| T_OBJNR | = lt_t_objnr | |
| T_GJAHR | = lt_t_gjahr | |
| T_PERIO | = lt_t_perio | |
| T_PERIO7 | = lt_t_perio7 | |
| T_WRTTP | = lt_t_wrttp | |
| T_VORGA | = lt_t_vorga | |
| T_POSIT | = lt_t_posit | |
| T_TWAER | = lt_t_twaer | |
| . " FM_INVENTORY_READ_WITH_RANGES | ||
ABAP code using 7.40 inline data declarations to call FM FM_INVENTORY_READ_WITH_RANGES
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.Search for further information about these or an SAP related objects