简体   繁体   English

在 ABAP 中使用二进制搜索转储?

[英]Dump using BINARY SEARCH in ABAP?

Is it possible to cause program dump using BINARY SEARCH in READ statement in ABAP ?是否有可能在 ABAP 的 READ 语句中使用 BINARY SEARCH 导致程序转储?

Thank you in advance.提前谢谢你。

Yes is possible.是的是可能的。 One example can be一个例子可以是

READ TABLE itab ASSIGNING <fs_itab> WITH KEY keyfield1 = key1
                                             keyfield2 = key2
                                             BINARY SEARCH.

if there no date in you itab that you find, the field symbol was not assigned and you will get a dump.如果您在 itab 中找不到日期,则未分配字段符号,您将获得转储。

Agreed.同意。 Dump is not possible from the binary search clause alone.仅从二进制搜索子句中转储是不可能的。 However, if the table is not sorted, the search may not find the record.但是,如果表未排序,则搜索可能找不到记录。 Which could possibly lead to a dump if you don't check to make sure the record was found first.如果您不检查以确保首先找到记录,这可能会导致转储。

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

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