Skip to Content
avatar image
Former Member

How to display subtotal text with different discription with eachgroupinALV

Hi,

I nead to display for each group with different description in ALV report.

Group Material number

1 1

1 2

1 3.....and so on up to 10

For above group i need to disply with subtotal description as "Total of Material group1 "

Group Material numbers

2 11

2 12

2 13....upto 20.

For second group i need to disply with subtotal description as "Total of Materials group 11 to 20 "

So like that i need to display with different text for subtotal summary in ALV report and finally i do not want to display summary of the toal.

Please help me how to do this one.

regards

Nagendra

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Oct 07, 2008 at 09:40 AM

    Hi,

    For removing total summary, you can set the flag no_totalline in layout.

    For subtotal text there is one flag subtotals_text

    data ls_layout TYPE slis_layout_alv.
    ls_layout-no_totalline      = 'X'.
    ls_layout-subtotals_text      = 'Subtotal'
    

    Cheers,

    Kothand

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 07, 2008 at 09:41 AM

    Hi Nagendra,

    Check the sample code for subtotal description in

    https://wiki.sdn.sap.com/wiki/x/PYPVAg

    Regards,

    Anirban

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 07, 2008 at 09:54 AM

    Hi,

    But in my report, i need to display with different descriptions for each group.

    EX:-

    groupId Material numbers

    1 1

    1 2

    1 3

    1 4

    total of first group (Subtotal text)

    Group id Material numbers

    2 1

    2 2

    2 3

    2 4

    total of the Second group (subtotal text)

    3rd group i dont want to do any subtotal.

    Please help me how to do this one.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      For that check the program in the link given by Anirban which will exactly suit your requirement

      Hi Nagendra,
      Check the sample code for subtotal description in
      
      https://wiki.sdn.sap.com/wiki/x/PYPVAg 
      
      

      Cheers,

      Kothand

  • avatar image
    Former Member
    Oct 07, 2008 at 10:06 AM

    Hi,

    I want to display with different descirption for each group depening on the group in output table.

    Add comment
    10|10000 characters needed characters exceeded