SAP K_ASSEMBLY_CACHED_READ Function Module for









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

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



Function K_ASSEMBLY_CACHED_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_ASSEMBLY_CACHED_READ'"
EXPORTING
EXTNR = "
KOKRS = "
SPRAS = "
* I_ENSURE_LOCK = ' ' "

IMPORTING
KBS1_EXP = "
RC = "

EXCEPTIONS
NOT_FOUND_ON_DB = 1 FOREIGN_LOCK = 2 LOCK_TABLE_OVERFLOW = 3
.



IMPORTING Parameters details for K_ASSEMBLY_CACHED_READ

EXTNR -

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

KOKRS -

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

SPRAS -

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

I_ENSURE_LOCK -

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

EXPORTING Parameters details for K_ASSEMBLY_CACHED_READ

KBS1_EXP -

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

RC -

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

EXCEPTIONS details

NOT_FOUND_ON_DB -

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

FOREIGN_LOCK -

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

LOCK_TABLE_OVERFLOW -

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

Copy and paste ABAP code example for K_ASSEMBLY_CACHED_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_extnr  TYPE CKBS-EXTNR, "   
lv_kbs1_exp  TYPE KBS1, "   
lv_not_found_on_db  TYPE KBS1, "   
lv_rc  TYPE SY-SUBRC, "   
lv_kokrs  TYPE CKBS-KOKRS, "   
lv_foreign_lock  TYPE CKBS, "   
lv_spras  TYPE CKBT-SPRAS, "   
lv_lock_table_overflow  TYPE CKBT, "   
lv_i_ensure_lock  TYPE XFLAG. "   SPACE

  CALL FUNCTION 'K_ASSEMBLY_CACHED_READ'  "
    EXPORTING
         EXTNR = lv_extnr
         KOKRS = lv_kokrs
         SPRAS = lv_spras
         I_ENSURE_LOCK = lv_i_ensure_lock
    IMPORTING
         KBS1_EXP = lv_kbs1_exp
         RC = lv_rc
    EXCEPTIONS
        NOT_FOUND_ON_DB = 1
        FOREIGN_LOCK = 2
        LOCK_TABLE_OVERFLOW = 3
. " K_ASSEMBLY_CACHED_READ




ABAP code using 7.40 inline data declarations to call FM K_ASSEMBLY_CACHED_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 EXTNR FROM CKBS INTO @DATA(ld_extnr).
 
 
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_rc).
 
"SELECT single KOKRS FROM CKBS INTO @DATA(ld_kokrs).
 
 
"SELECT single SPRAS FROM CKBT INTO @DATA(ld_spras).
 
 
DATA(ld_i_ensure_lock) = ' '.
 


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!