Skip to Content

Selective Sub-total in ALV Hierarchical list display

All,

I am using  REUSE_ALV_HIERSEQ_LIST_DISPLAY to display Header and Item. The requirement is to have subtotal only for one item for a specific contract type. Although, they want me to display price for all line items.

Is this possible?

Regards,

Salil

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jan 07, 2015 at 12:22 AM

    You need to sort a column for having a subtotal. Which column are you sorting? There could be a dirty work around.

    Add a pseudo column that will distinguish the item you want to have a subtotal on from other items and you can have your subtotal.

    So, for items you want to have subtotal on, will have pseudo_column = 1.

    Rest items will have pseudo_column = 2, 3, 4, 5,6.... and so on.

    But I will really not recommend this.

    What is your exact requirement?

    Add comment
    10|10000 characters needed characters exceeded