Skip to Content
avatar image
Former Member

Error "READ_REPORT_LINE_TOO_LONG" at a report

Hi

I have an error at a report, it's the first time that i see this error,

Erro tpo.exec. READ_REPORT_LINE_TOO_LONG

Exceção CX_SY_READ_SRC_LINE_TOO_LONG

Data e hora 12.11.2008 14:57:22

Texto breve

The ABAP program lines are wider than the internal table.

O que aconteceu ?

Error in the ABAP Application Program

The current ABAP program "SAPLSKBH" had to be terminated because it has

come across a statement that unfortunately cannot be executed.

Análise do erro

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_READ_SRC_LINE_TOO_LONG', was

not caught in

procedure "K_KKB_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 "ZRPSD_REL_RECL" 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=K_KKB_FIELDCAT_MERGEDATA=L_ABAP_SOURCE[]" is 72

characters wide. The program line is

73 characters wide.

Falta cláusula RAISING na interface

Programa SAPLSKBH

Include LSKBHU12

Linha 1

Tipo de módulo (FUNCTION)

Nome do módulo K_KKB_FIELDCAT_MERGE

Can somebody tell me how can i correct this ?

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Nov 12, 2008 at 03:00 PM

    Try in SE38utilities> setting> abap editor> Downwards Comp Line length(72) to checked and try to compile the program ZRPSD_REL_RECL and try

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 12, 2008 at 03:01 PM

    You are getting this error because some of the lines in your source code are more than 72 characters.

    It seems you are using the FM REUSE_ALV_FIELDCATALOG_MERGE with option of Internal table.

    There are some options to correct it:

    1. Make sure you have all your source code are not more than 72 characters. If program is very big than you have to work a lot in this option to make sure all lines are less than 72 characters.

    2. Create a Structure of the internal table in SE11 and use it in the Function module REUSE_ALV_FIELDCATALOG_MERGE instead of the internal table.

    3. Fill the Field catalog by directly appending entries in the FIELD CATALOG table instead of using the FM REUSE_ALV_FIELDCATALOG_MERGE. If you have lots of fields than this option is also not good.

    Regards,

    Naimesh Patel

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 12, 2008 at 03:03 PM

    Hi,

    Try this.

    Open your report code.

    UTILITIES->SETTINGS....

    Check the radio button "Default Line Length (72)" and check....

    Regards.

    Add comment
    10|10000 characters needed characters exceeded