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

ALV layout heading

Former Member
0 Likes
760

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
Read only

anup_deshmukh4
Active Contributor
0 Likes
730

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

Read only

Former Member
0 Likes
730

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

Read only

0 Likes
730

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.

Read only

Former Member
0 Likes
730

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 .

Read only

Former Member
0 Likes
730

you can use another method.

Use u201CREUSE_ALV_HIERSEQ_LIST_DISPLAYu201D pass header n no. of item

For both as internal table.

Read only

Former Member
0 Likes
730

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

Read only

0 Likes
730

Hi Ravindra,

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

Regards

DKS