Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Writing an excel into message long text of se91

Former Member
0 Kudos

does somebody know where i can write via abap fm into message long text? and where those texts are stored?

7 REPLIES 7

former_member583013
Active Contributor
0 Kudos

READ_TEXT and SAVE_TEXT

Greetings,

Blag.

0 Kudos

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?

0 Kudos

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.

0 Kudos

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

0 Kudos

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.

0 Kudos

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.

0 Kudos

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.