Application Development 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: 

How to update calculations Sutotals with CL_SALV_TREE

immanuels
Explorer
0 Kudos

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

2 REPLIES 2

Sandra_Rossi
Active Contributor
0 Kudos

Yes. You can find the existing answers in the forum by searching with your preferred search engine:

"cl_salv_tree" sum site:sap.com

rmz01
Explorer
0 Kudos

Not able to find answer to this. Can you help ? Did you find solution ?