You can create Tree Report simple using RS_TREE_LIST_DISPLAY. In this sample ABAP Code we have to create Business Partner Relationship Report.

This report must build with Tree layout report, let’s start from getting data and put into an internal table, then build tree node by populating internal table which it have SNODETEXT type.

Then create top level node using this code below.

You can see that code on WA_NODE structure and field, for top level node you can entered “T” for WA_NODE-TYPE, WA_NODE-TLEVEL is node level you can entered level for your node. you can change that code to your specific needs.

You can see full source code below ( This is not full optimized ABAP Code just for sample, you can tune up or modify this code ).

RS_TREE_LIST_DISPLAY-abap

Leave a Reply

Your email address will not be published. Required fields are marked *