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

ADDING CONTENTS IN FIELDS

Former Member
0 Likes
556

HI,

HOW TO GET TOTAL SUM OF THE FILEDS IN A NORMAL REPORTS(NOT ALV) AND ALSO SUBSTRACTION.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
526

what do you mean by subtraction?? from what should it be subtracted with??

data sum type f.

loop at itab.

sum = sum - itab-field.

endloop.

write: sum.

3 REPLIES 3
Read only

Former Member
0 Likes
526

loop at itab.

at last.

sum.

append itab.

clear itab.

endat.

endloop.

loop at itab.

write:/ itab-field1, itab-qty.

endloop.

Regards,

Ravi

Read only

Former Member
0 Likes
526

Do sum.

Read only

Former Member
0 Likes
527

what do you mean by subtraction?? from what should it be subtracted with??

data sum type f.

loop at itab.

sum = sum - itab-field.

endloop.

write: sum.