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









CLSE_SELECT_KSSK_0 is a standard clse select kssk 0 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 0 FM, simply by entering the name CLSE_SELECT_KSSK_0 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_0 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_0'"Read and Buffer KSSK Entries for Classification
EXPORTING
* ADD_KSSK = ' ' "
* KEY_DATE = "Date
* CLINT = ' ' "Internal class number
* IMPKLART = ' ' "Class types to be imported from memory
* KLART = ' ' "Class type
* MAFID = ' ' "Mafid
* OBJEK = ' ' "Object
* REFRESH = ' ' "Delete buffer table
* NECLINT = 'X' "X Read KSSK with CLIENT not equal
* EXIT = ' ' "X Read with EXIT from SELECT loop

TABLES
* EXP_KSSK = "Table of selected allocations

EXCEPTIONS
NO_ENTRY_FOUND = 1 SET_CLASSTYPE = 2 SET_MAFID = 3
.



IMPORTING Parameters details for CLSE_SELECT_KSSK_0

ADD_KSSK -

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)

CLINT - Internal class number

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

IMPKLART - Class types 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 - Mafid

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

OBJEK - Object

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

REFRESH - Delete buffer table

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

NECLINT - X Read KSSK with CLIENT not equal

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

EXIT - X Read with EXIT from SELECT loop

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

TABLES Parameters details for CLSE_SELECT_KSSK_0

EXP_KSSK - Table of selected allocations

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

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_0 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, "   
lv_no_entry_found  TYPE KSSK, "   
lv_key_date  TYPE RMCLF-DATUV1, "   
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_neclint  TYPE KSSK, "   'X'
lv_exit  TYPE KSSK. "   SPACE

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




ABAP code using 7.40 inline data declarations to call FM CLSE_SELECT_KSSK_0

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 DATUV1 FROM RMCLF INTO @DATA(ld_key_date).
 
"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_neclint) = 'X'.
 
DATA(ld_exit) = ' '.
 


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!