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

Problem in ALV reports!

Former Member
0 Likes
464

Hi,

I want to generate a report in ALV using a combined fields from 2 tables... I have already created an internal table from these two DB table fields using the inner join. in the ALV report i want the reslt of each field to be displayed in the report.. for Example:

field1 in internal table contain (amount 13324.225 34432.214 ....ans so on) so in the ALV i want to calculate the result of all the entries regarding this particular field..

depending on a particular period of time which be choosen from a select-option..

please advice how to do that??

Hi,

I want to generate a report in ALV using a combined fields from 2 tables... I have already created an internal table from these two DB table fields using the inner join. in the ALV report i want the reslt of each field to be displayed in the report.. for Example:

field1 in internal table contain (amount 13324.225 34432.214 ....ans so on) so in the ALV i want to calculate the result of all the entries regarding this particular field..

depending on a particular period of time which be choosen from a select-option..

please advice how to do that??

3 REPLIES 3
Read only

huseyindereli
Active Contributor
0 Likes
432

Hi ,

I'm not sure about your need but if you like sum up your fields , you can use do_sum as below. Totals will appear automatically.

LOOP AT gt_fieldcat.
if gt_fieldcat-fieldname = 'YOUR_COLUMN'.
   gt_fieldcat-do_sum = 'X'.
endif.

  MODIFY gt_fieldcat.
ENDLOOP.

Regards.

Read only

Former Member
0 Likes
432

Hi,

If you are creating the field catalog manually, then use for that particular field you need the summation result. Otherwise if you are getting the field catalog using then give the loop and modify your field catalog for changes.

Thanks,

Read only

Former Member
0 Likes
432

Thank you all,

Problem Resolved!