SAP CLSC_GET_ACTIVE_DEPVIEWS Function Module for
CLSC_GET_ACTIVE_DEPVIEWS is a standard clsc get active depviews 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 clsc get active depviews FM, simply by entering the name CLSC_GET_ACTIVE_DEPVIEWS into the relevant SAP transaction such as SE37 or SE38.
Function Group: CLSC
Program Name: SAPLCLSC
Main Program: SAPLCLSC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CLSC_GET_ACTIVE_DEPVIEWS 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 'CLSC_GET_ACTIVE_DEPVIEWS'".
EXPORTING
DEPARTMENTAL_VIEWS = "Department views
INTERNAL_CLASSNUMBER = "Internal class number
* I_KLART = ' ' "Class Type
* POPUP_FLAG = ' ' "Processing popup
* KEY_DATE = SY-DATUM "Validity time
IMPORTING
DEPARTMENTAL_VIEWS = "Department views
TABLES
CHARACTERISTICS = "Information from KSML
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_SAPLCLSC_001 Customer Exit for Search Result
IMPORTING Parameters details for CLSC_GET_ACTIVE_DEPVIEWS
DEPARTMENTAL_VIEWS - Department views
Data type: RMCLS-ABTEILOptional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_CLASSNUMBER - Internal class number
Data type: KLAH-CLINTOptional: No
Call by Reference: No ( called with pass by value option)
I_KLART - Class Type
Data type: KLAH-KLARTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
POPUP_FLAG - Processing popup
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KEY_DATE - Validity time
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CLSC_GET_ACTIVE_DEPVIEWS
DEPARTMENTAL_VIEWS - Department views
Data type: RMCLS-ABTEILOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CLSC_GET_ACTIVE_DEPVIEWS
CHARACTERISTICS - Information from KSML
Data type: KSMLOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CLSC_GET_ACTIVE_DEPVIEWS 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_characteristics | TYPE STANDARD TABLE OF KSML, " | |||
| lv_departmental_views | TYPE RMCLS-ABTEIL, " | |||
| lv_departmental_views | TYPE RMCLS-ABTEIL, " | |||
| lv_internal_classnumber | TYPE KLAH-CLINT, " | |||
| lv_i_klart | TYPE KLAH-KLART, " SPACE | |||
| lv_popup_flag | TYPE KLAH, " SPACE | |||
| lv_key_date | TYPE SY-DATUM. " SY-DATUM |
|   CALL FUNCTION 'CLSC_GET_ACTIVE_DEPVIEWS' " |
| EXPORTING | ||
| DEPARTMENTAL_VIEWS | = lv_departmental_views | |
| INTERNAL_CLASSNUMBER | = lv_internal_classnumber | |
| I_KLART | = lv_i_klart | |
| POPUP_FLAG | = lv_popup_flag | |
| KEY_DATE | = lv_key_date | |
| IMPORTING | ||
| DEPARTMENTAL_VIEWS | = lv_departmental_views | |
| TABLES | ||
| CHARACTERISTICS | = lt_characteristics | |
| . " CLSC_GET_ACTIVE_DEPVIEWS | ||
ABAP code using 7.40 inline data declarations to call FM CLSC_GET_ACTIVE_DEPVIEWS
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 ABTEIL FROM RMCLS INTO @DATA(ld_departmental_views). | ||||
| "SELECT single ABTEIL FROM RMCLS INTO @DATA(ld_departmental_views). | ||||
| "SELECT single CLINT FROM KLAH INTO @DATA(ld_internal_classnumber). | ||||
| "SELECT single KLART FROM KLAH INTO @DATA(ld_i_klart). | ||||
| DATA(ld_i_klart) | = ' '. | |||
| DATA(ld_popup_flag) | = ' '. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_key_date). | ||||
| DATA(ld_key_date) | = SY-DATUM. | |||
Search for further information about these or an SAP related objects