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

TREE ALV report

Former Member
0 Likes
629

Hi SDN,s

Can anyone send me documentation regarding TREE ALV reports? my mail id is rangaa1@gmail.com . Thanks in advance.

Aravind.

4 REPLIES 4
Read only

Former Member
0 Likes
593

Here it is,

http://www.erpgenie.com/sap/abap/SalesOrderFlow.htm

I have sent one <b>OOPS ALV TREE & GRID </b>in a single program to you mail. Please check and let me know whethir it solved your problem.

Regards

Kathirvel

Read only

Former Member
0 Likes
593

hi;

look at BCALV_TREE_* in SE38

they are very helpful examples

you can also look at

http://www.sapdevelopment.co.uk/reporting/alv/alvtree/alvtree_basic.htm

Read only

Former Member
0 Likes
593

Hi aravind,

1. Its quite simple.

2. Basically there are TWO FMs,

which do the job.

3. just copy paste in new program

and u will know the whole logic.

4.

REPORT abc.

DATA : tr LIKE TABLE OF snodetext WITH HEADER LINE.

*----


data

tr-id = '1'.

tr-tlevel = 1.

tr-name = 'amit'.

APPEND tr.

tr-id = '2'.

tr-tlevel = 2.

tr-name = 'mittal'.

APPEND tr.

tr-id = '3'.

tr-tlevel = 2.

tr-name = 'Hello'.

APPEND tr.

tr-id = '4'.

tr-tlevel = 2.

tr-name = 'Brother'.

APPEND tr.

tr-id = '5'.

tr-tlevel = 4.

tr-name = 'Brother'.

APPEND tr.

*----


display

CALL FUNCTION 'RS_TREE_CONSTRUCT'

TABLES

nodetab = tr

EXCEPTIONS

tree_failure = 1

OTHERS = 4.

CALL FUNCTION 'RS_TREE_LIST_DISPLAY'

.

regards,

amit m.

Read only

Former Member
0 Likes
593

Thank you very much for the replies.