‎2008 Jul 09 8:07 AM
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.
‎2008 Jul 09 8:11 AM
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.
‎2008 Jul 09 8:12 AM
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
‎2008 Jul 09 8:17 AM
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
‎2008 Jul 09 8:20 AM
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
‎2008 Jul 09 8:22 AM
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
‎2008 Jul 10 4:02 AM
‎2008 Sep 23 12:42 PM
Try adding:
USE_CONTROL = STREE_USE_CONTROLto the call to RS_TREE_LIST_DISPLAY.
‎2010 Feb 18 12:30 PM
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