• ABAP program lines are wider than the internal table (转载)


    转载:http://blog.sina.com.cn/s/blog_4986104501015ncm.html

    错误详细描述: 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 "Z1S01R001" 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_MERGEDATA=L_ABAP_SOURCE[]" is 72
    characters wide. The program line is 93 characters wide。
    今天写个ABAP程序,一运行就荡掉,刚开始也没仔细看出错提示,以为是自己的代码写的问题,最后才搞懂,唉,原来是SAP系统不允许书写的代码长度超过72个字符,我的注释行的字符数太多了,导致了荡掉,唉,把长度很长的代码行,包括注释行,都变成72个字符以内后,就OK啦。

  • 相关阅读:
    开辟空间以存放一个结构体变量
    用结构体变量的引用作函数参数
    用指向结构体变量的指针作实参
    结构体变量作函数参数
    简单链表
    指向结构体变量的指针的应用
    结构体数组应用举例
    对候选人得票的统计程序
    引用结构体变量中的成员
    对三个变量按由小到大的顺序排序
  • 原文地址:https://www.cnblogs.com/springzt/p/10399520.html
Copyright © 2020-2023  润新知