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: 

plz help me

Former Member
0 Kudos

Hi,

How to give headings text in alv output.?

Thanks & Regards,

K P

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Are you asking about column headings? If so, they should be part of your field catalog.

5 REPLIES 5

Former Member
0 Kudos

see SE38 with BALV*

cheers,

Satya

Former Member
0 Kudos

Are you asking about column headings? If so, they should be part of your field catalog.

0 Kudos

Here are those fields

FS_FIELDCAT-REPTEXT_DDIC,

FS_FIELDCAT-SELTEXT_L,

FS_FIELDCAT-SELTEXT_M,

FS_FIELDCAT-SELTEXT_S

Former Member
0 Kudos

U can specify that in layout


DATA:   w_layout TYPE lvc_s_layo ,
       w_variant TYPE disvariant.
FORM f9003_layout.

  w_layout-grid_title  = 'Heading'.
  w_layout-zebra       = 'X'.
  w_layout-sel_mode    = 'B'.
  w_layout-cwidth_opt  = 'X'.
  w_variant-report     = sy-repid.

ENDFORM.                    " f9003_layout

Also refer this link

http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_rephead.htm

U can specify the same in TOP-OF-PAGE.

If u want the column headings then u can do so in Fieldcatalog

Make fcat-seltext_m = 'Heading'.

http://www.sapdevelopment.co.uk/reporting

Hope this helps.

Reward points if u find helpful.

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

This is the sample code to display column heading.

DATA: i_fieldcat TYPE slis_t_fieldcat_alv.

DATA: line_fieldcat TYPE slis_fieldcat_alv.

CLEAR line_fieldcat.

line_fieldcat-fieldname = 'QMNUM'. " The field name and the table

line_fieldcat-tabname = 'I_DATA'. " name are the two minimum req.

line_fieldcat-key = 'X'. " Specifies the column as a key (Blue)

<b>line_fieldcat-seltext_m = 'Notification No.'. " Column Header</b>

APPEND line_fieldcat TO i_fieldcat.

Kindly reward points if it helps.