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

Source Code Longer Than Table --Dump. Wht to do?

Former Member
0 Likes
501

Hi All,

I have created a Z-subrouitne pool and coded print program with Entry rountines for smartforms in it. When I tried to maintian the output control, stating the name of program and entry rountine of it, it is throwing dump while saving.

it is saying:

<b>The ABAP source code lines are longer than the width of the internal</b>

The detail 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

"NAST_FORM_EXISTENCE_CHECK" "(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 "SAPMZMM_PRINT" 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. <b>The internal table is 72 characters wide. The source

code line is 87 wide. </b>

-


But I kept all the line (and re adjusted the longer one) within 72 char. the why am I facing this error? please suggest how to correct it.

Rewards point guranteed.

Anid.

1 ACCEPTED SOLUTION
Read only

kostas_tsioubris
Contributor
0 Likes
429

HI,

in order to be sure, open the abap editor and click Utilities->Settings and check Downward-Compat. Line Length (72). Then go to SAPMZMM_PRINT and do a pretty print or just activate it. This should be ok.

Kostas

3 REPLIES 3
Read only

Former Member
0 Likes
429

Did you adjust the Comment lines Also? If not do that and execute the program. Comment lines are also treated as a part of the source, eventhough they are not executable.

Read only

kostas_tsioubris
Contributor
0 Likes
430

HI,

in order to be sure, open the abap editor and click Utilities->Settings and check Downward-Compat. Line Length (72). Then go to SAPMZMM_PRINT and do a pretty print or just activate it. This should be ok.

Kostas

Read only

0 Likes
429

Thanx for your suggestion. It worked perfectly. Points Rewarded.