Error:CX_SY_READ_SRC_LINE_TOO_LONG


Error:CX_SY_READ_SRC_LINE_TOO_LONG
2011年09月23日
  在ALV程序中,当使用"REUSE_ALV_FIELDCATALOG_MERGE"时,常常会遭遇如下的错误:
  Error analysis
  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 "ZBRYANT_TEST10" 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
  80 characters wide.
  其实注意一下Error analysis里的内容就很容易发现错误的原因了,原来错误源自程序代码有一些行的字符超过了72个,如此一来,solution就有了
   Solution:查找程序代码,将一行多余72行的代码做调整...

猜你喜欢

转载自fqjho71j.iteye.com/blog/1359371