隐藏 ABAP 中包含的扩展程序检查错误
如何阻止 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用SET EXTENDED CHECK OFF
请记住此后尽快使用SET EXTENDED CHECK ON。
编辑:从 ECC6 EHP5 开始,此声明被认为已过时。它仍然可以工作,但是如果您将其与编译指示结合使用,扩展程序检查会发出错误消息。 (讽刺吧)
Use SET EXTENDED CHECK OFF
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)