04-20-2006 1:36 PM
Hi,
How can I exclude lines from the subtotals in ALV? (Certain lines in the ALV are just additional information and should not be added to the subtotals.)
I'd even try to change the subtotals manually if this is possible.
thanks in advance
Roland
04-20-2006 1:41 PM
04-20-2006 1:45 PM
hi,
Look at this link
http://www.geocities.com/mpioud/Abap_programs.html
Documentation of the fields for catlog
04-20-2006 1:52 PM
Hi,
I do not want to exclude columns from the subtotals, but lines!
Here is an example of what I want:
..........................value
Relevant line A...1000
Irrelevant line.....2000
Relevant line B...3000
-
subtotal............4000
The subtotal is 4000, because the irrelevant line is excluded.
Roland
Message was edited by: Roland Spindler
Message was edited by: Roland Spindler
04-20-2006 2:02 PM
Hello,
Data: I_SORT TYPE SLIS_T_SORTINFO_ALV,
WA_SORT TYPE SLIS_SORTINFO_ALV.
*---Sort
WA_SORT-SPOS = '1'.
WA_SORT-FIELDNAME = 'LINE'.
WA_SORT-UP = 'X'.
WA_SORT-SUBTOT = 'X'.
APPEND WA_SORT TO I_SORT.
CLEAR WA_SORT.
Pass this in FM,
IT_SORT = I_SORT
Regards,
Naimesh
04-20-2006 2:06 PM
Hi,
Thanks for explaining for the third time how to make a subtotal line, but that was not my question.
best regards
Roland
04-20-2006 2:10 PM
Hello Roland,
It is not possible to exclude certain lines from ALV subtotal. Because it is applicable to all.
Regards,
Naimesh
04-20-2006 2:36 PM
Roland,
You would need to create your own custom ALV Class Object that excludes this information.
The sub-totals on all appropriate lines is the "out-of-the-box" solution provided by SAP.
Note - to write a custom ALV solution for this would be a noticable undertaking. I would suggest that you "live with it" as is.