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: 

Is it possible to get the breakup of subtotals got by subtot of sort table.

Former Member
0 Kudos

I have developed a alv report by using the 'REUSE_ALV_GRID_DISPLAY' function module, in this I have got the grand total by using the do_sum field from the fieldcatalog table i.e.(slis_t_fieldcat_alv)

And I have got the subtotals by using the subtot field from the (slis_t_sortinfo_alv) table.Now the issue is that user needs the break up of this subtotals & also the grand totals.

Is it possible for me to get the break up of Subtotals & Totals. I can explain it further with an e.g. as follows.

Suppose there is a report whose o/p is displayed in an 'REUSE_ALV_GRID_DISPLAY' and the subtotals is occuring on the base of 4 field levels such as GMI DIVISION, MFG PLATFORM, PNL & LOCATION, now sub-totalling occurs on every level change and the last grand totalling takes place as per the do_sum checked for the field catalog, now suppose the group subtotal for the Mfg Platform is 9, which is actual totalling of three fields of the label column which is constant such as, the fields in the label column are.

Fixed by Horizon = 6

Fixed by User = 3

Not Fixed = 0

for the DRYD manufacturing platform level which occurs for every level change of 4 levels described(GMI DIVISION,MFG PLATFORM,PNL & LOCATION). Now the subtotal of these 4 levels is 9 after going through different levels.But the user now wants to see the last subtotal as a break up of column LABEL.

Fixed by Horizon = 6

Fixed by User = 3

Not Fixed = 0

Instead of Plain subtotal as DRYD with 3 dots (i.e. the grouping level) 9.

Is there any way out for the user to show the subtotal in the break as explained.

Hope to get some ideas ont this.

Thanks in Advance.

Regards,

Sanjay.

1 ACCEPTED SOLUTION

naimesh_patel
Active Contributor
0 Kudos

Hello,

User can change the fields for subtotal in the CHANGE LAYOUT Button. User simply has to remove the tick if he doesn't want to do the subtotal.

Regards,

Naimesh

1 REPLY 1

naimesh_patel
Active Contributor
0 Kudos

Hello,

User can change the fields for subtotal in the CHANGE LAYOUT Button. User simply has to remove the tick if he doesn't want to do the subtotal.

Regards,

Naimesh