‎2007 Apr 11 8:33 AM
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.
‎2007 Apr 11 8:44 AM
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
‎2007 Apr 11 8:35 AM
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.
‎2007 Apr 11 8:44 AM
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
‎2007 Apr 11 10:01 AM
Thanx for your suggestion. It worked perfectly. Points Rewarded.