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: 

Error "READ_REPORT_LINE_TOO_LONG" at a report

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

former_member194669
Active Contributor

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

4 REPLIES 4

former_member194669
Active Contributor

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

naimesh_patel
Active Contributor

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

Former Member

Hi,

Try this.

Open your report code.

UTILITIES->SETTINGS....

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

Regards.

baraklejuriste60
Discoverer
0 Kudos

My problem was a comment exceeding 72 characters. just have to split the line.