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: 

Manipulation value total/subtotal in ALV

former_member537709
Discoverer
0 Kudos

Hi guys,

Is there any possibility to make manipulation value on total/subtotal in ALV ?

TIA

5 REPLIES 5

Former Member
0 Kudos

If you ask about class CL_GUI_ALV_GRID, it's possible with event SUBTOTAL_TEXT.

0 Kudos

Thanks EVGUENY,

But I use fm REUSE_ALV_GRID_DISPLAY.

Is it still possible?

Regs,

Haris

0 Kudos

There is an internal table IT_EVENTS to be passed with the form name in your program which handles the manipulation.

(On a long run I would consider a change from the fm to the class - reacting on events is way easier and more transparent than in the fm)

Christian

0 Kudos

Hi Haris,

Pass the parameter IT_EVENTS. Pass the same. U can try these two events for your purpose.

One is BEFORE_LINE_OUTPUT (this gets triggered before each line is written to the ALV output)

Similarly there is another SUBTOTAL_TEXT.

Try to manipulate the values in these events and see.

All the best.

regards,

Satya

0 Kudos

Hi Guys,

I did try IT_EVENTS, but it seems didn't work. Never execute IT_EVENTS-FORM.

Do I need put another ALV fm inside IT_EVENTS-FORM ? or just manipulation what I need.

PS: SAP rel 46B, Basis & ABAP Patch level 55.

Thank's