SAP COIS_SELECT_TREE_BUILD Function Module for NOTRANSL: Built hierachy tree of orders
COIS_SELECT_TREE_BUILD is a standard cois select tree build 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: Built hierachy tree of 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 cois select tree build FM, simply by entering the name COIS_SELECT_TREE_BUILD 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_TREE_BUILD 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_TREE_BUILD'"NOTRANSL: Built hierachy tree of orders.
EXPORTING
* IV_FILL_EXTENSION = ' ' "General Flag
* IS_TCOA = "Overall profile for order information system
CHANGING
CT_TREE = "Generic Type
* CT_IOGOMO = "Table for Structure IOGOMO
* 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_IOHEADER = "Headers
* CT_IOOPPREQ = "Table for Structure IOOPPREQ
* 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_IOITEM = "Items
* CT_IOOPSCCF = "Table for Structure IOOPSCCF
* CT_IOSOSCCF = "Table for Structure IOSOSCCF
* CT_IODOCL = "Table for Structure IODOCL
* 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
IMPORTING Parameters details for COIS_SELECT_TREE_BUILD
IV_FILL_EXTENSION - General Flag
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: Yes
IS_TCOA - Overall profile for order information system
Data type: TCOAOptional: Yes
Call by Reference: Yes
CHANGING Parameters details for COIS_SELECT_TREE_BUILD
CT_TREE - Generic Type
Data type: TABLEOptional: No
Call by Reference: Yes
CT_IOGOMO - Table for Structure IOGOMO
Data type: IOGOMO_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_IOHEADER - Headers
Data type: IOHEADER_TABOptional: Yes
Call by Reference: Yes
CT_IOOPPREQ - Table for Structure IOOPPREQ
Data type: IOOPPREQ_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_IOITEM - Items
Data type: IOITEM_TABOptional: Yes
Call by Reference: Yes
CT_IOOPSCCF - Table for Structure IOOPSCCF
Data type: IOOPSCCF_TABOptional: Yes
Call by Reference: Yes
CT_IOSOSCCF - Table for Structure IOSOSCCF
Data type: IOSOSCCF_TABOptional: Yes
Call by Reference: Yes
CT_IODOCL - Table for Structure IODOCL
Data type: IODOCL_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
Copy and paste ABAP code example for COIS_SELECT_TREE_BUILD 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_tree | TYPE TABLE, " | |||
| lv_iv_fill_extension | TYPE FLAG, " SPACE | |||
| lv_ct_iogomo | TYPE IOGOMO_TAB, " | |||
| 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_is_tcoa | TYPE TCOA, " | |||
| lv_ct_ioheader | TYPE IOHEADER_TAB, " | |||
| lv_ct_iooppreq | TYPE IOOPPREQ_TAB, " | |||
| 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_ioitem | TYPE IOITEM_TAB, " | |||
| lv_ct_ioopsccf | TYPE IOOPSCCF_TAB, " | |||
| lv_ct_iososccf | TYPE IOSOSCCF_TAB, " | |||
| lv_ct_iodocl | TYPE IODOCL_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. " |
|   CALL FUNCTION 'COIS_SELECT_TREE_BUILD' "NOTRANSL: Built hierachy tree of orders |
| EXPORTING | ||
| IV_FILL_EXTENSION | = lv_iv_fill_extension | |
| IS_TCOA | = lv_is_tcoa | |
| CHANGING | ||
| CT_TREE | = lv_ct_tree | |
| CT_IOGOMO | = lv_ct_iogomo | |
| 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_IOHEADER | = lv_ct_ioheader | |
| CT_IOOPPREQ | = lv_ct_iooppreq | |
| 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_IOITEM | = lv_ct_ioitem | |
| CT_IOOPSCCF | = lv_ct_ioopsccf | |
| CT_IOSOSCCF | = lv_ct_iososccf | |
| CT_IODOCL | = lv_ct_iodocl | |
| 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 | |
| . " COIS_SELECT_TREE_BUILD | ||
ABAP code using 7.40 inline data declarations to call FM COIS_SELECT_TREE_BUILD
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_fill_extension) | = ' '. | |||
Search for further information about these or an SAP related objects