05-09-2011 9:40 AM
Hi Friends,
i am using W_FCAT-DO_SUM = 'X'. this is using sum of totals
but i want grand totals = avg % what i can do please tell me any body.
Regards.
Sreelakshmi.
05-09-2011 9:47 AM
For ground total, sum subtotal in a structure and append it into table.
05-09-2011 9:53 AM
PLOSS
49.82
479.05
GTOTAL 528.87 THIS IS USING below
W_FCAT-TABNAME = 'IT_FINAL'.
W_FCAT-FIELDNAME = 'PLOSS'.
W_FCAT-SELTEXT_M = '% Of Pack Loss'.
W_FCAT-DO_SUM = 'X'.
if p_fc = 'X'.
W_FCAT-DECIMALS_OUT = '0'.
ELSEIF p_veg = 'X'.
W_FCAT-DECIMALS_OUT = '1'.
ENDIF.
APPEND W_FCAT TO I_FCAT.
CLEAR W_FCAT.
BUT I WANT TO PLOSS
49.82
479.05
GTOTAL 264.43
what can i do please tell me any body.
05-09-2011 9:54 AM
05-09-2011 10:10 AM
Hi
Use the following code :
layout_rec-colwidth_optimize = 'X'.
layout_rec-countfname = 'SID'.
sort_rec-spos = 1.
sort_rec-fieldname = 'KOSTL'.
sort_rec-tabname = 'T_FINAL'.
sort_rec-subtot = 'X'.
sort_rec-up = 'X'.
sort_rec-group = 'X'.
APPEND sort_rec TO t_sort.
CLEAR sort_rec.
Regards,
Durga Naresh