SAP K_CSSL_READ Function Module for









K_CSSL_READ is a standard k cssl read 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 k cssl read FM, simply by entering the name K_CSSL_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function K_CSSL_READ 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 'K_CSSL_READ'"
EXPORTING
GJAHR = "Fiscal Year
KOKRS = "Accounting
KOSTL = "Cost Center
LSTAR = "Activity Type
* SEQ_LATYP = ' ' "Activity Types of This Category Only Are Valid
* S_ENQUEUE_IF_NEW = 'X' "Indicator for Enqueue Setting
* TEST_READ = ' ' "Indicator for COKA_READ Completeness
* OBJNR = "CO Object Number

IMPORTING
AUSEH = "Output Unit
AUSFK = "Output Factor
LATYP = "Activity Type Category
LEINH = "Activity Unit
OBJNR = "CO Object Number
LATYPI = "Variant Actual Activity Type Category
FOUND = "Indicator Found

TABLES
* ITPERIODS = "

EXCEPTIONS
LSTAR_NOT_FOUND = 1
.



IMPORTING Parameters details for K_CSSL_READ

GJAHR - Fiscal Year

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

KOKRS - Accounting

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

KOSTL - Cost Center

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

LSTAR - Activity Type

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

SEQ_LATYP - Activity Types of This Category Only Are Valid

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

S_ENQUEUE_IF_NEW - Indicator for Enqueue Setting

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

TEST_READ - Indicator for COKA_READ Completeness

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

OBJNR - CO Object Number

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

EXPORTING Parameters details for K_CSSL_READ

AUSEH - Output Unit

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

AUSFK - Output Factor

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

LATYP - Activity Type Category

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

LEINH - Activity Unit

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

OBJNR - CO Object Number

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

LATYPI - Variant Actual Activity Type Category

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

FOUND - Indicator Found

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

TABLES Parameters details for K_CSSL_READ

ITPERIODS -

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

EXCEPTIONS details

LSTAR_NOT_FOUND -

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

Copy and paste ABAP code example for K_CSSL_READ 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_auseh  TYPE CSSL-AUSEH, "   
lv_gjahr  TYPE CSSL-GJAHR, "   
lt_itperiods  TYPE STANDARD TABLE OF PERIODS, "   
lv_lstar_not_found  TYPE PERIODS, "   
lv_ausfk  TYPE CSSL-AUSFK, "   
lv_kokrs  TYPE CSSL-KOKRS, "   
lv_kostl  TYPE CSSL-KOSTL, "   
lv_latyp  TYPE CSSL-LATYP, "   
lv_leinh  TYPE CSSL-LEINH, "   
lv_lstar  TYPE CSSL-LSTAR, "   
lv_objnr  TYPE CSSL-OBJNR, "   
lv_seq_latyp  TYPE CSSL-LATYP, "   SPACE
lv_latypi  TYPE CSSL-LATYPI, "   
lv_s_enqueue_if_new  TYPE CSSL, "   'X'
lv_found  TYPE CSSL, "   
lv_test_read  TYPE CSSL, "   ' '
lv_objnr  TYPE CSSL-OBJNR. "   

  CALL FUNCTION 'K_CSSL_READ'  "
    EXPORTING
         GJAHR = lv_gjahr
         KOKRS = lv_kokrs
         KOSTL = lv_kostl
         LSTAR = lv_lstar
         SEQ_LATYP = lv_seq_latyp
         S_ENQUEUE_IF_NEW = lv_s_enqueue_if_new
         TEST_READ = lv_test_read
         OBJNR = lv_objnr
    IMPORTING
         AUSEH = lv_auseh
         AUSFK = lv_ausfk
         LATYP = lv_latyp
         LEINH = lv_leinh
         OBJNR = lv_objnr
         LATYPI = lv_latypi
         FOUND = lv_found
    TABLES
         ITPERIODS = lt_itperiods
    EXCEPTIONS
        LSTAR_NOT_FOUND = 1
. " K_CSSL_READ




ABAP code using 7.40 inline data declarations to call FM K_CSSL_READ

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 AUSEH FROM CSSL INTO @DATA(ld_auseh).
 
"SELECT single GJAHR FROM CSSL INTO @DATA(ld_gjahr).
 
 
 
"SELECT single AUSFK FROM CSSL INTO @DATA(ld_ausfk).
 
"SELECT single KOKRS FROM CSSL INTO @DATA(ld_kokrs).
 
"SELECT single KOSTL FROM CSSL INTO @DATA(ld_kostl).
 
"SELECT single LATYP FROM CSSL INTO @DATA(ld_latyp).
 
"SELECT single LEINH FROM CSSL INTO @DATA(ld_leinh).
 
"SELECT single LSTAR FROM CSSL INTO @DATA(ld_lstar).
 
"SELECT single OBJNR FROM CSSL INTO @DATA(ld_objnr).
 
"SELECT single LATYP FROM CSSL INTO @DATA(ld_seq_latyp).
DATA(ld_seq_latyp) = ' '.
 
"SELECT single LATYPI FROM CSSL INTO @DATA(ld_latypi).
 
DATA(ld_s_enqueue_if_new) = 'X'.
 
 
DATA(ld_test_read) = ' '.
 
"SELECT single OBJNR FROM CSSL INTO @DATA(ld_objnr).
 


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!