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: 

REUSE_ALV_COMMENTARY_WRITE length limitation

Former Member
0 Kudos
281

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

3 REPLIES 3

former_member188685
Active Contributor
0 Kudos
89

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

hymavathi_oruganti
Active Contributor
0 Kudos
89

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.

Former Member
0 Kudos
89

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.