SAP Z38报表报错,错误如下:
错误分析
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 "ZMM_Z37_TEST" 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_MERGE\DATA=L_ABAP_SOURCE[]" is 72
characters wide. The program line is
83 characters wide.
该错误是说代码的单行字符数目超过了ALV的单行字符上限,把超过字符上限的行项进行换行即可。
可以显示ALV的限制长度线条:实用工具(Utilities)->设置->ABAP编辑器->勾上Downwards-Comp.Line lngth。