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.
相关推荐
duangww4 天前
SAP 生产订单状态取值
abap
爱喝水的鱼丶5 天前
SAP-ABAP:SAP性能侦探:STAD事务码的深度解析与应用实战
开发语言·数据库·学习·sap·abap
Bitter、5 天前
sap abap 批量导出表结构字段
sap·abap
sinat_375112267 天前
abap excel上传
excel·上传·sap·abap
爱喝水的鱼丶11 天前
SAP-ABAP:全面破解SAP与第三方系统集成超时难题:从应急排查到根治方案
开发语言·sap·abap·接口集成·开发交流
乐乐823411 天前
处理大数据用游标 CURSOR
abap
燚㵘䲜12 天前
CL_GUI_FRONTEND_SERVICES常用method
abap
xlxxy_16 天前
abap 批量创建供应商
运维·开发语言·sap·abap·pp·mm
淋了一场太阳雨17 天前
ABAP 使用函数获取替代(Substitution)值
sap·abap·函数·替代·subsititution
爱喝水的鱼丶18 天前
SAP-ABAP:在SAP世界里与特殊字符“斗智斗勇”:一份来自实战的避坑指南
运维·服务器·数据库·学习·sap·abap·特殊字符