ALV OO TREE in a function module
Probably somebody can help me with this. I am trying to create an ALV OO TREE and I am following one of the examples that is in the system (BCALV_TREE_SIMPLE_DEMO) because it is more or less what I need. The problem I have is that I need to create a function module that contains this ALV_TREE so the import of this FM would be the table with the info, and as I saw I need to use PBO and PAI to create it with objects because if not it doesn't work, it doesn't show anything. I just create a report to test it, but now I need to create the FM, does anybody knows how to do it without this PBO and PAI or just with it but using the function module to create the ALV view?
Thanks very much
there is not much difference here, if you take function module also. create the screen in the function group, and add the code in the PBO and PAI modules in respective includes. Have a function module inside the function create the nodes etc..., and call the screen to show the ALV tree.