12-12-2007 4:06 AM
Hi
I want to increase the number of characters in a line to maximum.
Ex:WRITE:/4(75) 'Number of files read ',80 variable.
actually this is truncating while creating spool request.
What is the maximum allowed? for write statement?
Thanks
12-12-2007 4:26 AM
It depends on the line size addition of the report statement of your program.
Like:
REPORT LINE-SIZE 1000.
This will allow you to write upto 1000 characters.
Regards,
Naimesh Patel
12-12-2007 4:28 AM
Hi,
Try specifying the line width in the first line of the program as below,
REPORT <name> LINE-SIZE <width>
Use system variable SY-LINSZ to find the current line width.
*If width is given as 0 then system takes a default line width.
12-12-2007 4:29 AM
hi,
There is no limit as far as size is concerned.It all depends on the output type of printer and you can also fix the size of line in report by writing this on the first line of your report 'Report ztrial line-size 200.
Reward if useful
Gaurav
12-12-2007 4:30 AM
Hi MICR,
you can write Report 'name of program' line-size 1000.
because the list is depends on the line size.
Plz reward if useful,
Mahi.
12-12-2007 4:38 AM
hi MS,
write statement only alows 256 character to be prited in a single line if LINE-SIZE not mentioned in report.
To solve the problem make a internal table of type c(256). and put write statement in loop.
eg
TYPES: BEGIN OF mytable_line,
line(256) TYPE c,
END OF mytable_line.
DATA: gt_mytable TYPE TABLE OF mytable_line,
gs_mytable type table of mytable_line with header line.
loop at gt_mytable into gs_mytable.
write gs_mytable-line.
endloop.
Message was edited by:
Sumesh Nair
12-12-2007 4:51 AM
<b>Additional info </b>
<i>Using line-size also there is some limitations</i>
The maximum line width is<b> 1,023 </b>characters.
When the LINE-SIZE is not specified, the line width of the basic list is set to a standard width based on the window width of the current Dynpro, but is at least as wide as a standard size SAP window.
12-12-2007 4:47 AM
Hi,
Do like this
REPORT z_daily_sales
NO STANDARD PAGE HEADING
MESSAGE-ID sabapdocu.
LINE-SIZE 256.
Regards,
prashant
12-12-2007 4:54 AM
it was defined for line-lsize. I want to display in the same line. I mean the text and as well as my variable should display in the same line.
how to do this from my example write stmt?
Thanks for all