11-06-2007 8:16 PM
Hi,
I have an ALV in which i'm showing subtotal by using do_sum = 'X'. So it's showing toal and the end of line item (which i want), and I also at the end, its also showing Grant total. I don't want to display grand totol at the end.
How to do this?
11-06-2007 10:39 PM
Set NO_TOTLINE='X' in the layout structure.
http://help.sap.com/saphelp_erp2004/helpdata/en/fa/efb52cf8a611d2b48d006094192fe3/content.htm
Good luck
Brian
11-07-2007 2:04 PM
I m using field catalog which has a data type lvc_s_fcat. This structur does not have any component with the 'NO_TOTLINE'. Which structure you are talking about.
11-07-2007 2:35 PM
11-07-2007 2:38 PM
NO_TOTLINE is in Layout LVC_S_LAYO
LVC_S_LAYO-NO_TOTLINE = 'X'.
Pass LVC_S_LAYO this to the Layout parameter of the method
Regards,
Naimesh Patel
11-07-2007 4:08 PM
> I m using field catalog which has a data type
> lvc_s_fcat. This structur does not have any component
> with the 'NO_TOTLINE'. Which structure you are
> talking about.
It's not in the field catalog. I didn't say it's in the field catalog.
If you read my previous response, I said it's in the <b>layout</b>.
Why don't you search your program for the word "layout" and see if you can find it.
Add the code I gave you in the same area, before you call set_table_for_first_display.
gs_layout-no_totline = 'X'.
CALL METHOD gr_alv->set_table_for_first_display
EXPORTING
is_variant = gs_variant
i_save = 'A'
is_layout = gs_layout "<<<<==== LAYOUT
it_toolbar_excluding = gt_toolbar_excl
CHANGING
it_outtab = gt_alv_grid_tab
it_fieldcatalog = gt_fieldcat "<<<<====FIELD CATALOG - not the same thing!!!!
it_sort = gt_sort.
Good luck
Brian
11-07-2007 2:36 PM