SAP CLSC_SELECT_OBJECTS_FROM_CLASS Function Module for









CLSC_SELECT_OBJECTS_FROM_CLASS is a standard clsc select objects from class 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 select objects from class FM, simply by entering the name CLSC_SELECT_OBJECTS_FROM_CLASS 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_SELECT_OBJECTS_FROM_CLASS 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_SELECT_OBJECTS_FROM_CLASS'"
EXPORTING
* CLASSES = ' ' "Class
* F_SEARCH_RESULT_NO_DISPLAY = ' ' "Do not display result for one hit
* RESULT_NO_DISPLAY = ' ' "Do not display result
* VALUES_ALREADY_IN_DDB = ' ' "Filled internally in DDB processing
* F_TAKE_OVER_ONE_OBJ = ' ' "
* PREP_FUNCTION_UNIT = ' ' "Speical object number format
* I_WITH_VALUES = ' ' "
* I_SKIP_FIRST_SCREEN = 'X' "
* DEPARTMENTAL_VIEW = ' ' "Settings for organizational area
* KLART = ' ' "Class type
* NO_F8_IN_RESULT = ' ' "Function object transfer in result active /x
* RESET_INDX_MEMORY_COUNTER = 'X' "'X' = Call object search via dialog module
TABLE = "Table name of the classified objects
* KEY_DATE = SY-DATUM "Validity time
* I_LOWER_DATE = "Date and Time, Current (Application Server) Date
* OBJECT_LIKE_INOB_CUOBJ = ' ' "Object number in internal class format

TABLES
OBJECTS = "List of all selected objects
* CLASSIFICATIONS = "

EXCEPTIONS
PF03 = 1 PF12 = 2 PF15 = 3
.




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_SELECT_OBJECTS_FROM_CLASS

CLASSES - Class

Data type: KLAH-CLASS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

F_SEARCH_RESULT_NO_DISPLAY - Do not display result for one hit

Data type: RMCLS-XFLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RESULT_NO_DISPLAY - Do not display result

Data type: RMCLS-XFLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

VALUES_ALREADY_IN_DDB - Filled internally in DDB processing

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

F_TAKE_OVER_ONE_OBJ -

Data type: RMCLS-XFLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

PREP_FUNCTION_UNIT - Speical object number format

Data type: RS38L-NAME
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_WITH_VALUES -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SKIP_FIRST_SCREEN -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

DEPARTMENTAL_VIEW - Settings for organizational area

Data type: RMCLS-ABTEIL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

KLART - Class type

Data type: KLAH-KLART
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_F8_IN_RESULT - Function object transfer in result active /x

Data type: SY-BATCH
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RESET_INDX_MEMORY_COUNTER - 'X' = Call object search via dialog module

Data type: SY-BATCH
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLE - Table name of the classified objects

Data type: TCLO-OBTAB
Optional: No
Call by Reference: No ( called with pass by value option)

KEY_DATE - Validity time

Data type: SY-DATUM
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LOWER_DATE - Date and Time, Current (Application Server) Date

Data type: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_LIKE_INOB_CUOBJ - Object number in internal class format

Data type: SY-BATCH
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for CLSC_SELECT_OBJECTS_FROM_CLASS

OBJECTS - List of all selected objects

Data type: CLOBJ
Optional: No
Call by Reference: No ( called with pass by value option)

CLASSIFICATIONS -

Data type: AUSP
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

PF03 - Quit FM with function key 3

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PF12 - Quit FM with function key 12

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PF15 - Quit FM with function key 15

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CLSC_SELECT_OBJECTS_FROM_CLASS 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_pf03  TYPE STRING, "   
lv_classes  TYPE KLAH-CLASS, "   SPACE
lt_objects  TYPE STANDARD TABLE OF CLOBJ, "   
lv_f_search_result_no_display  TYPE RMCLS-XFLAG, "   SPACE
lv_result_no_display  TYPE RMCLS-XFLAG, "   SPACE
lv_values_already_in_ddb  TYPE RMCLS, "   SPACE
lv_f_take_over_one_obj  TYPE RMCLS-XFLAG, "   SPACE
lv_prep_function_unit  TYPE RS38L-NAME, "   SPACE
lv_i_with_values  TYPE C, "   SPACE
lv_i_skip_first_screen  TYPE C, "   'X'
lv_pf12  TYPE C, "   
lt_classifications  TYPE STANDARD TABLE OF AUSP, "   
lv_departmental_view  TYPE RMCLS-ABTEIL, "   SPACE
lv_pf15  TYPE RMCLS, "   
lv_klart  TYPE KLAH-KLART, "   SPACE
lv_no_f8_in_result  TYPE SY-BATCH, "   SPACE
lv_reset_indx_memory_counter  TYPE SY-BATCH, "   'X'
lv_table  TYPE TCLO-OBTAB, "   
lv_key_date  TYPE SY-DATUM, "   SY-DATUM
lv_i_lower_date  TYPE SY-DATUM, "   
lv_object_like_inob_cuobj  TYPE SY-BATCH. "   SPACE

  CALL FUNCTION 'CLSC_SELECT_OBJECTS_FROM_CLASS'  "
    EXPORTING
         CLASSES = lv_classes
         F_SEARCH_RESULT_NO_DISPLAY = lv_f_search_result_no_display
         RESULT_NO_DISPLAY = lv_result_no_display
         VALUES_ALREADY_IN_DDB = lv_values_already_in_ddb
         F_TAKE_OVER_ONE_OBJ = lv_f_take_over_one_obj
         PREP_FUNCTION_UNIT = lv_prep_function_unit
         I_WITH_VALUES = lv_i_with_values
         I_SKIP_FIRST_SCREEN = lv_i_skip_first_screen
         DEPARTMENTAL_VIEW = lv_departmental_view
         KLART = lv_klart
         NO_F8_IN_RESULT = lv_no_f8_in_result
         RESET_INDX_MEMORY_COUNTER = lv_reset_indx_memory_counter
         TABLE = lv_table
         KEY_DATE = lv_key_date
         I_LOWER_DATE = lv_i_lower_date
         OBJECT_LIKE_INOB_CUOBJ = lv_object_like_inob_cuobj
    TABLES
         OBJECTS = lt_objects
         CLASSIFICATIONS = lt_classifications
    EXCEPTIONS
        PF03 = 1
        PF12 = 2
        PF15 = 3
. " CLSC_SELECT_OBJECTS_FROM_CLASS




ABAP code using 7.40 inline data declarations to call FM CLSC_SELECT_OBJECTS_FROM_CLASS

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 CLASS FROM KLAH INTO @DATA(ld_classes).
DATA(ld_classes) = ' '.
 
 
"SELECT single XFLAG FROM RMCLS INTO @DATA(ld_f_search_result_no_display).
DATA(ld_f_search_result_no_display) = ' '.
 
"SELECT single XFLAG FROM RMCLS INTO @DATA(ld_result_no_display).
DATA(ld_result_no_display) = ' '.
 
DATA(ld_values_already_in_ddb) = ' '.
 
"SELECT single XFLAG FROM RMCLS INTO @DATA(ld_f_take_over_one_obj).
DATA(ld_f_take_over_one_obj) = ' '.
 
"SELECT single NAME FROM RS38L INTO @DATA(ld_prep_function_unit).
DATA(ld_prep_function_unit) = ' '.
 
DATA(ld_i_with_values) = ' '.
 
DATA(ld_i_skip_first_screen) = 'X'.
 
 
 
"SELECT single ABTEIL FROM RMCLS INTO @DATA(ld_departmental_view).
DATA(ld_departmental_view) = ' '.
 
 
"SELECT single KLART FROM KLAH INTO @DATA(ld_klart).
DATA(ld_klart) = ' '.
 
"SELECT single BATCH FROM SY INTO @DATA(ld_no_f8_in_result).
DATA(ld_no_f8_in_result) = ' '.
 
"SELECT single BATCH FROM SY INTO @DATA(ld_reset_indx_memory_counter).
DATA(ld_reset_indx_memory_counter) = 'X'.
 
"SELECT single OBTAB FROM TCLO INTO @DATA(ld_table).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_key_date).
DATA(ld_key_date) = SY-DATUM.
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_lower_date).
 
"SELECT single BATCH FROM SY INTO @DATA(ld_object_like_inob_cuobj).
DATA(ld_object_like_inob_cuobj) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!