SAP K_KKB_SD_ORDER_KALNR_READ Function Module for
K_KKB_SD_ORDER_KALNR_READ is a standard k kkb sd order kalnr 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 kkb sd order kalnr read FM, simply by entering the name K_KKB_SD_ORDER_KALNR_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: KKB1
Program Name: SAPLKKB1
Main Program: SAPLKKB1
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function K_KKB_SD_ORDER_KALNR_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_KKB_SD_ORDER_KALNR_READ'".
EXPORTING
I_KDAUF = "
I_KDPOS = "
* I_MATNR = "
* I_KEKO_MATNR = "
* I_WERKS = "
* I_NOSEL = "
IMPORTING
E_KALNR = "
E_LIEBICH = "
EXCEPTIONS
NOT_FOUND = 1
IMPORTING Parameters details for K_KKB_SD_ORDER_KALNR_READ
I_KDAUF -
Data type: KKBC-KDAUFOptional: No
Call by Reference: No ( called with pass by value option)
I_KDPOS -
Data type: KKBC-KDPOSOptional: No
Call by Reference: No ( called with pass by value option)
I_MATNR -
Data type: KEKO-MATNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_KEKO_MATNR -
Data type: KEKO-KALNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_WERKS -
Data type: KKBC-WERKSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_NOSEL -
Data type: TKKB1-FEHOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for K_KKB_SD_ORDER_KALNR_READ
E_KALNR -
Data type: KEKO-KALNROptional: No
Call by Reference: No ( called with pass by value option)
E_LIEBICH -
Data type: TKKB1-FEHOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for K_KKB_SD_ORDER_KALNR_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_e_kalnr | TYPE KEKO-KALNR, " | |||
lv_i_kdauf | TYPE KKBC-KDAUF, " | |||
lv_not_found | TYPE KKBC, " | |||
lv_i_kdpos | TYPE KKBC-KDPOS, " | |||
lv_e_liebich | TYPE TKKB1-FEH, " | |||
lv_i_matnr | TYPE KEKO-MATNR, " | |||
lv_i_keko_matnr | TYPE KEKO-KALNR, " | |||
lv_i_werks | TYPE KKBC-WERKS, " | |||
lv_i_nosel | TYPE TKKB1-FEH. " |
  CALL FUNCTION 'K_KKB_SD_ORDER_KALNR_READ' " |
EXPORTING | ||
I_KDAUF | = lv_i_kdauf | |
I_KDPOS | = lv_i_kdpos | |
I_MATNR | = lv_i_matnr | |
I_KEKO_MATNR | = lv_i_keko_matnr | |
I_WERKS | = lv_i_werks | |
I_NOSEL | = lv_i_nosel | |
IMPORTING | ||
E_KALNR | = lv_e_kalnr | |
E_LIEBICH | = lv_e_liebich | |
EXCEPTIONS | ||
NOT_FOUND = 1 | ||
. " K_KKB_SD_ORDER_KALNR_READ |
ABAP code using 7.40 inline data declarations to call FM K_KKB_SD_ORDER_KALNR_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 KALNR FROM KEKO INTO @DATA(ld_e_kalnr). | ||||
"SELECT single KDAUF FROM KKBC INTO @DATA(ld_i_kdauf). | ||||
"SELECT single KDPOS FROM KKBC INTO @DATA(ld_i_kdpos). | ||||
"SELECT single FEH FROM TKKB1 INTO @DATA(ld_e_liebich). | ||||
"SELECT single MATNR FROM KEKO INTO @DATA(ld_i_matnr). | ||||
"SELECT single KALNR FROM KEKO INTO @DATA(ld_i_keko_matnr). | ||||
"SELECT single WERKS FROM KKBC INTO @DATA(ld_i_werks). | ||||
"SELECT single FEH FROM TKKB1 INTO @DATA(ld_i_nosel). | ||||
Search for further information about these or an SAP related objects