隐藏 ABAP 中包含的扩展程序检查错误

发布于 2024-08-24 14:37:41 字数 204 浏览 8 评论 0原文

如何阻止 ABAP 扩展程序检查 (SLIN) 报告我可能无权写入访问的包含库中的错误?

我喜欢留下尽可能少的错误和错误的扩展检查。尽可能警告,通常当我故意以可能导致警告的方式使用某些内容时,我使用伪注释(“#EC * 等)来隐藏消息。这也告诉下一个程序员我至少考虑过可能的情况 当这些语句包含在我无法控制的内容

中时,我想隐藏这些消息而不更改有问题的库/包含。

How can I stop the ABAP extended program check (SLIN) from reporting errors in include libraries that I may not have write access to?

I like to leave the extended check with as few errors & warnings as possible, usually when I intentionally use something in a way that may cause a warning, I use the pseudo comments ("#EC * etc) to hide the message. This also tells the next programmer that I at least thought about the possible consequences of using something in a particular way.

When these statements are in includes that I have no control over, I would like to hide the messages without changing the offending libraries/includes.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蓝礼 2024-08-31 14:37:41

使用SET EXTENDED CHECK OFF

 SET EXTENDED CHECK OFF.
INCLUDE: zoffendinginclude.
SET EXTENDED CHECK ON.

请记住此后尽快使用SET EXTENDED CHECK ON

编辑:从 ECC6 EHP5 开始,此声明被认为已过时。它仍然可以工作,但是如果您将其与编译指示结合使用,扩展程序检查会发出错误消息。 (讽刺吧)

Use SET EXTENDED CHECK OFF

 SET EXTENDED CHECK OFF.
INCLUDE: zoffendinginclude.
SET EXTENDED CHECK ON.

Remember to use SET EXTENDED CHECK ON as soon as possible after that.

EDIT: From ECC6 EHP5 this statement is considered obsolete. It will still work, but the Extended program check will complain if you use it in conjunction with pragmas. (Go Irony)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文