Application Development 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: 

sum field in table

Former Member
0 Kudos

hallow

i have table with emp miss for month and i wont to add another line with sum of miss days for month how i can do that ?

kostl         month1      month2    month3      month4     month5     month6
1000-10	532	456	503	453	522	500
1000-11	23	20	21	19	22	20

for this table ccmissdays i wont to add line with bold (sum)

kostl         month1      month2    month3      month4     month5     month6
1000-10	532	456	503	453	522	500
1000-11	23	20	21	19	22	20
            <b>555          476           524            472          544           520</b>

Best regards

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

It is not possible to add the data in BOLD in table or in Reports

In reports you can use Colors or INTENSIFIED ON or OFF.

Only in Scripts/smartforms this BOLD things can be achieved

Reward if useful

Regards

Anji

2 REPLIES 2

Former Member
0 Kudos

Hi

It is not possible to add the data in BOLD in table or in Reports

In reports you can use Colors or INTENSIFIED ON or OFF.

Only in Scripts/smartforms this BOLD things can be achieved

Reward if useful

Regards

Anji

former_member188827
Active Contributor
0 Kudos

is dis an internal table?if yes den do as follows...

loop at itab.

zmonth1_sum = itab-month1 + zmonth1_sum.

zmonth2_sum = itab-month2 + zmonth2_sum.

zmonth3_sum = itab-month3 + zmonth3_sum.

zmonth4_sum = itab-month4 + zmonth4_sum.

zmonth5_sum = itab-month5+zmonth5_sum.

zmonth6_sum = itab-month6 + zmonth6_sum.

endloop.

itab-kostl = ' '.

itab-month1 = zmonth1.

itab-month2 = zmonth2.

itab-month3 = zmonth3.

itab-month4 = zmonth4.

itab-month5 = zmonth5.

itab-month6 = zmonth6.

append itab.

if dere is ny confusion let me kno..

Message was edited by:

abapuser