SAP RKD_INSERT_REPORT_TEMP Function Module for INSERT_REPORT with variable name









RKD_INSERT_REPORT_TEMP is a standard rkd insert report temp SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for INSERT_REPORT with variable name processing and below is the pattern details for this FM, 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 insert report temp FM, simply by entering the name RKD_INSERT_REPORT_TEMP into the relevant SAP transaction such as SE37 or SE38.

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



Function RKD_INSERT_REPORT_TEMP 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_INSERT_REPORT_TEMP'"INSERT_REPORT with variable name
EXPORTING
* NAME_HIGH = 'RK290999' "
* NAME_LOW = 'RK290100' "RKXmmmnn: mmm <-> SY-MANDT, nn <-> first free number
* TADIR_DEVCLASS = '$TMP' "
* TRDIR_CLAS = ' ' "
* TRDIR_DBNA = ' ' "
* TRDIR_FIXPT = 'X' "
* TRDIR_RSTAT = 'P' "
* TRDIR_SQLX = 'R' "
* TRDIR_SUBC = 'S' "

IMPORTING
REPORT_NAME = "Name of the saved and generated program

TABLES
CODE_TAB = "

EXCEPTIONS
ALL_LOCKED = 1 ENQUEUE = 2 SYNTAX_CHECK = 3
.



IMPORTING Parameters details for RKD_INSERT_REPORT_TEMP

NAME_HIGH -

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

NAME_LOW - RKXmmmnn: mmm <-> SY-MANDT, nn <-> first free number

Data type: TRDIR-NAME
Default: 'RK290100'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TADIR_DEVCLASS -

Data type: TADIR-DEVCLASS
Default: '$TMP'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TRDIR_CLAS -

Data type: TRDIR-CLAS
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

TRDIR_DBNA -

Data type: TRDIR-DBNA
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

TRDIR_FIXPT -

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

TRDIR_RSTAT -

Data type: TRDIR-RSTAT
Default: 'P'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TRDIR_SQLX -

Data type: TRDIR-SQLX
Default: 'R'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TRDIR_SUBC -

Data type: TRDIR-SUBC
Default: 'S'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RKD_INSERT_REPORT_TEMP

REPORT_NAME - Name of the saved and generated program

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

TABLES Parameters details for RKD_INSERT_REPORT_TEMP

CODE_TAB -

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

EXCEPTIONS details

ALL_LOCKED - All programs locked

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

ENQUEUE - Error during locking

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

SYNTAX_CHECK - Program contains syntax errors

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

Copy and paste ABAP code example for RKD_INSERT_REPORT_TEMP 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:
lt_code_tab  TYPE STANDARD TABLE OF STRING, "   
lv_name_high  TYPE STRING, "   'RK290999'
lv_all_locked  TYPE STRING, "   
lv_report_name  TYPE TRDIR-NAME, "   
lv_enqueue  TYPE TRDIR, "   
lv_name_low  TYPE TRDIR-NAME, "   'RK290100'
lv_syntax_check  TYPE TRDIR, "   
lv_tadir_devclass  TYPE TADIR-DEVCLASS, "   '$TMP'
lv_trdir_clas  TYPE TRDIR-CLAS, "   ' '
lv_trdir_dbna  TYPE TRDIR-DBNA, "   ' '
lv_trdir_fixpt  TYPE TRDIR-FIXPT, "   'X'
lv_trdir_rstat  TYPE TRDIR-RSTAT, "   'P'
lv_trdir_sqlx  TYPE TRDIR-SQLX, "   'R'
lv_trdir_subc  TYPE TRDIR-SUBC. "   'S'

  CALL FUNCTION 'RKD_INSERT_REPORT_TEMP'  "INSERT_REPORT with variable name
    EXPORTING
         NAME_HIGH = lv_name_high
         NAME_LOW = lv_name_low
         TADIR_DEVCLASS = lv_tadir_devclass
         TRDIR_CLAS = lv_trdir_clas
         TRDIR_DBNA = lv_trdir_dbna
         TRDIR_FIXPT = lv_trdir_fixpt
         TRDIR_RSTAT = lv_trdir_rstat
         TRDIR_SQLX = lv_trdir_sqlx
         TRDIR_SUBC = lv_trdir_subc
    IMPORTING
         REPORT_NAME = lv_report_name
    TABLES
         CODE_TAB = lt_code_tab
    EXCEPTIONS
        ALL_LOCKED = 1
        ENQUEUE = 2
        SYNTAX_CHECK = 3
. " RKD_INSERT_REPORT_TEMP




ABAP code using 7.40 inline data declarations to call FM RKD_INSERT_REPORT_TEMP

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.

 
DATA(ld_name_high) = 'RK290999'.
 
 
"SELECT single NAME FROM TRDIR INTO @DATA(ld_report_name).
 
 
"SELECT single NAME FROM TRDIR INTO @DATA(ld_name_low).
DATA(ld_name_low) = 'RK290100'.
 
 
"SELECT single DEVCLASS FROM TADIR INTO @DATA(ld_tadir_devclass).
DATA(ld_tadir_devclass) = '$TMP'.
 
"SELECT single CLAS FROM TRDIR INTO @DATA(ld_trdir_clas).
DATA(ld_trdir_clas) = ' '.
 
"SELECT single DBNA FROM TRDIR INTO @DATA(ld_trdir_dbna).
DATA(ld_trdir_dbna) = ' '.
 
"SELECT single FIXPT FROM TRDIR INTO @DATA(ld_trdir_fixpt).
DATA(ld_trdir_fixpt) = 'X'.
 
"SELECT single RSTAT FROM TRDIR INTO @DATA(ld_trdir_rstat).
DATA(ld_trdir_rstat) = 'P'.
 
"SELECT single SQLX FROM TRDIR INTO @DATA(ld_trdir_sqlx).
DATA(ld_trdir_sqlx) = 'R'.
 
"SELECT single SUBC FROM TRDIR INTO @DATA(ld_trdir_subc).
DATA(ld_trdir_subc) = 'S'.
 


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!