Skip to Content
0
Former Member
Oct 18, 2006 at 06:03 PM

READ

21 Views

Hi all

Im using the Read Text FM in a user exit like the code below.

The problem is when no data is found in the table STXH pops up a error msg that no data was found (a error msg from the Read Text FM).

But I want to ignore this msg and treat this case outside the FM.

Like below

call function 'READ_TEXT'

exporting

client = sy-mandt

id = 'B03'

language = p_langu

name = p_name

object = 'EBAN'

archive_handle = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER =

tables

lines = itab_lines

  • EXCEPTIONS

  • ID = 1

  • LANGUAGE = 2

  • NAME = 3

  • NOT_FOUND = 4

  • OBJECT = 5

  • REFERENCE_CHECK = 6

  • WRONG_ACCESS_TO_ARCHIVE = 7

  • OTHERS = 8

.

if sy-subrc <> 0.

  • msg

endif.

  • I need to test here if no data was found.

if itab_lines[] is initial.

message e264(zmm).

endif.

I hope you understand what I mean.

Many thanks.

Ann