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: 

Subtotal average not working in production

Former Member
0 Kudos

Hi Experts,

I have a very strange issue . I have given subtotal average for a filed by setting fieldcatalog to c .

Its working perfectly in dev but not working in production .

I have no clue about how to correct this .The below is my code.


x_fieldcat-scrtext_m = 'Rate / Kg'(030).
  x_fieldcat-fieldname = 'KGRATE'.
  x_fieldcat-tabname = 'T_OUTPUT'.
  x_fieldcat-col_pos = l_pos.
  x_fieldcat-no_zero = 'X'.
  x_fieldcat-outputlen = '20'.
  x_fieldcat-do_sum = 'C'.
  APPEND x_fieldcat TO it_fieldcat.
  CLEAR x_fieldcat.
  l_pos = l_pos + 1.

Kindly help in this regard !

1 ACCEPTED SOLUTION

mvoros
Active Contributor
0 Kudos

Hi,

don't you have a standard layout for your report in production which does not do sub totals? So SAP picks this standard layout and ignores your settings.

Cheers

3 REPLIES 3

mvoros
Active Contributor
0 Kudos

Hi,

don't you have a standard layout for your report in production which does not do sub totals? So SAP picks this standard layout and ignores your settings.

Cheers

Former Member
0 Kudos

thanks martin

faisal_altaf2
Active Contributor
0 Kudos

Hi,

Do the following Change hope will solve out your problem,

x_fieldcat-do_sum = 'X'.

Best Regards.

Faisal