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: 

ALV layout heading

Former Member
0 Kudos

Hi,

I have 8 fields in my ALV grid display , but i want to display the heading only for 3 fields, how can we do through ALV?. Pls send me ur answers.

Thanks & Regards.

7 REPLIES 7

anup_deshmukh4
Active Contributor
0 Kudos

Arrange you Field Catlague in the way you want....i.e. don't give column name in field catlogue

former_member536879
Active Contributor
0 Kudos

Hi,

While Creating the field catalog dont give the headings for the fields that you dont want. Hope this might solve your problem.

With Regards,

Sumodh.P

0 Kudos

Hi,

I am not giving any headings for the fields in fieldcatalog..i want to display the heading for 3 fields in the layout output.

Here is my code in fieldcat.

CLEAR wa_fieldcat.

wa_fieldcat-fieldname = 'MATNR'.

wa_fieldcat-tabname = 'T_FINAL'.

wa_fieldcat-seltext_m = text-001.

wa_fieldcat-outputlen = 18.

APPEND wa_fieldcat TO t_fieldcat.

CLEAR wa_fieldcat.

wa_fieldcat-fieldname = 'PLNAL'.

wa_fieldcat-tabname = 'T_FINAL'.

wa_fieldcat-seltext_m = text-002.

wa_fieldcat-outputlen = 15.

APPEND wa_fieldcat TO t_fieldcat.

CLEAR wa_fieldcat.

Thanks & Regards.

Former Member
0 Kudos

Hi Ravindra,

Please specify your problem what you want exactly.........

As per I understand this problemu2026.. you should change in stander function module

u201CREUSE_ALV_GRID_DISPLAYu201D accordinglyu2026..

In function module you can define length and height of the column .

Former Member
0 Kudos

you can use another method.

Use u201CREUSE_ALV_HIERSEQ_LIST_DISPLAYu201D pass header n no. of item

For both as internal table.

Former Member
0 Kudos

Hi Ravindra,

Welcome to SDN....

The heading of the fields are displayed from the components SELTEXT_L, SELTEXT_M, SELTEXT_S of the FIELDCATLOG.

So for those 5 fields keep these components as blank before using the FM REUSE_ALV_LIST_DISPLAY or REUSE_ALV_GRID_DISPLAY.

This will solve your problem.

Regards

DKS

0 Kudos

Hi Ravindra,

Please close the thread, if the issue is solved.....

Regards

DKS