SAP COWB01_PLANNED_ORDERS_READ Function Module for Reading Planned Orders
COWB01_PLANNED_ORDERS_READ is a standard cowb01 planned orders read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Reading Planned Orders 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 cowb01 planned orders read FM, simply by entering the name COWB01_PLANNED_ORDERS_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: COWB01
Program Name: SAPLCOWB01
Main Program: SAPLCOWB01
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function COWB01_PLANNED_ORDERS_READ 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 'COWB01_PLANNED_ORDERS_READ'"Reading Planned Orders.
EXPORTING
IT_PLNUM = "
IR_BDTER = "Range Table for Data Element SYDATUM
I_XFEHL = "General Indicator
* I_REM_ONLY = "
* I_FLG_HEADER_READ = ' ' "General Indicator
* I_FLG_COMPONENT_READ = ' ' "
* I_FLG_PRODLIST_READ = ' ' "
* I_FLG_MATVER_READ = ' ' "
I_FILTER = "General Indicator
IR_COMPO = "Range Table for Data Element MATNR
IR_CWERK = "Range Table for Data Element WERKS_D
IR_LGORT = "Range Table for Data Element LGORT_D
IMPORTING
ET_HEADER = "Table for Displaying Order Headers
ET_COMPONENT = "Table for Displaying Order Components
ET_PRODLIST = "Table for Displaying Production List
ET_MATVER = "Table for Displaying Material/Production Version
IMPORTING Parameters details for COWB01_PLANNED_ORDERS_READ
IT_PLNUM -
Data type: COWB_T_PLNUMOptional: No
Call by Reference: Yes
IR_BDTER - Range Table for Data Element SYDATUM
Data type: RANGE_T_DATSOptional: No
Call by Reference: No ( called with pass by value option)
I_XFEHL - General Indicator
Data type: FLAGOptional: No
Call by Reference: No ( called with pass by value option)
I_REM_ONLY -
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_HEADER_READ - General Indicator
Data type: FLAGDefault: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)
I_FLG_COMPONENT_READ -
Data type: FLAGDefault: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)
I_FLG_PRODLIST_READ -
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_MATVER_READ -
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FILTER - General Indicator
Data type: FLAGOptional: No
Call by Reference: No ( called with pass by value option)
IR_COMPO - Range Table for Data Element MATNR
Data type: RANGE_T_MATNROptional: No
Call by Reference: No ( called with pass by value option)
IR_CWERK - Range Table for Data Element WERKS_D
Data type: RANGE_T_WERKS_DOptional: No
Call by Reference: No ( called with pass by value option)
IR_LGORT - Range Table for Data Element LGORT_D
Data type: RANGE_T_LGORT_DOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for COWB01_PLANNED_ORDERS_READ
ET_HEADER - Table for Displaying Order Headers
Data type: COWB_T_HEADEROptional: No
Call by Reference: Yes
ET_COMPONENT - Table for Displaying Order Components
Data type: COWB_T_COMPONENTOptional: No
Call by Reference: Yes
ET_PRODLIST - Table for Displaying Production List
Data type: COWB_T_PRODLISTOptional: No
Call by Reference: Yes
ET_MATVER - Table for Displaying Material/Production Version
Data type: COWB_T_MATVEROptional: No
Call by Reference: Yes
Copy and paste ABAP code example for COWB01_PLANNED_ORDERS_READ 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_it_plnum | TYPE COWB_T_PLNUM, " | |||
| lv_et_header | TYPE COWB_T_HEADER, " | |||
| lv_ir_bdter | TYPE RANGE_T_DATS, " | |||
| lv_i_xfehl | TYPE FLAG, " | |||
| lv_i_rem_only | TYPE FLAG, " | |||
| lv_et_component | TYPE COWB_T_COMPONENT, " | |||
| lv_i_flg_header_read | TYPE FLAG, " SPACE | |||
| lv_et_prodlist | TYPE COWB_T_PRODLIST, " | |||
| lv_i_flg_component_read | TYPE FLAG, " SPACE | |||
| lv_et_matver | TYPE COWB_T_MATVER, " | |||
| lv_i_flg_prodlist_read | TYPE FLAG, " SPACE | |||
| lv_i_flg_matver_read | TYPE FLAG, " SPACE | |||
| lv_i_filter | TYPE FLAG, " | |||
| lv_ir_compo | TYPE RANGE_T_MATNR, " | |||
| lv_ir_cwerk | TYPE RANGE_T_WERKS_D, " | |||
| lv_ir_lgort | TYPE RANGE_T_LGORT_D. " |
|   CALL FUNCTION 'COWB01_PLANNED_ORDERS_READ' "Reading Planned Orders |
| EXPORTING | ||
| IT_PLNUM | = lv_it_plnum | |
| IR_BDTER | = lv_ir_bdter | |
| I_XFEHL | = lv_i_xfehl | |
| I_REM_ONLY | = lv_i_rem_only | |
| I_FLG_HEADER_READ | = lv_i_flg_header_read | |
| I_FLG_COMPONENT_READ | = lv_i_flg_component_read | |
| I_FLG_PRODLIST_READ | = lv_i_flg_prodlist_read | |
| I_FLG_MATVER_READ | = lv_i_flg_matver_read | |
| I_FILTER | = lv_i_filter | |
| IR_COMPO | = lv_ir_compo | |
| IR_CWERK | = lv_ir_cwerk | |
| IR_LGORT | = lv_ir_lgort | |
| IMPORTING | ||
| ET_HEADER | = lv_et_header | |
| ET_COMPONENT | = lv_et_component | |
| ET_PRODLIST | = lv_et_prodlist | |
| ET_MATVER | = lv_et_matver | |
| . " COWB01_PLANNED_ORDERS_READ | ||
ABAP code using 7.40 inline data declarations to call FM COWB01_PLANNED_ORDERS_READ
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.| DATA(ld_i_flg_header_read) | = ' '. | |||
| DATA(ld_i_flg_component_read) | = ' '. | |||
| DATA(ld_i_flg_prodlist_read) | = ' '. | |||
| DATA(ld_i_flg_matver_read) | = ' '. | |||
Search for further information about these or an SAP related objects