Main Steps to create ALV Tree(Using Objects)
The ALV tree report produces uses OBJECT METHOD functionality in-order to produce a
tree structured ALV output.
The creation of an ALVtree report first requires the creation of a simple program to build the ALV
details such as the fieldcatalog and to call a screen which will be used to display the ALVTree.
The screen should be created with a 'custom control' where you wish the ALVtree report to appear.
For the following example it will have the name 'SCREEN_CONTAINER'.
Create the following objects step by step
Create Container Create Object in Container Set ALVtree table for first display Create ALV Tree Hierarchy Add 'does tree already exist?' check
OR!!!!! Create the following objects in one step!
ABAP code listing of PBO(..O01) and FORM(..F01) includes should now look like this
Further development to add additional functionality for user interaction, but not required for ALV tree to execute.
|
||||||||