SAP CLSE_SELECT_KSSK Function Module for Read and Buffer KSSK Entries for Classification









CLSE_SELECT_KSSK is a standard clse select kssk SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read and Buffer KSSK Entries for Classification 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 clse select kssk FM, simply by entering the name CLSE_SELECT_KSSK into the relevant SAP transaction such as SE37 or SE38.

Function Group: CLSE
Program Name: SAPLCLSE
Main Program: SAPLCLSE
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CLSE_SELECT_KSSK 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 'CLSE_SELECT_KSSK'"Read and Buffer KSSK Entries for Classification
EXPORTING
* ADD_KSSK = ' ' "Retain Transferred Entries in EXP_KSSK
* CLINT = ' ' "Restriction to Class
* IMPKLART = ' ' "Class Types Are to be Imported from Memory
* KLART = ' ' "Class Type
* MAFID = ' ' "Restriction to Mafid
* OBJEK = ' ' "Restriction to Object
* REFRESH = ' ' "Delete Buffer Tables
* VIEW = ' ' "Indicator Whether to be Read Using View
* KEY_DATE = "Date

TABLES
* EXP_KSSK = "Table of Assignments to be Selected

EXCEPTIONS
NO_ENTRY_FOUND = 1 SET_CLASSTYPE = 2 SET_MAFID = 3
.



IMPORTING Parameters details for CLSE_SELECT_KSSK

ADD_KSSK - Retain Transferred Entries in EXP_KSSK

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

CLINT - Restriction to Class

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

IMPKLART - Class Types Are to be Imported from Memory

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

KLART - Class Type

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

MAFID - Restriction to Mafid

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

OBJEK - Restriction to Object

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

REFRESH - Delete Buffer Tables

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

VIEW - Indicator Whether to be Read Using View

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

KEY_DATE - Date

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

TABLES Parameters details for CLSE_SELECT_KSSK

EXP_KSSK - Table of Assignments to be Selected

Data type: KSSK_V0
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NO_ENTRY_FOUND - No Entry Found

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

SET_CLASSTYPE - Class Type Required to Call Object

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

SET_MAFID - Mafid Required to Call Object

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

Copy and paste ABAP code example for CLSE_SELECT_KSSK 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_add_kssk  TYPE STRING, "   SPACE
lt_exp_kssk  TYPE STANDARD TABLE OF KSSK_V0, "   
lv_no_entry_found  TYPE KSSK_V0, "   
lv_clint  TYPE KSSK-CLINT, "   SPACE
lv_set_classtype  TYPE KSSK, "   
lv_impklart  TYPE KSSK, "   SPACE
lv_set_mafid  TYPE KSSK, "   
lv_klart  TYPE KSSK-KLART, "   SPACE
lv_mafid  TYPE KSSK-MAFID, "   SPACE
lv_objek  TYPE KSSK-OBJEK, "   SPACE
lv_refresh  TYPE KSSK, "   SPACE
lv_view  TYPE KSSK, "   SPACE
lv_key_date  TYPE RMCLF-DATUV1. "   

  CALL FUNCTION 'CLSE_SELECT_KSSK'  "Read and Buffer KSSK Entries for Classification
    EXPORTING
         ADD_KSSK = lv_add_kssk
         CLINT = lv_clint
         IMPKLART = lv_impklart
         KLART = lv_klart
         MAFID = lv_mafid
         OBJEK = lv_objek
         REFRESH = lv_refresh
         VIEW = lv_view
         KEY_DATE = lv_key_date
    TABLES
         EXP_KSSK = lt_exp_kssk
    EXCEPTIONS
        NO_ENTRY_FOUND = 1
        SET_CLASSTYPE = 2
        SET_MAFID = 3
. " CLSE_SELECT_KSSK




ABAP code using 7.40 inline data declarations to call FM CLSE_SELECT_KSSK

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_add_kssk) = ' '.
 
 
 
"SELECT single CLINT FROM KSSK INTO @DATA(ld_clint).
DATA(ld_clint) = ' '.
 
 
DATA(ld_impklart) = ' '.
 
 
"SELECT single KLART FROM KSSK INTO @DATA(ld_klart).
DATA(ld_klart) = ' '.
 
"SELECT single MAFID FROM KSSK INTO @DATA(ld_mafid).
DATA(ld_mafid) = ' '.
 
"SELECT single OBJEK FROM KSSK INTO @DATA(ld_objek).
DATA(ld_objek) = ' '.
 
DATA(ld_refresh) = ' '.
 
DATA(ld_view) = ' '.
 
"SELECT single DATUV1 FROM RMCLF INTO @DATA(ld_key_date).
 


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!