12-24-2021 5:12 AM
Hi, I found that the class CL_SALV_TREE is the wrapper class for CL_GUI_SALV_TREE,
in CL_GUI_SALV_TREE, I can set the field catalog with DO_SUM = 'X' and I just do the update_calculations method like this.
call method g_alv_tree->set_table_for_first_display
exporting
is_hierarchy_header = l_hierarchy_header
changing
it_outtab = gt_data_layout
it_fieldcatalog = fieldcatalog.
* §4. Create hierarchy (nodes and leaves)
perform create_hierarchy tables lt_nkey_exp.
call method g_alv_tree->update_calculations.
Is there any way I can do this with CL_SALV_TREE ?
Thanks
12-24-2021 6:30 AM
Yes. You can find the existing answers in the forum by searching with your preferred search engine:
"cl_salv_tree" sum site:sap.com
06-12-2023 4:00 AM
Not able to find answer to this. Can you help ? Did you find solution ?