Application Development and Automation 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: 
Read only

Output length Problem

Former Member
0 Likes
1,849

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,227

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

6 REPLIES 6
Read only

Former Member
0 Likes
1,227

Hi

You can split the text in 2 or three and display in three cols.

Sridhar

Read only

RahulKeshav
Active Contributor
0 Likes
1,227

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

Read only

Former Member
0 Likes
1,228

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

Read only

Former Member
0 Likes
1,227

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

Read only

Former Member
0 Likes
1,227

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.

Read only

Former Member
0 Likes
1,227

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