Application Development and Automation 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: 
Read only

ALV

Former Member
0 Likes
486

Hi......,

I am having two fields in report namely as Quantity and Quantity1 holding quantity values from different tables.

I am getting the subtotoals of these two quantity fields.

Now these subtotal value I have to subtract

Quantity - Quantity1 and I have to put the result in another column as Delta.

I tried with this logic but it is not working.

v_quantity = gr_agg->add_aggregation( 'QUANTITY' ).

v_quantity1 = gr_agg->add_aggregation( 'QUANTITY1' ).

v_date = v_quantity - v_quantity1.

Please guide me on this same as soon as possible.

Thanx,

Jay......

1 REPLY 1
Read only

Former Member
0 Likes
388

Hi,

You can do one thing first you add one more column to your internal table of type quanity and modify this column with values quantity - quanity1, then get the subtotals for all the three columns..

Rgds,

Bujji