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

reg.reports

Former Member
0 Likes
288

Hi experts,

I am doing one alv report in that report i want to do the sum as follows.

matnr kwmeng lfimg

m123 2345 2345

m234 1086 30

m235 1086 30

m236 1086 30

m237 1086 18

m238 1086 12

i want to do the sum of lfimg and i want to do the deduct from kwmeng. kwmeng is not a constant.

Thanks & regards,

Narasimha Rao.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
272

Hi,

Do u want to subtract from the addition of kwmeng or more the last value of kwmeng?

If u want to subtract from the difference:

LOOP AT itab.

AT LAST.

SUM.

lv_diff = itab-kwmeng - itab-field1.

ENDAT.

ENDLOOP.

Thank you.

Reward points if found useful.

1 REPLY 1
Read only

Former Member
0 Likes
273

Hi,

Do u want to subtract from the addition of kwmeng or more the last value of kwmeng?

If u want to subtract from the difference:

LOOP AT itab.

AT LAST.

SUM.

lv_diff = itab-kwmeng - itab-field1.

ENDAT.

ENDLOOP.

Thank you.

Reward points if found useful.