Multiple choice technology programming languages

The internal table itab1 has the following values Itab1-f1 10 20 50 30 70 .What is the output of the code? read table itab1 into v_tab index 3 binary search. if sy-subrc eq 0. write: v_tab-f1. endif.

  1. Syntax error

  2. 30

  3. Short dump

  4. No Output

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The BINARY SEARCH addition requires the internal table to be sorted by the key fields being accessed. Since the table is not sorted (values are 10, 20, 50, 30, 70), using BINARY SEARCH will cause a syntax error or runtime error. The correct approach would be to either sort the table first or remove the BINARY SEARCH addition and use a linear search. Option A (Syntax error) is correct because BINARY SEARCH cannot be used on unsorted data.