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

Wrap ALV Heading

Murali_Shanmu
SAP Champion
SAP Champion
0 Likes
1,340

Hi

I have an ALV Column heading that i very long. How do i wrap it.

Hi

I have an ALV Column heading that i very long. How do i wrap it.

9 REPLIES 9
Read only

Former Member
0 Likes
1,189

Hi,

It is not possible to wrap text.

See this link

Read only

0 Likes
1,189

These links dont open up from here.

Read only

0 Likes
1,189

TRY THIS..

How to make ALV header like this?

Header long text 1 Header long text 2 Header long text 3

Col_1 Col_2 Col_3 Col_4 Col_5 Col_6 Col_7 Col_8 Col_9

-


Cell conents -


-


Cell conents -


-


Cell conents -


-


Cell conents -


-


Cell conents -


You could try:

data: gt_list_top_of_page type slis_t_listheader. " Top of page text.

Initialization.

perform comment_build using gt_list_top_of_page[].

form top_of_page.

  • Note to self: the gif must be loaded into transaction OAOR with

  • classname 'PICTURES' AND TYPE 'OT' to work with ALV GRID Functions.

  • I Loaded NOVALOGO2 into system.

call function 'REUSE_ALV_COMMENTARY_WRITE'

exporting

  • I_LOGO = 'NOVALOGO2'

  • i_logo = 'ENJOYSAP_LOGO'

it_list_commentary = gt_list_top_of_page.

endform. " TOP_OF_PAGE

form comment_build using e04_lt_top_of_page type slis_t_listheader.

data: ls_line type slis_listheader.

clear ls_line.

ls_line-typ = 'A'.

ls_line-info = 'Special'(001).

fgrant = xgrant.

concatenate ls_line-info fgrant

'Stock Option Report to the board'(002)

into ls_line-info separated by space.

condense ls_line-info.

append ls_line to e04_lt_top_of_page.

endform. " COMMENT_BUILD

Read only

0 Likes
1,189

I already saw this posted. But i still dont understand how tis thing works !!

Read only

0 Likes
1,189

Read only

former_member221770
Contributor
0 Likes
1,189

Shanmugham,

Judith is right. You cannot make the Column Headings in ALV go over 2 rows.

Sorry,

Pat.

Read only

Murali_Shanmu
SAP Champion
SAP Champion
0 Likes
1,189

Solved it. I used another entry in fieldCatalog with row_pos = 2 and increased the outputlen so that the heading appears wrapped.

Read only

0 Likes
1,189

Shanmugham,

How does this allow you to wrap your heading? By adding another record in your fieldcatalog with ROW_POS = 2 will simply add another line to your ALV Report. Can you please explain how you managed to wrap your heading over 2 lines? This issue has been bugging me for ages!

Thanks,

Pat.

Read only

0 Likes
1,189

Hi Muralidaran,

Can you please explain how you really wrap the ALV list column headings?