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

ALV

Former Member
0 Likes
594

I am using a ALV to display data.

for that i am using the functionmodule REUSE_ALV_FIELDCATALOG_MERGE

and REUSE_ALV_GRID_DISPLAY

but while run the report at REUSE_ALV_FIELDCATALOG_MERGE its going to dump and the dump error is

An exception occurred. This exception is dealt with in more detail below

. The exception, which is assigned to the class 'CX_SY_READ_SRC_LINE_TOO_LONG',

was neither

caught nor passed along using a RAISING clause, in the procedure

"K_KKB_FIELDCAT_MERGE" "(FUNCTION)"

.

Since the caller of the procedure could not have expected this exception

to occur, the running program was terminated.

The reason for the exception is:

You tried to read the program "ZHR1174R_MD" from the database. The READ REPORT

statement allows you to copy a program's source code into an internal

table. The lines of source code must not be longer than the width of the

internal table. The internal table is 72 characters wide. The source

code line is 126 wide.

any one help me how to resolve this problem

5 REPLIES 5
Read only

Former Member
0 Likes
554

Hi

Check the READ REPORT command which is used to read the report program "ZHR1174R_MD" from the database.

something wrong with the structure of the Program

make sure that the Line-Size in the report should be nor more than 72 characters. it seems there is some big line of code in the report.

So see that every line is not more than 72 char,

and run the report.

Reward points if useful

Regards

Anji

Read only

santhosh_patil
Contributor
0 Likes
554

Hi,

use the FM <b>SVRS_GET_VERSION_REPS</b> to get the source code of the report . It may help u.

-


Patil

Read only

Former Member
0 Likes
554

I have the same issue. We are using the new version of the ABAP Editor which I believe allows more than 72 characters in each line.

The function module K_KKB_FIELDCAT_MERGE has the code "read report l_prog_tab_local into l_abap_source", and the structure l_abap_source is only allowed have max 72 characters per line.

I am about to log a message to SAP....

Read only

0 Likes
554

Hello,

I have exactly the same problem.

Did you open an OSS-message?

If yes- how is an answer?

It could not be a solution that I should set up the editor back to 72 charackters.

Any case it will be a not general solution.

If you whant you can answer me to the adress golovtchiner.vladimir@ergopharm.de

best regards

Vladimir

Read only

Former Member
0 Likes
554

Hi,

You should use:

Submit report instead of read report....

Submit report runs the external report that you have previously written.

If I understood the problem as you mean, the solution is this.

Reward all answers:)