简体   繁体   English

abap运行时错误程序行太长

[英]abap runtime error program line too long

Good day. 美好的一天。 The programs function is to take an equipment number (or none), display that number with a description (or all) in alv, and then run IE03 should the user double click on 程序功能是获取设备编号(或不输入),在alv中显示该编号及其描述(或全部),然后在用户双击时运行IE03。

Program worked fine in client 110, but in 150 a runtime error happens. 程序在客户端110中运行良好,但在150中发生运行时错误。 This morning I tried to make a new program with a shorter name (only lead I had), activated it (window popped up asking me to activate the previous version as well). 今天早上,我试图制作一个名字更短的新程序(只有我所拥有的领导者),并激活了它(弹出窗口,要求我也激活以前的版本)。 That didn't work and now the original doesn't work in either. 那是行不通的,现在原始版本都不行。

The program "SAPLSKBH" is terminating because program line is too long, being 78 chars wide which is too much for the internal table "\\FUNCTION=K_KKB_FIELDCAT_MERGE\\DATA=L_ABAP_SOURCE[]" 程序“ SAPLSKBH”正在终止,因为程序行太长,为78个字符宽,这对于内部表“ \\ FUNCTION = K_KKB_FIELDCAT_MERGE \\ DATA = L_ABAP_SOURCE []”而言太大

It sounds like you are using REUSE_ALV_GRID_DISPLAY for output, is that correct? 听起来您正在使用REUSE_ALV_GRID_DISPLAY进行输出,对吗?

Check you source code; 检查你的源代码; somewhere you have a line that is more than 78 characters. 在某处您的行超过78个字符。 The function K_KKB_FIELDCAT_MERGE takes the source code of your program to produce a structure that corresponds to the table/structure you give it. 函数K_KKB_FIELDCAT_MERGE使用程序的源代码来生成与您提供的表/结构相对应的结构。 (In the old days, there was a limit of 78 characters width for a line of ABAP code, and this is an old function module). (在过去,ABAP代码行的宽度限制为78个字符,这是一个旧的功能模块)。

You can alternatively build a field catalog yourself in code, rather than use this function. 您也可以自己在代码中构建字段目录,而不使用此功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM