Skip to Content
1
Feb 02, 2023 at 11:02 AM

How to know which field failed read statement?

57 Views

Hi,

If we read an internal table with multiple keys and the statement fails to read, how can we know which key failed the statement.

Ex: READ TABLE itab INTO wa_tab

WITH KEY key_1 = X

key_2 = Y

key_3 = Z.

The itab consists of key_1 'X', key_2 'Y' but there is no key_3 'Z'. Hence 3rd key failed the statement.

I know we can look at itab manually comparing the field value (or) we can also know by reading the 3 keys individually.

What if there are 100 keys that cannot be checked manually (or) can't check with 100 Read statements.

Is there any way to know this?

Thanks.