SAP CX_OPR_MATERIAL_COMP_SCHEDULE Function Module for NOTRANSL: schedule material components
CX_OPR_MATERIAL_COMP_SCHEDULE is a standard cx opr material comp schedule 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: schedule material components 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 cx opr material comp schedule FM, simply by entering the name CX_OPR_MATERIAL_COMP_SCHEDULE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CXOR
Program Name: SAPLCXOR
Main Program: SAPLCXOR
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CX_OPR_MATERIAL_COMP_SCHEDULE 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 'CX_OPR_MATERIAL_COMP_SCHEDULE'"NOTRANSL: schedule material components.
EXPORTING
IS_CAUFVD = "
IS_TCX00 = "
IS_AFVGD = "
* I_PLNUM = "
* I_SAFNR = "
* I_FLG_NO_CALENDAR = ' ' "
* I_FLG_GROBPL_PROFIL = ' ' "
* I_FLG_DATES_DET = ' ' "
TABLES
IT_COMP = "
* IT_COMP_UPD = "
* IT_CXPLMZ = "
* IT_CXGPRE = "
IMPORTING Parameters details for CX_OPR_MATERIAL_COMP_SCHEDULE
IS_CAUFVD -
Data type: CAUFVDOptional: No
Call by Reference: No ( called with pass by value option)
IS_TCX00 -
Data type: TCX00Optional: No
Call by Reference: No ( called with pass by value option)
IS_AFVGD -
Data type: AFVGDOptional: No
Call by Reference: No ( called with pass by value option)
I_PLNUM -
Data type: PLAF-PLNUMOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SAFNR -
Data type: SAUF-SAFNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_NO_CALENDAR -
Data type: CX_BOOLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_GROBPL_PROFIL -
Data type: CX_BOOLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_DATES_DET -
Data type: CX_BOOLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CX_OPR_MATERIAL_COMP_SCHEDULE
IT_COMP -
Data type: CX_COMP_SCHEDOptional: No
Call by Reference: No ( called with pass by value option)
IT_COMP_UPD -
Data type: CX_COMP_SCHEDOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_CXPLMZ -
Data type: CXPLMZOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_CXGPRE -
Data type: CXGPREOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CX_OPR_MATERIAL_COMP_SCHEDULE 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_it_comp | TYPE STANDARD TABLE OF CX_COMP_SCHED, " | |||
| lv_is_caufvd | TYPE CAUFVD, " | |||
| lv_is_tcx00 | TYPE TCX00, " | |||
| lt_it_comp_upd | TYPE STANDARD TABLE OF CX_COMP_SCHED, " | |||
| lv_is_afvgd | TYPE AFVGD, " | |||
| lt_it_cxplmz | TYPE STANDARD TABLE OF CXPLMZ, " | |||
| lv_i_plnum | TYPE PLAF-PLNUM, " | |||
| lt_it_cxgpre | TYPE STANDARD TABLE OF CXGPRE, " | |||
| lv_i_safnr | TYPE SAUF-SAFNR, " | |||
| lv_i_flg_no_calendar | TYPE CX_BOOL, " SPACE | |||
| lv_i_flg_grobpl_profil | TYPE CX_BOOL, " SPACE | |||
| lv_i_flg_dates_det | TYPE CX_BOOL. " SPACE |
|   CALL FUNCTION 'CX_OPR_MATERIAL_COMP_SCHEDULE' "NOTRANSL: schedule material components |
| EXPORTING | ||
| IS_CAUFVD | = lv_is_caufvd | |
| IS_TCX00 | = lv_is_tcx00 | |
| IS_AFVGD | = lv_is_afvgd | |
| I_PLNUM | = lv_i_plnum | |
| I_SAFNR | = lv_i_safnr | |
| I_FLG_NO_CALENDAR | = lv_i_flg_no_calendar | |
| I_FLG_GROBPL_PROFIL | = lv_i_flg_grobpl_profil | |
| I_FLG_DATES_DET | = lv_i_flg_dates_det | |
| TABLES | ||
| IT_COMP | = lt_it_comp | |
| IT_COMP_UPD | = lt_it_comp_upd | |
| IT_CXPLMZ | = lt_it_cxplmz | |
| IT_CXGPRE | = lt_it_cxgpre | |
| . " CX_OPR_MATERIAL_COMP_SCHEDULE | ||
ABAP code using 7.40 inline data declarations to call FM CX_OPR_MATERIAL_COMP_SCHEDULE
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 PLNUM FROM PLAF INTO @DATA(ld_i_plnum). | ||||
| "SELECT single SAFNR FROM SAUF INTO @DATA(ld_i_safnr). | ||||
| DATA(ld_i_flg_no_calendar) | = ' '. | |||
| DATA(ld_i_flg_grobpl_profil) | = ' '. | |||
| DATA(ld_i_flg_dates_det) | = ' '. | |||
Search for further information about these or an SAP related objects