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: 

Grant total in ALV

Former Member
0 Kudos

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?

6 REPLIES 6

Former Member
0 Kudos

0 Kudos

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.

0 Kudos

Any suggestions...

0 Kudos

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

0 Kudos

> 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

Former Member
0 Kudos

Is in the layout, structure type LVC_S_LAYO