‎2008 Mar 26 11:48 AM
hi,
i did like this.
loop at gt_item into wa_item.
sumtotal = sumtotal + wa_item-wrbtr .
endloop.
gt_item having 53 records.
all are summing in sumtotal field but after 40 record that sumtotal is 0000. then its giving runtime error.
why its like this?
‎2008 Mar 26 11:53 AM
hi,
check the data type of ur sumtotal, if the range of it exceeds
there are some possibilities of errors like this
regards,
priya.
‎2008 Mar 26 11:52 AM
What is the Data Type of sum total....
Try this
Data: SUM_TOTAL Type WRBTR.
loop at gt_item into wa_item.
At Last.
Sum.
SUM_TOTAL = wa_item-wrbtr .
EndAt.
endloop.
Write: SUM_TOTAL.
Santhosh
‎2008 Mar 26 11:52 AM
Hi,
check this out.
data : sumtotal like bsad-wrbtr.
loop at gt_item into wa_item.
sumtotal = sumtotal + wa_item-wrbtr .
endloop.reward if useful.
‎2008 Mar 26 11:53 AM
hi,
check the data type of ur sumtotal, if the range of it exceeds
there are some possibilities of errors like this
regards,
priya.
‎2008 Mar 26 11:53 AM
This may be due to the field sumtotal is not large enough to hold the value. So try to increase the size of sumtotal .
‎2008 Mar 26 11:56 AM
Hi,
Declare
data : sumtotal like wa_item-wrbtr..
Regards,
Balakumar.G
Reward Points if helpful.