SAP CO_RU_MAINTAIN_COLLECTIVE_CONF Function Module for
CO_RU_MAINTAIN_COLLECTIVE_CONF is a standard co ru maintain collective conf SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 co ru maintain collective conf FM, simply by entering the name CO_RU_MAINTAIN_COLLECTIVE_CONF into the relevant SAP transaction such as SE37 or SE38.
Function Group: CORU
Program Name: SAPLCORU
Main Program: SAPLCORU
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CO_RU_MAINTAIN_COLLECTIVE_CONF 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 'CO_RU_MAINTAIN_COLLECTIVE_CONF'".
EXPORTING
I_AUTYP = "
I_CATEGORY = "
I_CONFTYPE = "
* I_TITLE = ' ' "
* I_STATUS = ' ' "
IMPORTING
E_RETCODE = "
TABLES
AFRUD_TAB = "
* IMSEG_TAB = "
* LINK_AFRUD_IMSEG_TAB = "
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLCORU_001 Order Confirmation: Deactivation of Functions
EXIT_SAPLCORU_S_001 QM: Create Notif. from Confirmation of Production Order
EXIT_SAPLCORU_S_100 Transfer Data from SAPLCORU_S to Customer-Defined Screen
EXIT_SAPLCORU_S_101 Return Data from Customer-Defined Screen to SAPLCORU_S
IMPORTING Parameters details for CO_RU_MAINTAIN_COLLECTIVE_CONF
I_AUTYP -
Data type: CAUFV-AUTYPOptional: No
Call by Reference: No ( called with pass by value option)
I_CATEGORY -
Data type: TRUS-CATEGORYOptional: No
Call by Reference: No ( called with pass by value option)
I_CONFTYPE -
Data type: TRUS-CONFTYPEOptional: No
Call by Reference: No ( called with pass by value option)
I_TITLE -
Data type: T185V-CTITELDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_STATUS -
Data type: TC01-CUASTATUSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CO_RU_MAINTAIN_COLLECTIVE_CONF
E_RETCODE -
Data type: COWB_CTRL-RETCODEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CO_RU_MAINTAIN_COLLECTIVE_CONF
AFRUD_TAB -
Data type: AFRUDOptional: No
Call by Reference: No ( called with pass by value option)
IMSEG_TAB -
Data type: IMSEGOptional: Yes
Call by Reference: No ( called with pass by value option)
LINK_AFRUD_IMSEG_TAB -
Data type: BAPI_LINK_CONF_GOODSMOVOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CO_RU_MAINTAIN_COLLECTIVE_CONF 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_i_autyp | TYPE CAUFV-AUTYP, " | |||
| lt_afrud_tab | TYPE STANDARD TABLE OF AFRUD, " | |||
| lv_e_retcode | TYPE COWB_CTRL-RETCODE, " | |||
| lt_imseg_tab | TYPE STANDARD TABLE OF IMSEG, " | |||
| lv_i_category | TYPE TRUS-CATEGORY, " | |||
| lv_i_conftype | TYPE TRUS-CONFTYPE, " | |||
| lt_link_afrud_imseg_tab | TYPE STANDARD TABLE OF BAPI_LINK_CONF_GOODSMOV, " | |||
| lv_i_title | TYPE T185V-CTITEL, " SPACE | |||
| lv_i_status | TYPE TC01-CUASTATUS. " SPACE |
|   CALL FUNCTION 'CO_RU_MAINTAIN_COLLECTIVE_CONF' " |
| EXPORTING | ||
| I_AUTYP | = lv_i_autyp | |
| I_CATEGORY | = lv_i_category | |
| I_CONFTYPE | = lv_i_conftype | |
| I_TITLE | = lv_i_title | |
| I_STATUS | = lv_i_status | |
| IMPORTING | ||
| E_RETCODE | = lv_e_retcode | |
| TABLES | ||
| AFRUD_TAB | = lt_afrud_tab | |
| IMSEG_TAB | = lt_imseg_tab | |
| LINK_AFRUD_IMSEG_TAB | = lt_link_afrud_imseg_tab | |
| . " CO_RU_MAINTAIN_COLLECTIVE_CONF | ||
ABAP code using 7.40 inline data declarations to call FM CO_RU_MAINTAIN_COLLECTIVE_CONF
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 AUTYP FROM CAUFV INTO @DATA(ld_i_autyp). | ||||
| "SELECT single RETCODE FROM COWB_CTRL INTO @DATA(ld_e_retcode). | ||||
| "SELECT single CATEGORY FROM TRUS INTO @DATA(ld_i_category). | ||||
| "SELECT single CONFTYPE FROM TRUS INTO @DATA(ld_i_conftype). | ||||
| "SELECT single CTITEL FROM T185V INTO @DATA(ld_i_title). | ||||
| DATA(ld_i_title) | = ' '. | |||
| "SELECT single CUASTATUS FROM TC01 INTO @DATA(ld_i_status). | ||||
| DATA(ld_i_status) | = ' '. | |||
Search for further information about these or an SAP related objects