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: 

OSS note for READ REPORT CX_SY_READ_SRC_LINE_TOO_LONG

former_member184551
Contributor
0 Kudos
547

Hi Guys

I am sure many of us have faced this problem before while using classical ALV display func modules.

I am pasting the error analysis

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CXSY_READ_SRC_LINE_TOO_LONG', was_

not caught in

procedure "KKKB_FIELDCAT_MERGE" "(FUNCTION)", nor was it propagated by a_

RAISING clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

There was an attempt to read program "ZU1HAP_IC_REVAL" from the database._

The READ REPORT statement allows you to copy a program text into an

internal table. The occupied line length in the program text must not

exceed the width of the internal table.

The internal table "\FUNCTION=KKKB_FIELDCAT_MERGE\DATA=L_ABAP_SOURCE[]" is 72_

characters wide. The program line is

84 characters wide.

The Question is , is someone aware of an oss note that take care of this problem? I am looking in the marketplace but havent found something usefull as of now.

Thanks for reading

Rgds

Sameer

1 ACCEPTED SOLUTION

Former Member
0 Kudos
130

If the length of line in the abap code exceeds 72 characters you will get that error.

i could see that in your code a line has 84 characters.

do this,system will automatically format the exceeded lines.

Utitlites ->Settings->ABAP editor ->editor 
Check  Downwards-comp line length 72.

1 REPLY 1

Former Member
0 Kudos
131

If the length of line in the abap code exceeds 72 characters you will get that error.

i could see that in your code a line has 84 characters.

do this,system will automatically format the exceeded lines.

Utitlites ->Settings->ABAP editor ->editor 
Check  Downwards-comp line length 72.