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

read report line too long error ?

Former Member
0 Likes
3,610

hi friends.

my program allowed this error.

read_report_line_too_long

what do I do ?

help me please

hi friends.

my program allowed this error.

read_report_line_too_long

what do I do ?

help me please

7 REPLIES 7
Read only

Former Member
0 Likes
1,839

report line should be 72 chars. if it exceeds then you get that error.

i guess you are reading the report using READ REPORT.

make sure that line-size not more than 72 chars.if it custom change the code line which are more than 72chars.

Read only

Former Member
0 Likes
1,839

Try this.

In SE38,

Utilities - > ABAP EDITOR - > EDITOR - > Click on Downward - comp.line length(72).

Open Your Program,

Click Pretty Printer.

Activate your Program.

Read only

0 Likes
1,839

Thank you very much, this works great and is a quick solution to the length problem. I would like to add points for you. How do you do that?

Cindy

Read only

Former Member
0 Likes
1,839

identical error :((((

Read only

0 Likes
1,839

In that dump Screen click on debugger and send me that details.

Read only

0 Likes
1,839

Don't do any setting changes, try to modify the code if it is custom namespace.

assume this the code with more than 72chars..

read table itab into wa_itab with key matnr = v_matnr vbeln = vbeln transporting something binary search

you have to break that into two lines like the below..

read table itab into wa_itab with key matnr = v_matnr

vbeln = vbeln

transporting something binary search

where ever you find the line more than 72 chars you change it. not event comment lines should not exceed more than 72 chars.

what are you doing exactly can you let me know..

if you are using READ REPORT if you have a program with more than 72 chars length then you will end up with that error. see the standard SAP documentation

DATA prog TYPE c LENGTH 30. 
DATA itab TYPE TABLE OF string. 

prog = '...'. 

READ REPORT prog INTO itab. 

Catchable Exceptions 

CX_SY_READ_SRC_LINE_TOO_LONG 

Cause: At least one line of the source code is longer than the rows of the internal table itab. 
Runtime Error: READ_REPORT_LINE_TOO_LONG

Read only

Former Member
0 Likes
1,839

thank you very much friends.