The ABAP program lines are wider than the internal table.

问题:The ABAP program lines are wider than the internal table.

ALV自动转换成fieldcat,通过内表转换,如果代码长度超过72位,会系统Dump。

java 复制代码
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
      i_program_name         = sy-repid
      i_internal_tabname     = 'LS_RECORD'
      i_inclname             = sy-repid
    CHANGING
      ct_fieldcat            = gt_fieldcat[]
    EXCEPTIONS
      inconsistent_interface = 1
      program_error          = 2.

原因:函数K_KKB_FIELDCAT_MERGE,365行处转换问题

rssource-line长度设定72位,因此ABAP代码宽度不能超过72字符长度

java 复制代码
* source container
  data:
        l_abap_source like rssource occurs 0 with header line.


*    class cx_sy_read_src_line_too_long definition load.
*    data: ex_too_long type ref to  cx_sy_read_src_line_too_long.
*    try.
    read report l_prog_tab_local into l_abap_source.
*      catch cx_sy_read_src_line_too_long into ex_too_long.
*    endtry.
    check sy-subrc eq 0.
相关推荐
爱喝水的鱼丶2 个月前
SAP-ABAP:SAP外网接口调用技术全景指南
运维·http·sap·abap·erp·接口调用·开发运维
ABAP 成2 个月前
SAP的WPS导出找不到路径怎么办;上载报错怎么办
abap
爱喝水的鱼丶2 个月前
SAP -ABAP:SAP 业务能力培养体系(结构化学习路径)
运维·开发语言·sap·abap·erp·业务学习
爱喝水的鱼丶2 个月前
SAP-ABAP:SAP数据库视图(Database View)详解-创建
sap·abap·erp·企业级应用·经验交流
爱喝水的鱼丶3 个月前
SAP-ABAP:SAP中REPORT程序和online程序的区别对比
sap·abap·erp·企业应用·开发运维
SAP学习成长之路3 个月前
了解 ALV 中的 field catalog (ABAP List Viewer)
开发语言·sap·abap
山茶花开时。3 个月前
[SAP ABAP] 静态断点的使用
开发语言·sap·abap
山茶花开时。3 个月前
[SAP ABAP] Debug Skill
开发语言·sap·abap
山茶花开时。3 个月前
[Dialog屏幕开发] 设置搜索帮助
开发语言·sap·abap
LilySesy4 个月前
【业务案例】F.13——SAP系统标准的清帐程序有BUG?
运维·bug·sap·abap·esb·internet服务