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: 

tree structure display format of transaction SE09

Former Member
0 Kudos

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?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

Hi

Try fm RS_TREE_LIST_DISPLAY

See the tables E070*

Max

Former Member
0 Kudos

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

Former Member
0 Kudos

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.