Hi all,
I have a requirement to read std text for the login language if no text found then it should get the text
for German lanuguage.But when i tried with debugging
its checking for sy-langu in FM read_text and the control is not coming to the next statement and displaying no text found for the language error message directly.
CALL FUNCTION 'READ_TEXT'
EXPORTING
* CLIENT = SY-MANDT
id = 'ST'
language = sy-langu
name = 'Y_TRANSPORT_RELEVANZ_2'
object = 'TEXT'
* ARCHIVE_HANDLE = 0
* LOCAL_CAT = ' '
* IMPORTING
* HEADER =
tables
lines = itab2
* EXCEPTIONS
* ID = 1
* LANGUAGE = 2.
* NAME = 3
* NOT_FOUND = 4
* OBJECT = 5
* REFERENCE_CHECK = 6
* WRONG_ACCESS_TO_ARCHIVE = 7
* OTHERS = 8
here if no text found then it should get the the text
for german language.
My problem is after this statement control not going to the next statement it directly displaying error message
no text found for the language .
Please help me regarding this issue.
regards
chandu