SAP K_RW_REPORT_TREE_CALL Function Module for









K_RW_REPORT_TREE_CALL is a standard k rw report tree call 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 rw report tree call FM, simply by entering the name K_RW_REPORT_TREE_CALL into the relevant SAP transaction such as SE37 or SE38.

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



Function K_RW_REPORT_TREE_CALL 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_RW_REPORT_TREE_CALL'"
EXPORTING
I_APPL = "
* I_SAPPL = ' ' "
* I_UNAME = ' ' "
* I_MODE = '1' "
* I_CHECKONLY = ' ' "
* I_TREE = ' ' "

IMPORTING
E_TREE = "
E_SUBRC = "

EXCEPTIONS
TREE_NOT_ACTIVE = 1 NO_TREE_SET = 2
.



IMPORTING Parameters details for K_RW_REPORT_TREE_CALL

I_APPL -

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

I_SAPPL -

Data type: TKKBU-SAPPL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_UNAME -

Data type: TKKBU-UNA
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MODE -

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

I_CHECKONLY -

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

I_TREE -

Data type: SREPOVARI-TREE_ID
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for K_RW_REPORT_TREE_CALL

E_TREE -

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

E_SUBRC -

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

EXCEPTIONS details

TREE_NOT_ACTIVE -

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

NO_TREE_SET -

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

Copy and paste ABAP code example for K_RW_REPORT_TREE_CALL 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_e_tree  TYPE STRING, "   
lv_i_appl  TYPE TKKBU-APPL, "   
lv_tree_not_active  TYPE TKKBU, "   
lv_e_subrc  TYPE SY-SUBRC, "   
lv_i_sappl  TYPE TKKBU-SAPPL, "   SPACE
lv_no_tree_set  TYPE TKKBU, "   
lv_i_uname  TYPE TKKBU-UNA, "   SPACE
lv_i_mode  TYPE TKKBU, "   '1'
lv_i_checkonly  TYPE TKKBU, "   SPACE
lv_i_tree  TYPE SREPOVARI-TREE_ID. "   SPACE

  CALL FUNCTION 'K_RW_REPORT_TREE_CALL'  "
    EXPORTING
         I_APPL = lv_i_appl
         I_SAPPL = lv_i_sappl
         I_UNAME = lv_i_uname
         I_MODE = lv_i_mode
         I_CHECKONLY = lv_i_checkonly
         I_TREE = lv_i_tree
    IMPORTING
         E_TREE = lv_e_tree
         E_SUBRC = lv_e_subrc
    EXCEPTIONS
        TREE_NOT_ACTIVE = 1
        NO_TREE_SET = 2
. " K_RW_REPORT_TREE_CALL




ABAP code using 7.40 inline data declarations to call FM K_RW_REPORT_TREE_CALL

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 APPL FROM TKKBU INTO @DATA(ld_i_appl).
 
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_e_subrc).
 
"SELECT single SAPPL FROM TKKBU INTO @DATA(ld_i_sappl).
DATA(ld_i_sappl) = ' '.
 
 
"SELECT single UNA FROM TKKBU INTO @DATA(ld_i_uname).
DATA(ld_i_uname) = ' '.
 
DATA(ld_i_mode) = '1'.
 
DATA(ld_i_checkonly) = ' '.
 
"SELECT single TREE_ID FROM SREPOVARI INTO @DATA(ld_i_tree).
DATA(ld_i_tree) = ' '.
 


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!