SAP K_ASSEMBLY_READ Function Module for









K_ASSEMBLY_READ is a standard k assembly 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 read FM, simply by entering the name K_ASSEMBLY_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_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_READ'"
EXPORTING
FBL_EXTNR = "External number of the calculation
FBL_KOKRS = "Cost center group
FBL_SPRAS = "Language indicator of the descript

IMPORTING
FBL_KBS1 = "combined dict. structure from CKBS
FBL_RC = "Return code

EXCEPTIONS
FBL_NOT_FOUND = 1
.



IMPORTING Parameters details for K_ASSEMBLY_READ

FBL_EXTNR - External number of the calculation

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

FBL_KOKRS - Cost center group

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

FBL_SPRAS - Language indicator of the descript

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

EXPORTING Parameters details for K_ASSEMBLY_READ

FBL_KBS1 - combined dict. structure from CKBS

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

FBL_RC - Return code

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

EXCEPTIONS details

FBL_NOT_FOUND - Calculation module not found

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

Copy and paste ABAP code example for K_ASSEMBLY_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_fbl_kbs1  TYPE KBS1, "   
lv_fbl_extnr  TYPE CKBS-EXTNR, "   
lv_fbl_not_found  TYPE CKBS, "   
lv_fbl_rc  TYPE SY-SUBRC, "   
lv_fbl_kokrs  TYPE CKBS-KOKRS, "   
lv_fbl_spras  TYPE CKBT-SPRAS. "   

  CALL FUNCTION 'K_ASSEMBLY_READ'  "
    EXPORTING
         FBL_EXTNR = lv_fbl_extnr
         FBL_KOKRS = lv_fbl_kokrs
         FBL_SPRAS = lv_fbl_spras
    IMPORTING
         FBL_KBS1 = lv_fbl_kbs1
         FBL_RC = lv_fbl_rc
    EXCEPTIONS
        FBL_NOT_FOUND = 1
. " K_ASSEMBLY_READ




ABAP code using 7.40 inline data declarations to call FM K_ASSEMBLY_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_fbl_extnr).
 
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_fbl_rc).
 
"SELECT single KOKRS FROM CKBS INTO @DATA(ld_fbl_kokrs).
 
"SELECT single SPRAS FROM CKBT INTO @DATA(ld_fbl_spras).
 


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!