In built Function LINE_EXISTS() in Table Expressions

IF line_exists( lt_contact[ contact_id = 102 ] ).

              WRITE: / ‘Record exists’.

ELSE

              WRITE: / ‘Record does not exists’.

ENDIF

Contact_idContact_NameContact_Address
100MikeStreet 10
101TomStreet 14
102RichardStreet 18

The line exists condition is true as the Data record with contact_id = 102 exists in the Internal table lt_contact.

In the above case, it will not raise any runtime error such as ‘CX_SY_ITAB_LINE_NOT_FOUND’.