SAP KKR_COOBJECT_VALUES_READ Function Module for









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

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



Function KKR_COOBJECT_VALUES_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 'KKR_COOBJECT_VALUES_READ'"
EXPORTING
* I_KOKRS = "Controlling Area
* I_NUR_P_I_S = "
* I_KONTROLLKOSTEN = 'X' "
* I_READ_OWAER = 'X' "
* I_PVERS = "Plan Version
* I_IVERS = "Actual Version
* I_SVERS = "Target Cost Version
* I_AVERS = "Results Analysis Version
* I_BEWSICHT = '0' "Valuation View
* I_CONV_UNITS = 'X' "
* I_OBJNR = "Object Number
* I_GJAHR_VON = 1900 "From Fiscal Year
* I_GJAHR_BIS = 3000 "To Fiscal Year
* I_PERIO_VON = 001 "From Period
* I_PERIO_BIS = 016 "Period To
* I_NUR_BELAST = 'X' "
* I_KATYP = "
* I_NUR_P_I = "

IMPORTING
E_KENNZAHLEN = "

TABLES
* RNG_OBJNR = "
* RNG_WRTTP = "
* RNG_BEKNZ = "
* T_KENNZAHLEN = "
* T_KKBC = "
* T_KKROBJ = "
* T_KKBOB = "

EXCEPTIONS
NO_KOKRS_SET = 1 NO_INPUT_DATA = 2 DIFFERENT_INPUT_DATA = 3
.



IMPORTING Parameters details for KKR_COOBJECT_VALUES_READ

I_KOKRS - Controlling Area

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

I_NUR_P_I_S -

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

I_KONTROLLKOSTEN -

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

I_READ_OWAER -

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

I_PVERS - Plan Version

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

I_IVERS - Actual Version

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

I_SVERS - Target Cost Version

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

I_AVERS - Results Analysis Version

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

I_BEWSICHT - Valuation View

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

I_CONV_UNITS -

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

I_OBJNR - Object Number

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

I_GJAHR_VON - From Fiscal Year

Data type: COSS-GJAHR
Default: 1900
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_GJAHR_BIS - To Fiscal Year

Data type: COSS-GJAHR
Default: 3000
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PERIO_VON - From Period

Data type: COSS-PERBL
Default: 001
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PERIO_BIS - Period To

Data type: COSS-PERBL
Default: 016
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NUR_BELAST -

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

I_KATYP -

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

I_NUR_P_I -

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

EXPORTING Parameters details for KKR_COOBJECT_VALUES_READ

E_KENNZAHLEN -

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

TABLES Parameters details for KKR_COOBJECT_VALUES_READ

RNG_OBJNR -

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

RNG_WRTTP -

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

RNG_BEKNZ -

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

T_KENNZAHLEN -

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

T_KKBC -

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

T_KKROBJ -

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

T_KKBOB -

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

EXCEPTIONS details

NO_KOKRS_SET -

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

NO_INPUT_DATA -

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

DIFFERENT_INPUT_DATA -

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

Copy and paste ABAP code example for KKR_COOBJECT_VALUES_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_i_kokrs  TYPE TKA01-KOKRS, "   
lt_rng_objnr  TYPE STANDARD TABLE OF TKA01, "   
lv_e_kennzahlen  TYPE KKBKZ_KENNZAHLEN, "   
lv_no_kokrs_set  TYPE KKBKZ_KENNZAHLEN, "   
lv_i_nur_p_i_s  TYPE KKBKZ_XFLAG, "   
lv_i_kontrollkosten  TYPE KKBKZ_XFLAG, "   'X'
lv_i_read_owaer  TYPE KKBKZ_XFLAG, "   'X'
lv_i_pvers  TYPE TKVS-VERSI, "   
lv_i_ivers  TYPE TKVS-VERSI, "   
lv_i_svers  TYPE TKVS-VERSI, "   
lv_i_avers  TYPE TKVS-VERSI, "   
lv_i_bewsicht  TYPE TKA09-VALUTYP, "   '0'
lv_i_conv_units  TYPE KKBKZ_XFLAG, "   'X'
lv_i_objnr  TYPE COSS-OBJNR, "   
lt_rng_wrttp  TYPE STANDARD TABLE OF COSS, "   
lv_no_input_data  TYPE COSS, "   
lt_rng_beknz  TYPE STANDARD TABLE OF COSS, "   
lv_i_gjahr_von  TYPE COSS-GJAHR, "   1900
lv_different_input_data  TYPE COSS, "   
lv_i_gjahr_bis  TYPE COSS-GJAHR, "   3000
lt_t_kennzahlen  TYPE STANDARD TABLE OF KKBKZ_T_KENNZAHLEN, "   
lt_t_kkbc  TYPE STANDARD TABLE OF KKBC, "   
lv_i_perio_von  TYPE COSS-PERBL, "   001
lt_t_kkrobj  TYPE STANDARD TABLE OF KKROBJ, "   
lv_i_perio_bis  TYPE COSS-PERBL, "   016
lt_t_kkbob  TYPE STANDARD TABLE OF KKBOB, "   
lv_i_nur_belast  TYPE KKBKZ_XFLAG, "   'X'
lv_i_katyp  TYPE KKBKZ_XFLAG, "   
lv_i_nur_p_i  TYPE KKBKZ_XFLAG. "   

  CALL FUNCTION 'KKR_COOBJECT_VALUES_READ'  "
    EXPORTING
         I_KOKRS = lv_i_kokrs
         I_NUR_P_I_S = lv_i_nur_p_i_s
         I_KONTROLLKOSTEN = lv_i_kontrollkosten
         I_READ_OWAER = lv_i_read_owaer
         I_PVERS = lv_i_pvers
         I_IVERS = lv_i_ivers
         I_SVERS = lv_i_svers
         I_AVERS = lv_i_avers
         I_BEWSICHT = lv_i_bewsicht
         I_CONV_UNITS = lv_i_conv_units
         I_OBJNR = lv_i_objnr
         I_GJAHR_VON = lv_i_gjahr_von
         I_GJAHR_BIS = lv_i_gjahr_bis
         I_PERIO_VON = lv_i_perio_von
         I_PERIO_BIS = lv_i_perio_bis
         I_NUR_BELAST = lv_i_nur_belast
         I_KATYP = lv_i_katyp
         I_NUR_P_I = lv_i_nur_p_i
    IMPORTING
         E_KENNZAHLEN = lv_e_kennzahlen
    TABLES
         RNG_OBJNR = lt_rng_objnr
         RNG_WRTTP = lt_rng_wrttp
         RNG_BEKNZ = lt_rng_beknz
         T_KENNZAHLEN = lt_t_kennzahlen
         T_KKBC = lt_t_kkbc
         T_KKROBJ = lt_t_kkrobj
         T_KKBOB = lt_t_kkbob
    EXCEPTIONS
        NO_KOKRS_SET = 1
        NO_INPUT_DATA = 2
        DIFFERENT_INPUT_DATA = 3
. " KKR_COOBJECT_VALUES_READ




ABAP code using 7.40 inline data declarations to call FM KKR_COOBJECT_VALUES_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 KOKRS FROM TKA01 INTO @DATA(ld_i_kokrs).
 
 
 
 
 
DATA(ld_i_kontrollkosten) = 'X'.
 
DATA(ld_i_read_owaer) = 'X'.
 
"SELECT single VERSI FROM TKVS INTO @DATA(ld_i_pvers).
 
"SELECT single VERSI FROM TKVS INTO @DATA(ld_i_ivers).
 
"SELECT single VERSI FROM TKVS INTO @DATA(ld_i_svers).
 
"SELECT single VERSI FROM TKVS INTO @DATA(ld_i_avers).
 
"SELECT single VALUTYP FROM TKA09 INTO @DATA(ld_i_bewsicht).
DATA(ld_i_bewsicht) = '0'.
 
DATA(ld_i_conv_units) = 'X'.
 
"SELECT single OBJNR FROM COSS INTO @DATA(ld_i_objnr).
 
 
 
 
"SELECT single GJAHR FROM COSS INTO @DATA(ld_i_gjahr_von).
DATA(ld_i_gjahr_von) = 1900.
 
 
"SELECT single GJAHR FROM COSS INTO @DATA(ld_i_gjahr_bis).
DATA(ld_i_gjahr_bis) = 3000.
 
 
 
"SELECT single PERBL FROM COSS INTO @DATA(ld_i_perio_von).
DATA(ld_i_perio_von) = 001.
 
 
"SELECT single PERBL FROM COSS INTO @DATA(ld_i_perio_bis).
DATA(ld_i_perio_bis) = 016.
 
 
DATA(ld_i_nur_belast) = 'X'.
 
 
 


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!