10-08-2007 1:18 PM
Hi all
I have a small problem regarding the ALV List Display Totals Text...
I need totals for certain amount field and I have changed the properties of that field in fieldcatalog to get the total (Do_Sum = 'X') and I have changed the layout to get text for the totals (totals_text = 'GRAND Total is given here'). these setting/values usually give us the total under respective column and its text in the first column.
the text of 'Total and Sub-Total' is ristricted to the first column by default. I want to over come this limitation as im not displaying the first column(no_out = 'X'.)
.
I hope I have made my question clear here. please do help me out as I need this to be fixed to the earliest possible.
Thanks..
Bhagya
10-08-2007 2:24 PM
Actually i have wriitten the same code, in the alv. I am using Function modules. for the same code the sub-total and total text is appearing in the list output. but not in the grid output.
code.
-
wa_layout-zebra = 'X'.
wa_layout-subtotals_text = 'Total'.
wa_layout-totals_text = 'Sum of Marks'.
alv statement.
-
is_layout = wa_layout
Declaration.
-
DATA : wa_layout type slis_layout_alv.
Eg:2
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
Please give me reward point If it is useful
Thanks
Murali Poli
10-08-2007 2:24 PM
Actually i have wriitten the same code, in the alv. I am using Function modules. for the same code the sub-total and total text is appearing in the list output. but not in the grid output.
code.
-
wa_layout-zebra = 'X'.
wa_layout-subtotals_text = 'Total'.
wa_layout-totals_text = 'Sum of Marks'.
alv statement.
-
is_layout = wa_layout
Declaration.
-
DATA : wa_layout type slis_layout_alv.
Eg:2
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
Please give me reward point If it is useful
Thanks
Murali Poli
10-08-2007 2:25 PM