03-20-2006 11:49 AM
Hi!
I am trying to write a code to display transport request details for a particular transport request,i.e., the output of transaction SE09. I want the format of my output to be same as that of SE09,i.e.,tree structure format. I have tried using ALV but couldn't get the result. I dont have an idea of OOPs. Is there any other way to diaplay the output in tree structure format?
Also from which table to find the subtasks of a particular transport request?
03-21-2006 2:37 PM
Hello Sangeetha,
You have received responses to your questions. Did you find them helpful? Do you have furhter questions ?
It would be nice if you could reward the answers which have helped you.
Regards,
Anand Mandalika.
03-20-2006 11:51 AM
03-20-2006 12:37 PM
Hello Sangeeta,
you can try referring to BCALV_TREE_01 example for the ALV tree. you can write back in case if any clarifications on this.
but SE09 shows a list tree and the coding for it is quite simpler.
you can refer the following code for the same
DATA: itab LIKE TABLE OF snodetext WITH KEY id,
wa LIKE snodetext.
wa-type = 'ROOT'. " 1st node of the tree
wa-color = 3. " different attributes
wa-tlevel = 1.
wa-text = 'ROOT'.
wa-tlength = STRLEN( gd_nodes-text ).
APPEND wa TO itab.
CLEAR itab.
gd_nodes-type = 'ROOT'. "parent
gd_nodes-color = 3.
gd_nodes-tlevel = 2.
gd_nodes-text = 'CHILD1'.
gd_nodes-kind = 'I'.
gd_nodes-tlength = 2 .
gd_nodes-tcolor = 0.
APPEND wa TO itab.
CLEAR itab.
add all the nodes required for the list tree display to this internal table
constructing the tree by calling the using the function *and using itab internal table
CALL FUNCTION 'RS_TREE_CONSTRUCT'
EXPORTING
insert_id = '000000'
relationship = ' '
TABLES
nodetab = itab
EXCEPTIONS
tree_failure = 1
id_not_found = 2
wrong_relationship = 3
OTHERS = 4.
calling function for list tree display
CALL FUNCTION 'RS_TREE_LIST_DISPLAY'
EXPORTING
callback_program = sy-repid
callback_user_command = 'USER_COMMAND'
callback_top_of_page = 'TOP-OF-PAGE'
callback_gui_status = 'SET_GUI'
text_length1 = 80
EXCEPTIONS
OTHERS = 1.
regards,
Kinshuk Saxena
03-21-2006 2:37 PM
Hello Sangeetha,
You have received responses to your questions. Did you find them helpful? Do you have furhter questions ?
It would be nice if you could reward the answers which have helped you.
Regards,
Anand Mandalika.