Application Development and Automation 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: 
Read only

report tree

Former Member
0 Likes
1,014

Hi all.

i have a problem with report tree.

use:

CALL FUNCTION 'RS_TREE_CONSTRUCT'

TABLES

NODETAB = IT_NODE.

W_REPID = SY-REPID.

CALL FUNCTION 'RS_TREE_LIST_DISPLAY'

EXPORTING

CALLBACK_PROGRAM = W_REPID

  • CALLBACK_USER_COMMAND = 'USER_COMMAND'

CALLBACK_TOP_OF_PAGE = 'CB_TOP_OF_PAGE'.

  • CALLBACK_GUI_STATUS = 'SET_PF'.

that ok.

but i use

{ CALLBACK_USER_COMMAND 'USER_COMMAND' }

FORM USER_COMMAND

TABLES PT_NODES STRUCTURE SEUCOMM

USING PV_COMMAND TYPE C

CHANGING PV_EXIT TYPE C

PV_LIST_REFRESH TYPE C.

submit sthing.

ENDFORM.

the report tree for open out and open off can't work,and also can't do submit sthing.

thanks and regards

ali.

8 REPLIES 8
Read only

Former Member
0 Likes
966

Hi,

Pl...Can you be clear ... in what is *the report tree for open out and open off can't work,and also can't do submit sthing.

*

Regards.

Read only

former_member673464
Active Contributor
0 Likes
966

hi,

You have to also pass the user command for which the the call back has to be performed. you have to pass the user command for which you want the control back and the subroutine where the control has to come when that user command has been passed.

Regards,

Veeresh

Read only

pole_li
Active Participant
0 Likes
966

Hi,

Pls refer [http://www.sap-img.com/abap/how-to-create-tree-control.htm|http://www.sap-img.com/abap/how-to-create-tree-control.htm]

Regards,

Pole

Read only

Former Member
0 Likes
966

the tree has nodes and hierarchy.

so that you can open /close the hierarchy when your mouse hit the nodes.

that can't work.

Edited by: Alicice Avril on Jul 9, 2008 9:32 AM

Read only

Former Member
0 Likes
966

Hi,

Use Submit <report_name> and Return in ur user_command form.

In user_command, u can do what ever you want in CASE...ENDCASE.

Also make sure that your pf_status is active or not.

Regards.

Edited by: Iyswarya Godi on Jul 9, 2008 9:23 AM

Read only

Former Member
0 Likes
966

someone know?

Read only

0 Likes
966

Try adding:

USE_CONTROL = STREE_USE_CONTROL

to the call to RS_TREE_LIST_DISPLAY.

Read only

Former Member
0 Likes
966

I have same problem....

not able to expand the nodes...

moreover i want to include checkbox in the nodes..

is it possible to include in hierarchy trees..

i saw some examples...

they have used containers in the below example.......

SAPCOLUMN_TREE_CONTROL_DEMO

i am not clear with that example....

plz help me...

for me deadline is approaching.

plz help