Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to do dynamic subtotal and total texts in ALV list...

Hello Experts,

I am currently using the old ALV version to display my report. Currently, I need

to write the subtotal and total texts but depending on the a given value in one of the

fields in my internal table. So for example, that field is for plant and the value is 1000

so I need to write 'Subtotal for Plant 1000:'. My initial code below is not working:

CLEAR gs_layout.

gs_layout-colwidth_optimize = 'X'.

gs_layout-zebra = 'X'.

gs_layout-subtotals_text = 'Subtotal'.

gs_layout-totals_text = 'Total'.

Hope you can help me guys. Thank you and take care!

Former Member

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question