‎2008 May 08 12:57 PM
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.
‎2008 May 08 1:04 PM
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.
‎2008 May 08 1:04 PM
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.