SAP RKD_TR_LEVEL_READ Function Module for









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

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



Function RKD_TR_LEVEL_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 'RKD_TR_LEVEL_READ'"
EXPORTING
APPLCLASS = "Application Class
SUBCLASS = "
TABNAME = "Table Name
TRCATNR = "
S_FORM_NAME = "
S_PROGRAM_NAME = "
* READ_DIRTY = 'X' "

IMPORTING
NO_RECORD_FOUND = "
TIMESTMP = "

TABLES
SELECTION_TABLE = "Selection conditions table

EXCEPTIONS
CATALOG_NOT_FOUND = 1 TRCATNR_NOT_FOUND = 2 REQUEST_INVALID = 3 TRCATNR_NOT_ACTIVE = 4 FOREIGN_LOCK = 5
.



IMPORTING Parameters details for RKD_TR_LEVEL_READ

APPLCLASS - Application Class

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

SUBCLASS -

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

TABNAME - Table Name

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

TRCATNR -

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

S_FORM_NAME -

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

S_PROGRAM_NAME -

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

READ_DIRTY -

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

EXPORTING Parameters details for RKD_TR_LEVEL_READ

NO_RECORD_FOUND -

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

TIMESTMP -

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

TABLES Parameters details for RKD_TR_LEVEL_READ

SELECTION_TABLE - Selection conditions table

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

EXCEPTIONS details

CATALOG_NOT_FOUND - Catalog does not exist

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

TRCATNR_NOT_FOUND -

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

REQUEST_INVALID -

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

TRCATNR_NOT_ACTIVE -

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

FOREIGN_LOCK -

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

Copy and paste ABAP code example for RKD_TR_LEVEL_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_applclass  TYPE TKETR-APPLCLASS, "   
lv_no_record_found  TYPE CEDDB-FLAG, "   
lt_selection_table  TYPE STANDARD TABLE OF CEDDBSEL, "   
lv_catalog_not_found  TYPE CEDDBSEL, "   
lv_subclass  TYPE TKETR-SUBCLASS, "   
lv_timestmp  TYPE TKETRLG-TIMESTMP, "   
lv_trcatnr_not_found  TYPE TKETRLG, "   
lv_tabname  TYPE TKETR-TABNAME, "   
lv_request_invalid  TYPE TKETR, "   
lv_trcatnr  TYPE TKETRL-TRCATNR, "   
lv_trcatnr_not_active  TYPE TKETRL, "   
lv_s_form_name  TYPE CEDDB-DATAFORM, "   
lv_foreign_lock  TYPE CEDDB, "   
lv_s_program_name  TYPE CEDDB-PROGRAM, "   
lv_read_dirty  TYPE CEDDB-FLAG. "   'X'

  CALL FUNCTION 'RKD_TR_LEVEL_READ'  "
    EXPORTING
         APPLCLASS = lv_applclass
         SUBCLASS = lv_subclass
         TABNAME = lv_tabname
         TRCATNR = lv_trcatnr
         S_FORM_NAME = lv_s_form_name
         S_PROGRAM_NAME = lv_s_program_name
         READ_DIRTY = lv_read_dirty
    IMPORTING
         NO_RECORD_FOUND = lv_no_record_found
         TIMESTMP = lv_timestmp
    TABLES
         SELECTION_TABLE = lt_selection_table
    EXCEPTIONS
        CATALOG_NOT_FOUND = 1
        TRCATNR_NOT_FOUND = 2
        REQUEST_INVALID = 3
        TRCATNR_NOT_ACTIVE = 4
        FOREIGN_LOCK = 5
. " RKD_TR_LEVEL_READ




ABAP code using 7.40 inline data declarations to call FM RKD_TR_LEVEL_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 APPLCLASS FROM TKETR INTO @DATA(ld_applclass).
 
"SELECT single FLAG FROM CEDDB INTO @DATA(ld_no_record_found).
 
 
 
"SELECT single SUBCLASS FROM TKETR INTO @DATA(ld_subclass).
 
"SELECT single TIMESTMP FROM TKETRLG INTO @DATA(ld_timestmp).
 
 
"SELECT single TABNAME FROM TKETR INTO @DATA(ld_tabname).
 
 
"SELECT single TRCATNR FROM TKETRL INTO @DATA(ld_trcatnr).
 
 
"SELECT single DATAFORM FROM CEDDB INTO @DATA(ld_s_form_name).
 
 
"SELECT single PROGRAM FROM CEDDB INTO @DATA(ld_s_program_name).
 
"SELECT single FLAG FROM CEDDB INTO @DATA(ld_read_dirty).
DATA(ld_read_dirty) = '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!