Application Development and Automation 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: 
Read only

plz help me

Former Member
0 Likes
849

Hi,

How to give headings text in alv output.?

Thanks & Regards,

K P

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
831

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

Hi,

How to give headings text in alv output.?

Thanks & Regards,

K P

5 REPLIES 5
Read only

Former Member
0 Likes
831

see SE38 with BALV*

cheers,

Satya

Read only

Former Member
0 Likes
832

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

Read only

0 Likes
831

Here are those fields

FS_FIELDCAT-REPTEXT_DDIC,

FS_FIELDCAT-SELTEXT_L,

FS_FIELDCAT-SELTEXT_M,

FS_FIELDCAT-SELTEXT_S

Read only

Former Member
0 Likes
831

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.

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
831

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.