SAP K_KKB_ITEMIZATION_GET Function Module for









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

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



Function K_KKB_ITEMIZATION_GET 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_ITEMIZATION_GET'"
EXPORTING
I_SICHT = "
* I_KDAUF = "
* I_KOKRS = "
* I_KALNR = "
* I_MATNR = "
* I_WERKS = "
* I_KADKY = "
* I_KLVAR = "
* I_TVERS = "
* I_BZ_LOSGR = "
* I_KALNR_BA = "
* I_KDPOS = "

IMPORTING
E_HEADER = "

TABLES
* T_E_ITEMS = "

EXCEPTIONS
INPUT_INCOMPLETE = 1 INPUT_NOT_UNIQUE = 2 NO_CALCULATION_FOUND = 3 NO_ITEMS_FOUND = 4 WRONG_INPUT = 5
.



IMPORTING Parameters details for K_KKB_ITEMIZATION_GET

I_SICHT -

Data type: KKBU-SICHT
Optional: No
Call by Reference: Yes

I_KDAUF -

Data type: KKBU-KDAUF
Optional: Yes
Call by Reference: Yes

I_KOKRS -

Data type: KKBU-KOKRS
Optional: Yes
Call by Reference: Yes

I_KALNR -

Data type: KEKO-KALNR
Optional: Yes
Call by Reference: Yes

I_MATNR -

Data type: KEKO-MATNR
Optional: Yes
Call by Reference: Yes

I_WERKS -

Data type: KEKO-WERKS
Optional: Yes
Call by Reference: Yes

I_KADKY -

Data type: KEKO-KADKY
Optional: Yes
Call by Reference: Yes

I_KLVAR -

Data type: KEKO-KLVAR
Optional: Yes
Call by Reference: Yes

I_TVERS -

Data type: KEKO-TVERS
Optional: Yes
Call by Reference: Yes

I_BZ_LOSGR -

Data type: CKI64A-KOSMNG
Optional: Yes
Call by Reference: Yes

I_KALNR_BA -

Data type: KEKO-KALNR_BA
Optional: Yes
Call by Reference: Yes

I_KDPOS -

Data type: KKBU-KDPOS
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for K_KKB_ITEMIZATION_GET

E_HEADER -

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

TABLES Parameters details for K_KKB_ITEMIZATION_GET

T_E_ITEMS -

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

EXCEPTIONS details

INPUT_INCOMPLETE -

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

INPUT_NOT_UNIQUE -

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

NO_CALCULATION_FOUND -

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

NO_ITEMS_FOUND -

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

WRONG_INPUT -

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

Copy and paste ABAP code example for K_KKB_ITEMIZATION_GET 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_i_sicht  TYPE KKBU-SICHT, "   
lv_e_header  TYPE KKB04_HEAD, "   
lt_t_e_items  TYPE STANDARD TABLE OF KKB04_T_ITEMS, "   
lv_input_incomplete  TYPE KKB04_T_ITEMS, "   
lv_i_kdauf  TYPE KKBU-KDAUF, "   
lv_i_kokrs  TYPE KKBU-KOKRS, "   
lv_i_kalnr  TYPE KEKO-KALNR, "   
lv_i_matnr  TYPE KEKO-MATNR, "   
lv_input_not_unique  TYPE KEKO, "   
lv_i_werks  TYPE KEKO-WERKS, "   
lv_no_calculation_found  TYPE KEKO, "   
lv_i_kadky  TYPE KEKO-KADKY, "   
lv_no_items_found  TYPE KEKO, "   
lv_i_klvar  TYPE KEKO-KLVAR, "   
lv_wrong_input  TYPE KEKO, "   
lv_i_tvers  TYPE KEKO-TVERS, "   
lv_i_bz_losgr  TYPE CKI64A-KOSMNG, "   
lv_i_kalnr_ba  TYPE KEKO-KALNR_BA, "   
lv_i_kdpos  TYPE KKBU-KDPOS. "   

  CALL FUNCTION 'K_KKB_ITEMIZATION_GET'  "
    EXPORTING
         I_SICHT = lv_i_sicht
         I_KDAUF = lv_i_kdauf
         I_KOKRS = lv_i_kokrs
         I_KALNR = lv_i_kalnr
         I_MATNR = lv_i_matnr
         I_WERKS = lv_i_werks
         I_KADKY = lv_i_kadky
         I_KLVAR = lv_i_klvar
         I_TVERS = lv_i_tvers
         I_BZ_LOSGR = lv_i_bz_losgr
         I_KALNR_BA = lv_i_kalnr_ba
         I_KDPOS = lv_i_kdpos
    IMPORTING
         E_HEADER = lv_e_header
    TABLES
         T_E_ITEMS = lt_t_e_items
    EXCEPTIONS
        INPUT_INCOMPLETE = 1
        INPUT_NOT_UNIQUE = 2
        NO_CALCULATION_FOUND = 3
        NO_ITEMS_FOUND = 4
        WRONG_INPUT = 5
. " K_KKB_ITEMIZATION_GET




ABAP code using 7.40 inline data declarations to call FM K_KKB_ITEMIZATION_GET

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 SICHT FROM KKBU INTO @DATA(ld_i_sicht).
 
 
 
 
"SELECT single KDAUF FROM KKBU INTO @DATA(ld_i_kdauf).
 
"SELECT single KOKRS FROM KKBU INTO @DATA(ld_i_kokrs).
 
"SELECT single KALNR FROM KEKO INTO @DATA(ld_i_kalnr).
 
"SELECT single MATNR FROM KEKO INTO @DATA(ld_i_matnr).
 
 
"SELECT single WERKS FROM KEKO INTO @DATA(ld_i_werks).
 
 
"SELECT single KADKY FROM KEKO INTO @DATA(ld_i_kadky).
 
 
"SELECT single KLVAR FROM KEKO INTO @DATA(ld_i_klvar).
 
 
"SELECT single TVERS FROM KEKO INTO @DATA(ld_i_tvers).
 
"SELECT single KOSMNG FROM CKI64A INTO @DATA(ld_i_bz_losgr).
 
"SELECT single KALNR_BA FROM KEKO INTO @DATA(ld_i_kalnr_ba).
 
"SELECT single KDPOS FROM KKBU INTO @DATA(ld_i_kdpos).
 


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!