Skip to Content

OSS note for READ REPORT CX_SY_READ_SRC_LINE_TOO_LONG

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 12, 2008 at 09:11 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.