Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to customize the FM RS_TREE_LIST_DISPLAY for customized Application Toolbar?

Former Member
0 Kudos

Hi Experts,

I am using the standard FM RS_TREE_LIST_DISPLAY to display the data in Tree view.

Here I not want some of the function keys to be displayed in the report. So how do I can customize(remove) the ICON from the Application Toolbar in my report program.

I tried using GUI Status by creating a new function key in SE41 but that is disabling the manual expand and collapse functions disable.

Please suggest me the code to be used for achieving this.

Thanks !

Bharath. S

1 ACCEPTED SOLUTION

nabheetscn
Active Contributor
0 Kudos

Hi Jaya

You need to set PF status before you being creating the tree. Check SAP sample program RSRFCSLX this for the code reference. It displays its own button

Nabheet

3 REPLIES 3

nabheetscn
Active Contributor
0 Kudos

Hi Jaya

You need to set PF status before you being creating the tree. Check SAP sample program RSRFCSLX this for the code reference. It displays its own button

Nabheet

0 Kudos

Hi Nabheet,

Thanks!!

It worked..

I corrected the code with some minor changes. The function code was wrongly provided caused this issue.

Thanks,

Bharath

Here is the Exact steps you need to perform to achieve your custom PF status functionality-

1. You need to set PF status before you being creating the tree.

SET TITLEBAR 'TREE.

SET PF-STATUS 'ZTREE'.

2. In FM: 'RS_TREE_LIST_DISPLAY' pass exporting parameter callback_user_command value as below-

l_program_main = sy-repid.

CALL FUNCTION 'RS_TREE_LIST_DISPLAY'

EXPORTING
callback_program = l_program_main

callback_user_command = 'X' .