SAP MD_SELECTION_SR_LIST_RANGE Function Module for NOTRANSL: Selection Module Material Overview SR Lists
MD_SELECTION_SR_LIST_RANGE is a standard md selection sr list range SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Selection Module Material Overview SR Lists 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 md selection sr list range FM, simply by entering the name MD_SELECTION_SR_LIST_RANGE into the relevant SAP transaction such as SE37 or SE38.
Function Group: M61R
Program Name: SAPLM61R
Main Program: SAPLM61R
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function MD_SELECTION_SR_LIST_RANGE 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 'MD_SELECTION_SR_LIST_RANGE'"NOTRANSL: Selection Module Material Overview SR Lists.
EXPORTING
* IV_PLSCN = "Planning Scenario of Long-Term Planning
* IR_LINE1 = "Range Table for Production Line
* IV_PRGKZ = "Product Group
* IR_PRGRP = "Range Table for Product Group
* IR_MATNR = "Range Table for Material Number
* IR_DISGR = "Range Table for MRP Group
* IR_BESKZ = "Range Table for Procurement Type
* IR_DISMM = "Range Table for MRP Type
* IR_MTART = "Range Table for Material Type
* IR_SOBSL = "Range Table for Special Procurement Type
* IR_MAABC = "Range Table for ABC Indicator
IR_WERKS = "Range Table for Plant
* IR_MMSTA = "Range Table for Plant-Specific Material Status
* IV_GSAEN = "Net change planning indicator
* IV_NOGSA = "No planning file entry for net change mode
* IV_NOLVM = "Indicator: Materials Without Deletion Flag Only
* IR_BERW1 = "Range Table for Stock Days' Supply
* IR_BERW2 = "Range Table for 1st Receipt Days' Supply
* IR_BERW4 = "Range Table for 2nd Receipt Days' Supply
* IR_BERID = "Range Table for MRP Area
* IV_ERGBZ = "Selection Rule
* IV_DSPKZ = "Indicator: Selection by MRP Controller
* IR_DISPO = "Range Table for Materials Planner
* IV_LIEKZ = "Indicator: Selection by Vendor
* IR_LIFNR = "Range Table for Vendor
* IV_FLIKZ = "Indicator: Selection by Production Line
IMPORTING
ES_RETURN = "Return Parameter(s)
TABLES
ET_MDKEX = "Extract of header data for MRP document
* ET_DETAIL_RETURN = "
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_SAPLM61R_001 User Exit for Evaluation PP-MRP Material Requirements Planning
IMPORTING Parameters details for MD_SELECTION_SR_LIST_RANGE
IV_PLSCN - Planning Scenario of Long-Term Planning
Data type: PLSCNOptional: Yes
Call by Reference: No ( called with pass by value option)
IR_LINE1 - Range Table for Production Line
Data type: MD_RANGE_T_LINE1Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_PRGKZ - Product Group
Data type: PRGKZOptional: Yes
Call by Reference: No ( called with pass by value option)
IR_PRGRP - Range Table for Product Group
Data type: MD_RANGE_T_PRGRPOptional: Yes
Call by Reference: No ( called with pass by value option)
IR_MATNR - Range Table for Material Number
Data type: MD_RANGE_T_MATNROptional: Yes
Call by Reference: No ( called with pass by value option)
IR_DISGR - Range Table for MRP Group
Data type: MD_RANGE_T_DISGROptional: Yes
Call by Reference: No ( called with pass by value option)
IR_BESKZ - Range Table for Procurement Type
Data type: MD_RANGE_T_BESKZOptional: Yes
Call by Reference: No ( called with pass by value option)
IR_DISMM - Range Table for MRP Type
Data type: MD_RANGE_T_DISMMOptional: Yes
Call by Reference: No ( called with pass by value option)
IR_MTART - Range Table for Material Type
Data type: MD_RANGE_T_MTARTOptional: Yes
Call by Reference: No ( called with pass by value option)
IR_SOBSL - Range Table for Special Procurement Type
Data type: MD_RANGE_T_SOBSLOptional: Yes
Call by Reference: No ( called with pass by value option)
IR_MAABC - Range Table for ABC Indicator
Data type: MD_RANGE_T_MAABCOptional: Yes
Call by Reference: No ( called with pass by value option)
IR_WERKS - Range Table for Plant
Data type: MD_RANGE_T_WERKSOptional: No
Call by Reference: No ( called with pass by value option)
IR_MMSTA - Range Table for Plant-Specific Material Status
Data type: MD_RANGE_T_MMSTAOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_GSAEN - Net change planning indicator
Data type: GSAENOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_NOGSA - No planning file entry for net change mode
Data type: NOGSAOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_NOLVM - Indicator: Materials Without Deletion Flag Only
Data type: MD_NOLVMOptional: Yes
Call by Reference: No ( called with pass by value option)
IR_BERW1 - Range Table for Stock Days' Supply
Data type: MD_RANGE_T_BERW1Optional: Yes
Call by Reference: No ( called with pass by value option)
IR_BERW2 - Range Table for 1st Receipt Days' Supply
Data type: MD_RANGE_T_BERW2Optional: Yes
Call by Reference: No ( called with pass by value option)
IR_BERW4 - Range Table for 2nd Receipt Days' Supply
Data type: MD_RANGE_T_BERW4Optional: Yes
Call by Reference: No ( called with pass by value option)
IR_BERID - Range Table for MRP Area
Data type: MD_RANGE_T_BERIDOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_ERGBZ - Selection Rule
Data type: ERGBZOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_DSPKZ - Indicator: Selection by MRP Controller
Data type: DSPKZOptional: Yes
Call by Reference: No ( called with pass by value option)
IR_DISPO - Range Table for Materials Planner
Data type: MD_RANGE_T_DISPOOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_LIEKZ - Indicator: Selection by Vendor
Data type: LIEKZOptional: Yes
Call by Reference: No ( called with pass by value option)
IR_LIFNR - Range Table for Vendor
Data type: MD_RANGE_T_LIFNROptional: Yes
Call by Reference: No ( called with pass by value option)
IV_FLIKZ - Indicator: Selection by Production Line
Data type: FLIKZOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MD_SELECTION_SR_LIST_RANGE
ES_RETURN - Return Parameter(s)
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MD_SELECTION_SR_LIST_RANGE
ET_MDKEX - Extract of header data for MRP document
Data type: MDKEOptional: No
Call by Reference: Yes
ET_DETAIL_RETURN -
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for MD_SELECTION_SR_LIST_RANGE 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_et_mdkex | TYPE STANDARD TABLE OF MDKE, " | |||
| lv_iv_plscn | TYPE PLSCN, " | |||
| lv_es_return | TYPE BAPIRET2, " | |||
| lv_ir_line1 | TYPE MD_RANGE_T_LINE1, " | |||
| lv_iv_prgkz | TYPE PRGKZ, " | |||
| lv_ir_prgrp | TYPE MD_RANGE_T_PRGRP, " | |||
| lv_ir_matnr | TYPE MD_RANGE_T_MATNR, " | |||
| lv_ir_disgr | TYPE MD_RANGE_T_DISGR, " | |||
| lv_ir_beskz | TYPE MD_RANGE_T_BESKZ, " | |||
| lv_ir_dismm | TYPE MD_RANGE_T_DISMM, " | |||
| lv_ir_mtart | TYPE MD_RANGE_T_MTART, " | |||
| lv_ir_sobsl | TYPE MD_RANGE_T_SOBSL, " | |||
| lv_ir_maabc | TYPE MD_RANGE_T_MAABC, " | |||
| lv_ir_werks | TYPE MD_RANGE_T_WERKS, " | |||
| lt_et_detail_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_ir_mmsta | TYPE MD_RANGE_T_MMSTA, " | |||
| lv_iv_gsaen | TYPE GSAEN, " | |||
| lv_iv_nogsa | TYPE NOGSA, " | |||
| lv_iv_nolvm | TYPE MD_NOLVM, " | |||
| lv_ir_berw1 | TYPE MD_RANGE_T_BERW1, " | |||
| lv_ir_berw2 | TYPE MD_RANGE_T_BERW2, " | |||
| lv_ir_berw4 | TYPE MD_RANGE_T_BERW4, " | |||
| lv_ir_berid | TYPE MD_RANGE_T_BERID, " | |||
| lv_iv_ergbz | TYPE ERGBZ, " | |||
| lv_iv_dspkz | TYPE DSPKZ, " | |||
| lv_ir_dispo | TYPE MD_RANGE_T_DISPO, " | |||
| lv_iv_liekz | TYPE LIEKZ, " | |||
| lv_ir_lifnr | TYPE MD_RANGE_T_LIFNR, " | |||
| lv_iv_flikz | TYPE FLIKZ. " |
|   CALL FUNCTION 'MD_SELECTION_SR_LIST_RANGE' "NOTRANSL: Selection Module Material Overview SR Lists |
| EXPORTING | ||
| IV_PLSCN | = lv_iv_plscn | |
| IR_LINE1 | = lv_ir_line1 | |
| IV_PRGKZ | = lv_iv_prgkz | |
| IR_PRGRP | = lv_ir_prgrp | |
| IR_MATNR | = lv_ir_matnr | |
| IR_DISGR | = lv_ir_disgr | |
| IR_BESKZ | = lv_ir_beskz | |
| IR_DISMM | = lv_ir_dismm | |
| IR_MTART | = lv_ir_mtart | |
| IR_SOBSL | = lv_ir_sobsl | |
| IR_MAABC | = lv_ir_maabc | |
| IR_WERKS | = lv_ir_werks | |
| IR_MMSTA | = lv_ir_mmsta | |
| IV_GSAEN | = lv_iv_gsaen | |
| IV_NOGSA | = lv_iv_nogsa | |
| IV_NOLVM | = lv_iv_nolvm | |
| IR_BERW1 | = lv_ir_berw1 | |
| IR_BERW2 | = lv_ir_berw2 | |
| IR_BERW4 | = lv_ir_berw4 | |
| IR_BERID | = lv_ir_berid | |
| IV_ERGBZ | = lv_iv_ergbz | |
| IV_DSPKZ | = lv_iv_dspkz | |
| IR_DISPO | = lv_ir_dispo | |
| IV_LIEKZ | = lv_iv_liekz | |
| IR_LIFNR | = lv_ir_lifnr | |
| IV_FLIKZ | = lv_iv_flikz | |
| IMPORTING | ||
| ES_RETURN | = lv_es_return | |
| TABLES | ||
| ET_MDKEX | = lt_et_mdkex | |
| ET_DETAIL_RETURN | = lt_et_detail_return | |
| . " MD_SELECTION_SR_LIST_RANGE | ||
ABAP code using 7.40 inline data declarations to call FM MD_SELECTION_SR_LIST_RANGE
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