CodeProfiler 警告 where 子句中的否定条件

Negative condition in where clause alerted by CodeProfiler

我用 CodeProfiler 检查了一份 ABAP 报告,我收到了一条关于 where 子句中否定条件的消息。

我不知道我应该如何从 where 条件中避免 '<>' 子句。我试图从字段 augbl 中删除条件并在 SELECT 语句后删除不必要的记录,但我收到了一个转储 tsv_tnew_page_alloc_failed.

我的想法是找到一个 pragma 表达式来跳过 CodeProfiler 检查,但我没有找到任何东西。

你能帮我用 pragma expression 或其他解决方案吗?提前致谢!

源代码:

试试这个。

Delete lt_step2 where opbel = ''.
IF lt_step2[] is not initial.
  Select augbl as opbel gpart vkont vtref hvorg tvorg
    into lt_part
    from dfkkop
    for all entries in lt_step2
    where augbl = lt_step2-klaeb.
ENDIF.