01-31-2008 4:08 PM
does somebody know where i can write via abap fm into message long text? and where those texts are stored?
01-31-2008 4:10 PM
01-31-2008 4:15 PM
ok, thats how to safe text... but i wanna know where i have to store it. that it is shown in the long text of a specific long-text message of se91
so where is the table to safe it?
01-31-2008 4:25 PM
I don't know why do you need the table...Using that functions, you don't need to care about that....Anyway....STXH is the header table and Text are stores as cluster...STXB and STXL.
Greetings,
Blag.
01-31-2008 4:55 PM
got problems with parameters:
My Message class in se91 is called "Z_MAL"
Message Number "999"
Name of short text: "TMP Long TEXT for MAL"
Self explanaty not marked.
The fm wants to have more informations?
REPORT z_tmp_write.
DATA: ls_line TYPE tline.
DATA: lt_line LIKE TABLE OF ls_line.
BREAK-POINT.
CALL FUNCTION 'READ_TEXT'
EXPORTING
* CLIENT = SY-MANDT
id = '999'
language = 'EN'
name = 'Z_MAL'
object = 'Z_MAL'
* ARCHIVE_HANDLE = 0
* LOCAL_CAT = ' '
* IMPORTING
* HEADER =
TABLES
lines = lt_line
* 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.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
BREAK-POINT.
Code Formatted by: Alvaro Tejada Galindo on Jan 31, 2008 11:58 AM
01-31-2008 5:01 PM
Object should be TEXT
CALL FUNCTION 'READ_TEXT'
EXPORTING
* CLIENT = SY-MANDT
id = '999'
language = 'EN'
name = 'Z_MAL'
object = 'TEXT'
* ARCHIVE_HANDLE = 0
* LOCAL_CAT = ' '
* IMPORTING
* HEADER =
TABLES
lines = lt_line
* EXCEPTIONS
* ID = 1
* LANGUAGE = 2
* NAME = 3
* NOT_FOUND = 4
* OBJECT = 5
* REFERENCE_CHECK = 6
* WRONG_ACCESS_TO_ARCHIVE = 7
* OTHERS = 8.
Greetings,
Blag.
01-31-2008 5:17 PM
i am still confused.
and the id is the number of the message?
object is 'text'
name is name of my message class.
and it says Text ID 999 for text object TEXT does not exist.
01-31-2008 5:25 PM
Sorry....should be like this -:)
CALL FUNCTION 'READ_TEXT'
EXPORTING
* CLIENT = SY-MANDT
id = 'ST'
language = 'EN'
name = 'Z_MAL'
object = 'TEXT'
* ARCHIVE_HANDLE = 0
* LOCAL_CAT = ' '
* IMPORTING
* HEADER =
TABLES
lines = lt_line
* EXCEPTIONS
* ID = 1
* LANGUAGE = 2
* NAME = 3
* NOT_FOUND = 4
* OBJECT = 5
* REFERENCE_CHECK = 6
* WRONG_ACCESS_TO_ARCHIVE = 7
* OTHERS = 8.
ID --> Type of message...
ST --> Standard Text...
Greetings,
Blag.