2005 Oct 18 5:45 AM
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.
2005 Oct 18 5:47 AM
2005 Oct 18 5:50 AM
2005 Oct 18 5:54 AM
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
2005 Oct 18 5:59 AM
I already saw this posted. But i still dont understand how tis thing works !!
2005 Oct 18 6:04 AM
2005 Oct 18 6:00 AM
Shanmugham,
Judith is right. You cannot make the Column Headings in ALV go over 2 rows.
Sorry,
Pat.
2005 Oct 18 6:04 AM
Solved it. I used another entry in fieldCatalog with row_pos = 2 and increased the outputlen so that the heading appears wrapped.
2005 Oct 18 6:17 AM
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.
2005 Dec 22 7:11 AM
Hi Muralidaran,
Can you please explain how you really wrap the ALV list column headings?
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |