‎2008 Aug 14 8:53 AM
I am displaying output in output list. Each record has a length 600. So in output it is displaying only 255. How can I display length 600 in output. Already I declared output field as u201Coutput type stringu201Du2026Even though it is not displaying 600 length..
Please help it out.
Thanks
‎2008 Aug 14 9:11 AM
hi,
if your output list has a length of 600 characters,declare a variable with length of 600 characters.
eg:
data : v_length type char600.
once you declare this varible pass on the output list to this variable then you will get the entire output.
hope this helps.
Thanks,
rashmi
‎2008 Aug 14 8:56 AM
Hi
You can split the text in 2 or three and display in three cols.
Sridhar
‎2008 Aug 14 9:01 AM
Hi KS,
declare a new variable as char length 600...
and then pass the value to it ,,for dispaly...
as
data: g_value(600) type c.
thnx
Rohit
‎2008 Aug 14 9:11 AM
hi,
if your output list has a length of 600 characters,declare a variable with length of 600 characters.
eg:
data : v_length type char600.
once you declare this varible pass on the output list to this variable then you will get the entire output.
hope this helps.
Thanks,
rashmi
‎2008 Aug 14 9:15 AM
Hi,
first, you should use "LINE-SIZE" value to your report declaration :
if you try this
REPORT my_report LINE-SIZE 600 .
DATA v_line(600) TYPE c .
TRANSLATE v_line USING ' .' . WRITE : / v_line .
{/code}
it will create a window 600 cols wide, but the dot line will stop at 255 chars. If you use F1 key on "LINE-SIZE", you will read :
"For very wide lists (LINE-SIZE > 255), you should consult the notes for using LINE-SIZE greater than 255. "
maybe an alv would be more suitable ?
peter
‎2008 Aug 14 9:23 AM
if you are writing data on to a file the trailing spaces will be cut off.
Is that your issue now?
If yes
and if you want to have 600 characters
declare the variable with length 602
for the last 2 characters put cl_abap_char_utilities=>cr_lf.
clear the last but one character
and
TRANSFER record TO file_name NO END OF LINE.
‎2008 Aug 14 9:27 AM
hi there,
DATA: BEGIN OF gt_outfile OCCURS 0,
outarea(5000),
END OF gt_outfile.
and move the record
for eg:
gt_outfile = <record1>
append gt_file.
Hope this helps
thanks