2006 Jan 25 12:53 AM
On trying to print the report header in ALV grid using REUSE_ALV_COMMENTARY_WRITE it doesn't allow printing of text > 60 chars since type slis_entry is 60(c) . Is there any other way to print longer texts in ALV GRID headers.
Thanks in Advance.
Regards
Rani
2006 Jan 25 4:14 AM
Hi,
using REUSE_ALV_COMMENTARY_WRITE you can write up to 60 chars only.
what is the report type, i mean is it list/grid.
if it is list then you can write with out using FM REUSE_ALV_COMMENTARY_WRITE, using top_of_page event you can write more than 60 chars(using normal write statements). this will work only incase of normal alv list reports.
regards
vijay
2006 Jan 25 4:16 AM
hi rani,
yes u r right there is length limitation with reuse_alv_commentary_write.
so for printing long texts u can directly use the write statement in top of page.
but for using write statements directly, u have to set print paramters.
1. IF U ARE USING SLIS TYPE in SLIS_PRINT_ALV, u have reserve_lines. IF U R USING LVC in LVC_PRINT u have reserve_lines.
U declare a variable of type SLIS_PRINT_ALV OR LVC_PRINT
now var-reserve_lines = (some number)
2. NOW IN GRID DISPLAY OR LIST DISPLAY u pass the print parameters , means u will find a parameter IS_PRINT
now PASS THE VARIABLE TO IS_PRINT.
3. now if u write "write" statements in top_of_page or end_of_page, it works.
NOTE: if u are using GRID DISPLAY, u cant see the top of page or end of page normally. but u can only see in print preview.
IN LIST DISPLAY U CAN SEE.
2006 Jan 25 4:51 AM
Hi Rani,
1. if we use alv list thru Fm,
then we can use simple WRITE statements
for writing headers at the event TOP_OF_PAGE.
(in that case, commentary concept
is not required, and we can
write whatever we want with simple WRITE statement)
regards,
amit m.