SAP RKE_READ_OBJECT_LEVEL Function Module for









RKE_READ_OBJECT_LEVEL is a standard rke read object level 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 rke read object level FM, simply by entering the name RKE_READ_OBJECT_LEVEL into the relevant SAP transaction such as SE37 or SE38.

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



Function RKE_READ_OBJECT_LEVEL 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 'RKE_READ_OBJECT_LEVEL'"
EXPORTING
ERKRS = "Financial statement area
* METHOD = '1' "Method, allowed values: 1, 2, 3, 4
* READ_SOURCE = '2' "Read data from the line items (X/ )
S_FORM_NAME = "Form routines for the data processing
S_PROGRAM_NAME = "Program which contains the form routine
* PA_TYPE = '1' "
* IGNORE_VALUTYP = 'X' "

TABLES
OBJECT_TABLE = "CO-PA object table (is filled acco
SELECTION_TABLE = "Description of selection

EXCEPTIONS
NO_RECORD_FOUND = 1
.



IMPORTING Parameters details for RKE_READ_OBJECT_LEVEL

ERKRS - Financial statement area

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

METHOD - Method, allowed values: 1, 2, 3, 4

Data type: CEDDB-METHOD
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

READ_SOURCE - Read data from the line items (X/ )

Data type: CEDDB-SOURCE
Default: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)

S_FORM_NAME - Form routines for the data processing

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

S_PROGRAM_NAME - Program which contains the form routine

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

PA_TYPE -

Data type: CEDDB-PA_TYPE
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IGNORE_VALUTYP -

Data type: FLAG
Default: 'X'
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for RKE_READ_OBJECT_LEVEL

OBJECT_TABLE - CO-PA object table (is filled acco

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

SELECTION_TABLE - Description of selection

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

EXCEPTIONS details

NO_RECORD_FOUND - No data record found which corresp

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

Copy and paste ABAP code example for RKE_READ_OBJECT_LEVEL 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_erkrs  TYPE TKEB-ERKRS, "   
lt_object_table  TYPE STANDARD TABLE OF TKEB, "   
lv_no_record_found  TYPE TKEB, "   
lv_method  TYPE CEDDB-METHOD, "   '1'
lt_selection_table  TYPE STANDARD TABLE OF CEDST, "   
lv_read_source  TYPE CEDDB-SOURCE, "   '2'
lv_s_form_name  TYPE CEDDB-DATAFORM, "   
lv_s_program_name  TYPE CEDDB-PROGRAM, "   
lv_pa_type  TYPE CEDDB-PA_TYPE, "   '1'
lv_ignore_valutyp  TYPE FLAG. "   'X'

  CALL FUNCTION 'RKE_READ_OBJECT_LEVEL'  "
    EXPORTING
         ERKRS = lv_erkrs
         METHOD = lv_method
         READ_SOURCE = lv_read_source
         S_FORM_NAME = lv_s_form_name
         S_PROGRAM_NAME = lv_s_program_name
         PA_TYPE = lv_pa_type
         IGNORE_VALUTYP = lv_ignore_valutyp
    TABLES
         OBJECT_TABLE = lt_object_table
         SELECTION_TABLE = lt_selection_table
    EXCEPTIONS
        NO_RECORD_FOUND = 1
. " RKE_READ_OBJECT_LEVEL




ABAP code using 7.40 inline data declarations to call FM RKE_READ_OBJECT_LEVEL

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 ERKRS FROM TKEB INTO @DATA(ld_erkrs).
 
 
 
"SELECT single METHOD FROM CEDDB INTO @DATA(ld_method).
DATA(ld_method) = '1'.
 
 
"SELECT single SOURCE FROM CEDDB INTO @DATA(ld_read_source).
DATA(ld_read_source) = '2'.
 
"SELECT single DATAFORM FROM CEDDB INTO @DATA(ld_s_form_name).
 
"SELECT single PROGRAM FROM CEDDB INTO @DATA(ld_s_program_name).
 
"SELECT single PA_TYPE FROM CEDDB INTO @DATA(ld_pa_type).
DATA(ld_pa_type) = '1'.
 
DATA(ld_ignore_valutyp) = '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!