Application Development and Automation 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: 
Read only

ALV Tree Subtotal

Former Member
0 Likes
1,136

Dear All,

I'm working on a ALV tree using cl_gui_alv_tree. My requirement is to calculate the percentage of column B in the header node using the subtotal value of column A.

However, when using CALL METHOD g_alv_tree->GET_OUTTAB_LINE after CALL METHOD g_alv_tree->update_calculations, the subtotal value is returning 0 value. Please let me know how to get the subtotal value in the header node.

Thank you.

Dear All,

I'm working on a ALV tree using cl_gui_alv_tree. My requirement is to calculate the percentage of column B in the header node using the subtotal value of column A.

However, when using CALL METHOD g_alv_tree->GET_OUTTAB_LINE after CALL METHOD g_alv_tree->update_calculations, the subtotal value is returning 0 value. Please let me know how to get the subtotal value in the header node.

Thank you.

2 REPLIES 2
Read only

Former Member
0 Likes
690

Hi ,

try out the following method:

g_alv_tree->add_method

give exporting and importing parameters accordingly.

kindly go through the following links too that may help you clearing out the doubts.

Hope it helps!!!!

Regards,

Alora Sahu

Read only

Former Member
0 Likes
690

Hi,

Sorry to miss out pasting the links in last reply, kindly refer these links:

http://scn.sap.com/thread/633027

http://scn.sap.com/thread/1724325

Regards,

Alora Sahu