cancel
Showing results for 
Search instead for 
Did you mean: 

How To avoid column heading for only total line in ALV list Display

Former Member
0 Kudos

Hi,

How To avoid column heading for only total line in ALV list Display.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

to change colunm header field catlog is built

look at the example below

  • Changing column text headers

  • use this to change, hide, or alter the ALV columns

CLEAR: gt_fcat.

READ TABLE gt_fcat WITH KEY fieldname = 'TEXT1' " ***

*TEXT1 is your field name

ASSIGNING <gtfcat>.

IF sy-subrc = 0.

<gtfcat>-coltext = 'Date Type'.

<gtfcat>-no_out = ' '.

<gtfcat>-tooltip = 'Date Type Text from IT0019'.

<gtfcat>-seltext = 'IT0019'.

  • keep seltext to '' if u want to hide

ENDIF.

regards

austin

Former Member
0 Kudos

Hi ,

1.if you ant to hide a particular

column heading use

  fieldcat-seltext_l = '..'.
  fieldcat-ddictxt = 'L'.

give spaces in the place of '..'.

2.In case you want to hide your heading itself use the

<b>no_colhead</b> option of the Layout..

<b>gs_layout-no_colhead = 'X'.</b>..

this will completely hide all the column headings..

regards

satesh

Former Member
0 Kudos

I am asking for total row,When we are displaying total row,Even non total column headings are also appearing. I want to avoid this non total columns heading.

former_member188685
Active Contributor
0 Kudos

Hi Ravishekar,

Can you make it clear what is the total line, is it like a normal column..

if so you don't give any text for that field in fieldcat

as suggested by Hymavathi.

but i doubt you are asking some thing else...

Regards

vijay

Former Member
0 Kudos

U r right, I am asking for total row,When we are displaying total row,Even non total column headings are also appearing. I want to avoid this non total column heading. I hope this is clear.

former_member188685
Active Contributor
0 Kudos

Hi Ravi,

you can't avoid them, but you can find the totlas are for which column line ,like on the column heading you can summation symbol (E) . so you can differentiate...

Regards

vijay

Former Member
0 Kudos
if u r using REUSE_FIELCATALOG_MERGE

after that

loop at it_fieldcatalog.

case it_fieldcatalog-fieldname.

  when 'TOTALLINE'.
    it_fieldcatalog-seltext_l = ''.
    it_fieldcatalog-seltext_m = ''.
    modify it_fieldcatalog transporting sltext_l seltext_m.
endloop.
hymavathi_oruganti
Active Contributor
0 Kudos

while building fieldcat

do like this

ls_fieldcat-fieldname = 'total_line'.

ls_fieldcat-seltext_l = ''.

i hope u understood what i mean to say. give space for sel text in fieldcat for the field