SAP MC_DIAGRAM_RANGES Function Module for Input/output diagram ranges
MC_DIAGRAM_RANGES is a standard mc diagram 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 Input/output diagram 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 mc diagram ranges FM, simply by entering the name MC_DIAGRAM_RANGES into the relevant SAP transaction such as SE37 or SE38.
Function Group: MCF1
Program Name: SAPLMCF1
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MC_DIAGRAM_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 'MC_DIAGRAM_RANGES'"Input/output diagram ranges.
EXPORTING
I_DD_ZEITR = "Period
I_R_DATE = "Period to analyze - current date
I_SL_ZEITR = "Period
TABLES
T_ARBPL = "Work Center
T_AUFNR = "Production Order
T_KAPID = "CAP ID
T_PLNUM = "Planned Order
T_WERKS = "Plant
IMPORTING Parameters details for MC_DIAGRAM_RANGES
I_DD_ZEITR - Period
Data type: LMCF1_ZEITOptional: No
Call by Reference: No ( called with pass by value option)
I_R_DATE - Period to analyze - current date
Data type: S022-SPTAGOptional: No
Call by Reference: No ( called with pass by value option)
I_SL_ZEITR - Period
Data type: LMCF1_ZEITOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MC_DIAGRAM_RANGES
T_ARBPL - Work Center
Data type: LMCF1_ARBOptional: No
Call by Reference: No ( called with pass by value option)
T_AUFNR - Production Order
Data type: LMCF1_FAUFOptional: No
Call by Reference: No ( called with pass by value option)
T_KAPID - CAP ID
Data type: LMCF1_KAPOptional: No
Call by Reference: No ( called with pass by value option)
T_PLNUM - Planned Order
Data type: LMCF1_PLNOptional: No
Call by Reference: No ( called with pass by value option)
T_WERKS - Plant
Data type: LMCF1_WRKOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MC_DIAGRAM_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_arbpl | TYPE STANDARD TABLE OF LMCF1_ARB, " | |||
| lv_i_dd_zeitr | TYPE LMCF1_ZEIT, " | |||
| lt_t_aufnr | TYPE STANDARD TABLE OF LMCF1_FAUF, " | |||
| lv_i_r_date | TYPE S022-SPTAG, " | |||
| lt_t_kapid | TYPE STANDARD TABLE OF LMCF1_KAP, " | |||
| lv_i_sl_zeitr | TYPE LMCF1_ZEIT, " | |||
| lt_t_plnum | TYPE STANDARD TABLE OF LMCF1_PLN, " | |||
| lt_t_werks | TYPE STANDARD TABLE OF LMCF1_WRK. " |
|   CALL FUNCTION 'MC_DIAGRAM_RANGES' "Input/output diagram ranges |
| EXPORTING | ||
| I_DD_ZEITR | = lv_i_dd_zeitr | |
| I_R_DATE | = lv_i_r_date | |
| I_SL_ZEITR | = lv_i_sl_zeitr | |
| TABLES | ||
| T_ARBPL | = lt_t_arbpl | |
| T_AUFNR | = lt_t_aufnr | |
| T_KAPID | = lt_t_kapid | |
| T_PLNUM | = lt_t_plnum | |
| T_WERKS | = lt_t_werks | |
| . " MC_DIAGRAM_RANGES | ||
ABAP code using 7.40 inline data declarations to call FM MC_DIAGRAM_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.| "SELECT single SPTAG FROM S022 INTO @DATA(ld_i_r_date). | ||||
Search for further information about these or an SAP related objects