Is it possible to cause program dump using BINARY SEARCH in READ statement in ABAP ?
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.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.