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: 

Display Totals_text in ALV List Display

Former Member
0 Kudos

Hi all,

I am using ALV list for my reports. For sum I am setting do_sum attribute in the field catalog and for printing the text in the first column of Total row in the layout I am setting the totals text as follows

FORM layout_build USING LS_LAYOUT TYPE SLIS_LAYOUT_ALV.

ls_layout-totals_text = 'Grand Total'.

ls_layout-colwidth_optimize = 'X'.

ENDFORM. " layout_build

But the Problem is that the First Column is only 2 char length. So the text "Grand Total" is getting truncated. I want to merge the first and second column and then display " Grand Total" text there.

this is very Urgent ....

Thanks in Advance

Smita

2 REPLIES 2

Former Member
0 Kudos

Hi,

Try this one

form build_layout.

gd_layout-no_input = 'X'.

gd_layout-colwidth_optimize = 'X'.

gd_layout-totals_text = 'Totals'(201).

endform. " BUILD_LAYOUT

Also check this sample program

http://www.sapdevelopment.co.uk/reporting/alv/alvlist_code.htm

Thanks & Regards,

Judith.

0 Kudos

Hi,

I am able to get the total in the ALV List, but the problem is my 1st column is only 2 char long and the attribute

gd_layout-totals_text

is for the First column.

I want to Merge the First and second column in the Total line in Order to Print "Grand Total" as the Text in the Total line.

Please help me immediately