11-23-2007 3:49 AM
Hi all,
I managed to display the subtotal but now I need to display subtotal caption / text beside it... example:
Subtotal Consumption (USD) : 1000.00
I managed to get the subtotal 1000.00...How do I display the caption / text 'Subtotal Consumption (USD)'?
Please help...Thanks..
11-23-2007 4:01 AM
Hi,
In the layout varaible
layout-subtotals_text = 'Subtotal text'.
regards,
Santosh Thorat
11-23-2007 4:21 AM
hI,
Use this
<b>layout-subtotals_text = 'U r Text'.</b>
With Rgds,
S.Barani
11-23-2007 4:44 AM
Hi,
Try like this
wa_layout-subtotals_text = 'Subtotal'.
Regards,
Prashant
11-23-2007 5:09 AM
HI
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
11-23-2007 5:13 AM
Hello all,
Thanks for the reply...
I have tried it before I post this message but I cannot get the desired output.
DATA g_layout TYPE slis_layout_alv.
CLEAR g_layout.
g_layout-colwidth_optimize = ' '.
g_layout-f2code = '&ETA'.
g_layout-zebra = 'X'.
g_layout-detail_popup = 'X'.
g_layout-get_selinfos = 'X'.
g_layout-cell_merge = 'X'.
g_layout-reprep = 'X'.
g_layout-no_subtotals = ' '.
g_layout-colwidth_optimize = 'X'.
g_layout-subtotals_text = 'Test subtotal text'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_interface_check = ' '
i_callback_program = g_repid
is_layout = g_layout
it_fieldcat = gt_fieldcat
it_sort = gt_sort[]
i_save = g_variant_save
is_variant = g_def_variant
it_events = gt_events
is_print = g_print
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2.
Please advice...Thanks....