SAP CRS_CLASS_COLLECT_DATA Function Module for NOTRANSL: Subscribe-Baustein zum Event 00004001
CRS_CLASS_COLLECT_DATA is a standard crs class collect data 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: Subscribe-Baustein zum Event 00004001 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 crs class collect data FM, simply by entering the name CRS_CLASS_COLLECT_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: CRM8
Program Name: SAPLCRM8
Main Program: SAPLCRM8
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CRS_CLASS_COLLECT_DATA 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 'CRS_CLASS_COLLECT_DATA'"NOTRANSL: Subscribe-Baustein zum Event 00004001.
EXPORTING
I_ACTIVITY_TYPE = "Change Type (U, I, E, D)
I_CLASS_HEADER = "Class Header Data
I_KLAH_UPDATE = "ABAP System Field: Background Processing Active
I_KLAT_UPDATE = "ABAP System Field: Background Processing Active
I_KSML_UPDATE = "ABAP System Field: Background Processing Active
I_SWOR_UPDATE = "ABAP System Field: Background Processing Active
TABLES
* I_CHARACT_TAB = "Characteristics of a Class
* I_CATCHWORD_TAB = "Classification System: Keywords
* I_TEXTS = "Texts
IMPORTING Parameters details for CRS_CLASS_COLLECT_DATA
I_ACTIVITY_TYPE - Change Type (U, I, E, D)
Data type: CDPOS-CHNGINDOptional: No
Call by Reference: No ( called with pass by value option)
I_CLASS_HEADER - Class Header Data
Data type: KLAHOptional: No
Call by Reference: No ( called with pass by value option)
I_KLAH_UPDATE - ABAP System Field: Background Processing Active
Data type: SY-BATCHOptional: No
Call by Reference: No ( called with pass by value option)
I_KLAT_UPDATE - ABAP System Field: Background Processing Active
Data type: SY-BATCHOptional: No
Call by Reference: No ( called with pass by value option)
I_KSML_UPDATE - ABAP System Field: Background Processing Active
Data type: SY-BATCHOptional: No
Call by Reference: No ( called with pass by value option)
I_SWOR_UPDATE - ABAP System Field: Background Processing Active
Data type: SY-BATCHOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CRS_CLASS_COLLECT_DATA
I_CHARACT_TAB - Characteristics of a Class
Data type: KSMLOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CATCHWORD_TAB - Classification System: Keywords
Data type: SWOROptional: Yes
Call by Reference: No ( called with pass by value option)
I_TEXTS - Texts
Data type: KLATOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CRS_CLASS_COLLECT_DATA 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_i_charact_tab | TYPE STANDARD TABLE OF KSML, " | |||
| lv_i_activity_type | TYPE CDPOS-CHNGIND, " | |||
| lv_i_class_header | TYPE KLAH, " | |||
| lt_i_catchword_tab | TYPE STANDARD TABLE OF SWOR, " | |||
| lt_i_texts | TYPE STANDARD TABLE OF KLAT, " | |||
| lv_i_klah_update | TYPE SY-BATCH, " | |||
| lv_i_klat_update | TYPE SY-BATCH, " | |||
| lv_i_ksml_update | TYPE SY-BATCH, " | |||
| lv_i_swor_update | TYPE SY-BATCH. " |
|   CALL FUNCTION 'CRS_CLASS_COLLECT_DATA' "NOTRANSL: Subscribe-Baustein zum Event 00004001 |
| EXPORTING | ||
| I_ACTIVITY_TYPE | = lv_i_activity_type | |
| I_CLASS_HEADER | = lv_i_class_header | |
| I_KLAH_UPDATE | = lv_i_klah_update | |
| I_KLAT_UPDATE | = lv_i_klat_update | |
| I_KSML_UPDATE | = lv_i_ksml_update | |
| I_SWOR_UPDATE | = lv_i_swor_update | |
| TABLES | ||
| I_CHARACT_TAB | = lt_i_charact_tab | |
| I_CATCHWORD_TAB | = lt_i_catchword_tab | |
| I_TEXTS | = lt_i_texts | |
| . " CRS_CLASS_COLLECT_DATA | ||
ABAP code using 7.40 inline data declarations to call FM CRS_CLASS_COLLECT_DATA
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 CHNGIND FROM CDPOS INTO @DATA(ld_i_activity_type). | ||||
| "SELECT single BATCH FROM SY INTO @DATA(ld_i_klah_update). | ||||
| "SELECT single BATCH FROM SY INTO @DATA(ld_i_klat_update). | ||||
| "SELECT single BATCH FROM SY INTO @DATA(ld_i_ksml_update). | ||||
| "SELECT single BATCH FROM SY INTO @DATA(ld_i_swor_update). | ||||
Search for further information about these or an SAP related objects