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: 

Re: Alv reports

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

For ground total, sum subtotal in a structure and append it into table.

0 Kudos

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.

GauthamV
Active Contributor
0 Kudos

For average use W_FCAT-DO_SUM = 'C'.

Former Member
0 Kudos

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