SAP COIS_SELECT_ORDERS_READ Function Module for NOTRANSL: Read orders from database
COIS_SELECT_ORDERS_READ is a standard cois select 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 NOTRANSL: Read orders from database 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 cois select orders read FM, simply by entering the name COIS_SELECT_ORDERS_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: COISSELECT
Program Name: SAPLCOISSELECT
Main Program: SAPLCOISSELECT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function COIS_SELECT_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 'COIS_SELECT_ORDERS_READ'"NOTRANSL: Read orders from database.
EXPORTING
* IV_MSG_TYPE_C2_301 = 'S' "Message Type
* IV_FLG_REREAD = '' "General Flag
CHANGING
* CT_IOHEADER = "Headers
* CT_IOOPGOMO = "Table for Structure IOOPGOMO
* CT_IOSOGOMO = "Table for Structure IOSOGOMO
* CT_IOGMER = "Table for Structure IOGMER
* CT_IOOPGMER = "Table for Structure IOOPGMER
* CT_IOSOGMER = "Table for Structure ISOSGMER
* CT_IOSEQUEN = "Sequences
* CT_IOOPER = "Operations
* CT_IOSOPER = "Sub-operations
* CT_IOOPCOMP = "Components
* CT_IOOPPREQ = "Table for Structure IOOPPREQ
* CT_IOITEM = "Items
* CT_IOSOPREQ = "Purchase requisitions for sub-op.
* CT_IOOPPORD = "Table for Structure IOOPPORD
* CT_IOSOPORD = "Table for Structure IOSOPORD
* CT_IOOPMST = "Milestones
* CT_IOOPPRT = "Production Resources/Tools
* CT_IOOPCAP = "Table for Structure IOOPCAP
* CT_IOOPSCAP = "Table for Structure IOOPSCAP
* CT_IOSOCAP = "Table for Structure IOSOCAP
* CT_IOSOSCAP = "Table for Structure IOSOSCAP
* CT_IOOPSCCF = "Table for Structure IOOPSCCF
* CT_IODOCL = "Table for Structure IODOCL
* CT_IOSOSCCF = "Table for Structure IOSOSCCF
* CT_IOPRODLIST = "Table for Structure IOHEADER
* CT_IOPREDEC = "Table with Predecessors of Order Operations
* CT_IOOPDOCL = "Table for Structure IOOPDOCL
* CT_IOMAMO = "Table for Structure IOMAMO
* CT_IOCONF = "Table for Structure IOCONF
* CT_IOOPCONF = "Confirmations for operation
* CT_IOSOCONF = "Confirmations - sub-operation
* CT_IOGOMO = "Table for Structure IOGOMO
IMPORTING Parameters details for COIS_SELECT_ORDERS_READ
IV_MSG_TYPE_C2_301 - Message Type
Data type: SYMSGTYDefault: 'S'
Optional: Yes
Call by Reference: Yes
IV_FLG_REREAD - General Flag
Data type: FLAGDefault: ''
Optional: Yes
Call by Reference: Yes
CHANGING Parameters details for COIS_SELECT_ORDERS_READ
CT_IOHEADER - Headers
Data type: IOHEADER_TABOptional: Yes
Call by Reference: Yes
CT_IOOPGOMO - Table for Structure IOOPGOMO
Data type: IOOPGOMO_TABOptional: Yes
Call by Reference: Yes
CT_IOSOGOMO - Table for Structure IOSOGOMO
Data type: IOSOGOMO_TABOptional: Yes
Call by Reference: Yes
CT_IOGMER - Table for Structure IOGMER
Data type: IOGMER_TABOptional: Yes
Call by Reference: Yes
CT_IOOPGMER - Table for Structure IOOPGMER
Data type: IOOPGMER_TABOptional: Yes
Call by Reference: Yes
CT_IOSOGMER - Table for Structure ISOSGMER
Data type: IOSOGMER_TABOptional: Yes
Call by Reference: Yes
CT_IOSEQUEN - Sequences
Data type: IOSEQUEN_TABOptional: Yes
Call by Reference: Yes
CT_IOOPER - Operations
Data type: IOOPER_TABOptional: Yes
Call by Reference: Yes
CT_IOSOPER - Sub-operations
Data type: IOSOPER_TABOptional: Yes
Call by Reference: Yes
CT_IOOPCOMP - Components
Data type: IOOPCOMP_TABOptional: Yes
Call by Reference: Yes
CT_IOOPPREQ - Table for Structure IOOPPREQ
Data type: IOOPPREQ_TABOptional: Yes
Call by Reference: Yes
CT_IOITEM - Items
Data type: IOITEM_TABOptional: Yes
Call by Reference: Yes
CT_IOSOPREQ - Purchase requisitions for sub-op.
Data type: IOSOPREQ_TABOptional: Yes
Call by Reference: Yes
CT_IOOPPORD - Table for Structure IOOPPORD
Data type: IOOPPORD_TABOptional: Yes
Call by Reference: Yes
CT_IOSOPORD - Table for Structure IOSOPORD
Data type: IOSOPORD_TABOptional: Yes
Call by Reference: Yes
CT_IOOPMST - Milestones
Data type: IOOPMST_TABOptional: Yes
Call by Reference: Yes
CT_IOOPPRT - Production Resources/Tools
Data type: IOOPPRT_TABOptional: Yes
Call by Reference: Yes
CT_IOOPCAP - Table for Structure IOOPCAP
Data type: IOOPCAP_TABOptional: Yes
Call by Reference: Yes
CT_IOOPSCAP - Table for Structure IOOPSCAP
Data type: IOOPSCAP_TABOptional: Yes
Call by Reference: Yes
CT_IOSOCAP - Table for Structure IOSOCAP
Data type: IOSOCAP_TABOptional: Yes
Call by Reference: Yes
CT_IOSOSCAP - Table for Structure IOSOSCAP
Data type: IOSOSCAP_TABOptional: Yes
Call by Reference: Yes
CT_IOOPSCCF - Table for Structure IOOPSCCF
Data type: IOOPSCCF_TABOptional: Yes
Call by Reference: Yes
CT_IODOCL - Table for Structure IODOCL
Data type: IODOCL_TABOptional: Yes
Call by Reference: Yes
CT_IOSOSCCF - Table for Structure IOSOSCCF
Data type: IOSOSCCF_TABOptional: Yes
Call by Reference: Yes
CT_IOPRODLIST - Table for Structure IOHEADER
Data type: IOPRODLIST_TABOptional: Yes
Call by Reference: Yes
CT_IOPREDEC - Table with Predecessors of Order Operations
Data type: IOPREDEC_TABOptional: Yes
Call by Reference: Yes
CT_IOOPDOCL - Table for Structure IOOPDOCL
Data type: IOOPDOCL_TABOptional: Yes
Call by Reference: Yes
CT_IOMAMO - Table for Structure IOMAMO
Data type: IOMAMO_TABOptional: Yes
Call by Reference: Yes
CT_IOCONF - Table for Structure IOCONF
Data type: IOCONF_TABOptional: Yes
Call by Reference: Yes
CT_IOOPCONF - Confirmations for operation
Data type: IOOPCONF_TABOptional: Yes
Call by Reference: Yes
CT_IOSOCONF - Confirmations - sub-operation
Data type: IOSOCONF_TABOptional: Yes
Call by Reference: Yes
CT_IOGOMO - Table for Structure IOGOMO
Data type: IOGOMO_TABOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for COIS_SELECT_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_ct_ioheader | TYPE IOHEADER_TAB, " | |||
| lv_iv_msg_type_c2_301 | TYPE SYMSGTY, " 'S' | |||
| lv_ct_ioopgomo | TYPE IOOPGOMO_TAB, " | |||
| lv_ct_iosogomo | TYPE IOSOGOMO_TAB, " | |||
| lv_ct_iogmer | TYPE IOGMER_TAB, " | |||
| lv_ct_ioopgmer | TYPE IOOPGMER_TAB, " | |||
| lv_ct_iosogmer | TYPE IOSOGMER_TAB, " | |||
| lv_ct_iosequen | TYPE IOSEQUEN_TAB, " | |||
| lv_ct_iooper | TYPE IOOPER_TAB, " | |||
| lv_ct_iosoper | TYPE IOSOPER_TAB, " | |||
| lv_ct_ioopcomp | TYPE IOOPCOMP_TAB, " | |||
| lv_ct_iooppreq | TYPE IOOPPREQ_TAB, " | |||
| lv_ct_ioitem | TYPE IOITEM_TAB, " | |||
| lv_iv_flg_reread | TYPE FLAG, " '' | |||
| lv_ct_iosopreq | TYPE IOSOPREQ_TAB, " | |||
| lv_ct_iooppord | TYPE IOOPPORD_TAB, " | |||
| lv_ct_iosopord | TYPE IOSOPORD_TAB, " | |||
| lv_ct_ioopmst | TYPE IOOPMST_TAB, " | |||
| lv_ct_ioopprt | TYPE IOOPPRT_TAB, " | |||
| lv_ct_ioopcap | TYPE IOOPCAP_TAB, " | |||
| lv_ct_ioopscap | TYPE IOOPSCAP_TAB, " | |||
| lv_ct_iosocap | TYPE IOSOCAP_TAB, " | |||
| lv_ct_iososcap | TYPE IOSOSCAP_TAB, " | |||
| lv_ct_ioopsccf | TYPE IOOPSCCF_TAB, " | |||
| lv_ct_iodocl | TYPE IODOCL_TAB, " | |||
| lv_ct_iososccf | TYPE IOSOSCCF_TAB, " | |||
| lv_ct_ioprodlist | TYPE IOPRODLIST_TAB, " | |||
| lv_ct_iopredec | TYPE IOPREDEC_TAB, " | |||
| lv_ct_ioopdocl | TYPE IOOPDOCL_TAB, " | |||
| lv_ct_iomamo | TYPE IOMAMO_TAB, " | |||
| lv_ct_ioconf | TYPE IOCONF_TAB, " | |||
| lv_ct_ioopconf | TYPE IOOPCONF_TAB, " | |||
| lv_ct_iosoconf | TYPE IOSOCONF_TAB, " | |||
| lv_ct_iogomo | TYPE IOGOMO_TAB. " |
|   CALL FUNCTION 'COIS_SELECT_ORDERS_READ' "NOTRANSL: Read orders from database |
| EXPORTING | ||
| IV_MSG_TYPE_C2_301 | = lv_iv_msg_type_c2_301 | |
| IV_FLG_REREAD | = lv_iv_flg_reread | |
| CHANGING | ||
| CT_IOHEADER | = lv_ct_ioheader | |
| CT_IOOPGOMO | = lv_ct_ioopgomo | |
| CT_IOSOGOMO | = lv_ct_iosogomo | |
| CT_IOGMER | = lv_ct_iogmer | |
| CT_IOOPGMER | = lv_ct_ioopgmer | |
| CT_IOSOGMER | = lv_ct_iosogmer | |
| CT_IOSEQUEN | = lv_ct_iosequen | |
| CT_IOOPER | = lv_ct_iooper | |
| CT_IOSOPER | = lv_ct_iosoper | |
| CT_IOOPCOMP | = lv_ct_ioopcomp | |
| CT_IOOPPREQ | = lv_ct_iooppreq | |
| CT_IOITEM | = lv_ct_ioitem | |
| CT_IOSOPREQ | = lv_ct_iosopreq | |
| CT_IOOPPORD | = lv_ct_iooppord | |
| CT_IOSOPORD | = lv_ct_iosopord | |
| CT_IOOPMST | = lv_ct_ioopmst | |
| CT_IOOPPRT | = lv_ct_ioopprt | |
| CT_IOOPCAP | = lv_ct_ioopcap | |
| CT_IOOPSCAP | = lv_ct_ioopscap | |
| CT_IOSOCAP | = lv_ct_iosocap | |
| CT_IOSOSCAP | = lv_ct_iososcap | |
| CT_IOOPSCCF | = lv_ct_ioopsccf | |
| CT_IODOCL | = lv_ct_iodocl | |
| CT_IOSOSCCF | = lv_ct_iososccf | |
| CT_IOPRODLIST | = lv_ct_ioprodlist | |
| CT_IOPREDEC | = lv_ct_iopredec | |
| CT_IOOPDOCL | = lv_ct_ioopdocl | |
| CT_IOMAMO | = lv_ct_iomamo | |
| CT_IOCONF | = lv_ct_ioconf | |
| CT_IOOPCONF | = lv_ct_ioopconf | |
| CT_IOSOCONF | = lv_ct_iosoconf | |
| CT_IOGOMO | = lv_ct_iogomo | |
| . " COIS_SELECT_ORDERS_READ | ||
ABAP code using 7.40 inline data declarations to call FM COIS_SELECT_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_iv_msg_type_c2_301) | = 'S'. | |||
| DATA(ld_iv_flg_reread) | = ''. | |||
Search for further information about these or an SAP related objects