Writing an excel into message long text of se91

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

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

Similar Messages

  • Using variables in message long text ( SE91)

    Hi everyone,
    Does anyone know how we insert the variables passed in the message can also be used to be printed in the long text as well.
    Suppose , say
    message e000 with a b c d.
    where a ,b , c and  d are the variables...
    How do i use these inside the long text.

    message e000 with 'text' '&variable&'.
    To create a message long text in SE91:
    Select to switch to change mode.
    Place the cursor on the corresponding message.
    Click the Long text pushbutton.
    This starts the SAPscript editor.
    Enter the long text.
    Carry out a check in SAPscript editor.
    Save your data.
    eg: create a msg like this.
    Please enter another value. The value may be &.
    then in pgm do this.
    MESSAGE i014(msg_class_name)  WITH variable_value.

  • Database Table where modifications to message long text are stored (log)

    Hi,
    As per manual correction mentioned in SAP note 1144291,
    we have changed the long text for message XC092 by modification of the long text.
    This note 1144291 is a pre-requisite for SAP Note 1310808.
    After the notes were implemented, it is noticed that message CURTO1055 has incorrect information in its long text. This is because, the variable in the long text are not correctly defined in the long text.
    Both the messages XC-092 and CURTO1-055 are SAP standard.
    The error for CURTO1-055 can be rectified by modification of the long text and maintenance of the correct variables.
    However, my question is:
    Where do we check the log for document modifcation for a message long text.
    I have found the logs relevant to my modification in table DOKHL and DOKIL.
    But in which table do we get all of the foll. data:
    - Message class
    - Message number
    - Modification name
    - Modification created by
    - Modification done on
    - Last changed by
    - Last changed on
    Kindly help. A <removed by moderator> solution would be really helpful.
    Best Regards,
    Smruthi
    Edited by: Thomas Zloch on May 5, 2011 12:07 PM - urgency reduced

    Hi Smruthi,
    The modification changes would be in the SMODILOG table. Please note this is a core basis table and should not be changed, however to best find your changes search under the TRKORR field with the relevant tp request.
    Best regards,
    Derrick Hurley
    Development Workench

  • Custom Messages Long Text not appearing

    Hi Everybody!
    We are having a problem displaying the long text of custom messages.
    After we click on the "More Information" link beside the message short text, we should get a pop-up message with the long text.
    Instead, we get a pop-up message showing an internet explorer 400 error.
    We are OK displaying long text of standard messages. Should we do something extra to display long text of custom messages?
    Thanks
    Gabriel

    Hi Atul,
    Regarding the long-text option, yes, I have marked: The "Self-Explanatory" checkbox is not checked.
    Here is the source code!
    ** VARIABLES **
      DATA: t_partner          TYPE TABLE OF bbp_pds_partner,
            x_partner          TYPE bbp_pds_partner,
            u_vendor_set       TYPE TABLE OF bbp_vendor_getlist_s,
            x_vendor_set       TYPE bbp_vendor_getlist_s,
            w_xfeld            TYPE xfeld,
            e_message          TYPE bbp_smessages_badi,
            w_guid_crmt_object TYPE crmt_object_guid,
            w_guid_bbp_guid    TYPE bbp_guid,
            w_partner_no       TYPE  bu_partner_guid,
            w_nombre           TYPE bdl_logfun,
            w_process          TYPE bbp_proc_type,
            w_status           TYPE xfeld,
            w_header           TYPE bbp_pds_po_header_d.
        CALL FUNCTION 'BBP_PD_PO_GETDETAIL'
          EXPORTING
            i_guid          = iv_doc_guid
            i_with_itemdata = 'X'
          IMPORTING
            e_header        = w_header
          TABLES
            e_partner       = t_partner.
        IF iv_cv_updated_active_doc = space.
          w_guid_bbp_guid   = iv_doc_guid.
          w_guid_crmt_object = w_guid_bbp_guid .
          LOOP AT t_partner INTO x_partner WHERE partner_fct = '00000019'.
            w_partner_no = x_partner-partner_no.
    *     This function check if the partner is valid.
            CALL FUNCTION 'Z_BC_BLOQ_GET'
              EXPORTING
                iv_bu_partner_guid = w_partner_no
              IMPORTING
                ev_xfeld           = w_xfeld.
            IF w_xfeld IS NOT INITIAL.
    *  Get the name of the vendor.
              CALL FUNCTION 'BBP_VENDOR_GETINFO'
                EXPORTING
                  partner_guid       = w_partner_no
                  x_with_name        = 'X'
                  x_show_inv_parties = 'X'
                  purch_pd_org_type  = 'O'
                TABLES
                  vendor_set         = u_vendor_set.
              READ TABLE u_vendor_set INTO x_vendor_set INDEX 1.
              CLEAR e_message.
              e_message-msgty   = 'A'.
              e_message-msgid   = 'ZSRM_ERRORES'.
              e_message-msgno   = '005'.
              e_message-msgv1   =  x_vendor_set-partner.
              e_message-msgv2   =  x_vendor_set-vendor_name.
              e_message-msgv3   =  x_vendor_set-vendor_no.
              APPEND e_message TO et_messages.
            ENDIF.
            CLEAR x_partner.
          ENDLOOP.
      ENDIF.
    ENDMETHOD.

  • Apex Report to Excel Problem in long text data in one cell

    Hi
    Using apex 3.1, I have created one sql Report based on UNION.
    Report has 10 rows & 2 columns only. first column contain title & second Column display values.
    9 rows contain numeric value (converted to char) one last row display Remarks (lot of text).
    When stored in excel last line display data in single line.
    ex
    col1 col2
    A1 456.12
    A2 789.165
    B1 784.126
    B2 456.1
    C1 0
    C2 1
    D1 0
    D2 2
    E1 34.23
    E2 This is row containing long text. This is row containing long text . This is row containing long text.........
    Due to this Report does not fit on one A4 size Paper for printout . Any Solution.

    Hi,
    There's a solution in Excel... Select the cell, select Format, Cells from the menu and select the Alignment tab - tick the "Wrap text" option.
    Obviously, that would require a manual action by the user and would be after the export has taken place.
    Andy

  • Message long text variable replacement

    Hi,
    I hope this question is not considered too basic, but the documentation I found does not provide a solution:
    We created a message where we want to display quite a lot of information.
    So we concatenated some information and altogether gave a text quite short so that the whole message fits in the status bar area.
    In the long text, I would like to explain the information given in the for message variables in more detail.
    According to documentation, we can use & & & & or &1 &2 &3 &4 in the short text but &V1& &V2& &V3& &V4& in the long text.
    When clicking the message, The long text display pops up and shows the short text with message variable values but in the explanatory long text &V1& &V2& &V3& &V4& is not replaced.
    I.e.
    Mat/Plt/Sto 1234567/1000/12
    should be extended in long text to
    Material / Plant / Storage location 1234567/1000/12 ...
    but is displayed as
    Material / Plant / Storage location &V1& ...
    Can I use the message variables only once, either in short or in long text?
    I tried various variations without success.
    Hopefully someone with experience can give me some information on what I missed.
    Regards,
    Clemens

    Arrgh!
    Thanks Thomas and Brad.
    For my user, still the word editor was configured. With this, you definitely have to use the edit insert symbol technique otherwise &V1& results in garbage.
    Just do it as suggested, or better switch to classic text editor: Not what you see is what you get but what you type is stored as is.
    Hope I won't forget too soon.
    Regards,
    Clemens

  • Messages: long text translation

    Dear all,
    I created new messages related to t100 table and i translated them in many languages.
    Now i have to insert the long text but i don' t know the way to translate it.
    Thanks for help.
    Regards.
    Elena

    You can only able to see the long text as per your log in language.
    For more details about the custom message, kindly consult with your ABAPer.

  • How to create customized long text in IDOC status record in WE02?

    Hi,
    In WE02 you can see the status of the idoc. If you double click on the short text that is coming in the status, you can see the long text. How do i customized my long text to that screen?

    To create a message long text in SE91:
        1. Place the cursor on the corresponding message.
        2. Click the Long text pushbutton.
        3. Enter the long text.
        4. Save the data.
    Edited by: YTL on Jun 27, 2011 5:51 PM

  • Messages: replacing &V1& and &V2& in long text

    Hello,
    I have defined a message with short and long text.
    In the short text, I use &1 and &2, in the long text I use &V1& and &V2& as described in the ABAP help.
    I call the message like this:
    MESSAGE w050(zmessclass) WITH i_mess1 i_mess2
    I get replaced &1 and &2 in the short text but no replacement of &V1& and &V2&. How is it working in long text?
    Thanks
    Stephan.

    Hi,
    Instead of typing the &V1& and &V2& directly into the long text editor yourself, choose the "Insert Command" function (Ctrl-F9) instead.  In the popup for this function you will see several types of commands.  Within the "Symbols" section type in &V1& and press enter.  Repeat this for &V2&. 
    You will now see that &V1& and &V2& are highlighted (gray).  Activate your text and try again.  Your long text should now show the variables in place of &V1& and &V2&.
    Regards,
    Jamie

  • Long text for Messages

    Hi,
    I am trying to display warning message W899(V1).
    For this message, Long text is not maintained in SE91.
    Can we display Long text for such messages? My Long text content will be generated in program. So it will not be fixed always.
    Thanks in Advance
    Umesh

    Umesh,
    899(V1) cannot have a long text as it is dynamically assigned. It takes four text variables and displays them as the message. Because of the dynamic nature of the message, you cannot create one long text explaination for it. Look at the following to illustrate what I am talking about.
    MESSAGE W899(V1) WITH 'I am First Message'
                          'I am Second Message'
                          'I am Third Message'
                          'I am Fourth Message'.
    Your popup will be displayed as 'I am First Message I am Second Message I am Third Message I am Fourth Message'. Now what long text do you think is suitable for this vs. another message displayed as follows.
    MESSAGE W899(V1) WITH 'You have Entered wrong values.'
                          'See long text for an explanation.'
                          'Correct the value'
                          'and rerun'.
    Now here it makes sense to have some long text, but since you are using a message id, you cannot do. If you add long text based on the second message, then it will be applicable to first one also, where it will not make sense.
    Use function module HELP_OBJECT_SHOW. See program DEMO_DYNPRO_F1_HELP for the usage of this function module.

  • Operation Long text creation problem in IW32

    Hi experts,
    I have a requirement of showing a checklist pop up for all the new external operations in creating a MPA work order(IW32). And when the user answers the questions on the checklist, I have to copy all the questions and answers into the long text of the corresponding operation.
    The problem here is,
    for a case when the long text is not yet created for a new line item, when the pop up is shown and answers are filled, I am creating a new standard text using SVE_TEXT(setting the insert paramter 'X'), but the standard text is getting created in the database i.e a record is getting created in STXH with the text id, text name, text object of the operation. But when I go to IW32 and see the operation line it shows the create long text icon which says that the text is not created at all.
    In a case where the long text is already created for the operation, and then the pop up is shown with the questions and answers are filled, the questions and answers are copied into the operation long text which is already created. So this works fine.
    If any pointers regarding this please let me know.
    Thanks and Regards,
    Asha

    Hi,
    Try passing SAVEMODE_DIRECT = 'X' and check..
    also check if the text exists using the function module READ_TEXT once you do the SAVE_TEXT..
    Thanks,
    Naren

  • Long text editor - sign problem

    Hi,
    Currently I am facing an issue that the & sign is not being displayed correctly in the Long text editor. It is shown as '<(>&<)>' in the transaction once I input my value in the graphical editor , save and come back.
    Please help...
    Thanks
    Praneeth

    Hi Sandra,
    I am also talking about the same issue in IW32 and the internal SAP program is not doing a correct conversion due to which the wild characters are entered into the long text window on IW32.
    I received an answer for my OSS note and they say it is how the system is ..please see the comments from SAP below ...
    26.08.2011 - 12:37:23 CET - Reply by SAP             
    Hi,
    I am sorry, but the behaviour which you describe is correct.
    I will try to explain the meaning of the special characters and
    why they have to be there: In Sapscript there are some characters,
    which have a special meaning. E.g. a '&' starts a symbol, a '<'
    starts a character format, etc. So if you use e.g. a '&' in your
    text, this Sapscript needs the information, whether the '&' shall
    start a symbol or whether it shall be printed as '&'.
    So if you want to print the '&' as '&', the character must be masked.
    This is done via the characters <(>...<)>. So when you enter
    a '&' (and when it is not sure, whether it may start a symbol),
    the Sapscript internally saves the character as <(>&<)>.
    Usually this should be no problem: If you process the text via
    the Sapscript, you will not notice the masking characters. The
    graphical editor will not display them. And if you print the text
    via a Sapscript form or a Smartform, you will not see them.
    Only if you look into the internal table, which is returned
    by EDIT_TEXT or READ_TEXT, you will see the characters.
    (and the old Sapscript editor displays them, too, because it
    is displays the text in the Sapscript-internal format).
    If you process the internal table yourself, you must take this
    into consideration. E.g. if you want to convert the
    Sapscript-internal ITF format which is returned by EDIT_TEXT
    into 'normal' text format, you can use the function module
    CONVERT_ITF_TO_ASCII.
    Kind Regards,
    Marian O'Connell
    Support Consultant
    AGS Primary Support
    Visit the Enterprise Asset Management (EAM) forums:
    Enterprise Asset Management (SAP EAM)

  • Report CATS_DA, long text

    Hi.
    If I run report CATS_DA and someone have filled in something in the long text, there is a little pen and paper there.
    If I then would like to save this to an excel sheet, the long text will not follow. I can understand why, because there can be a very very long text.
    But if I would like to write my own report to get this long text out of the system, from which table, cluster or what ever, can I find the text.
    I found table STXL but it only point to a cluster line.
    Anyone having any idea?
    Thanks  //  Peter B

    Do obtain text from table STXL you can use FM: READ_TEXT.
    Get the entry from STXL that you are requiring and get the text using this FM.
    thanks.
    JB

  • Customizing SE91 Long Text  - External Link

    Somebody knows how to customize an external link in messages long text?
    i had a look in "creating additional infomation?
    but don't understand that form... i think there it is possible via command or link. but i can't find out the syntax..

    try this:
    Tip n°6: how to add hyperlink inside message long text

  • Upload long text from excel file into internal table

    I need to upload service master(T-code : AC02) data alongwith long text.Now i have data in excel as: Service no(ASMD-ASNUM) and corresponding long text for it.
    I am facing problem in getting entire lontext from excel into my internal table.It only takes till 255 characters i think.Any help in this regard woulg be highly appreciable.

    hi,
    what is the maximum length of your long text.
    and you can try with more than 255 chars. in the internal table it will take , if you want check it.
    i'm in 4.7 ,5.0 version, what about you ..
    please check , you can upload even more than 255.
    try
    regards
    vijay

Maybe you are looking for

  • AS: InDesign CS4: contents only returns displayed text

    Hello, I realize that the function "contents" returns only the text displayed within the text frame. If the text exceeds the frame (because the frame is too small), the text that exceeds is not included in the text returned by contents of text frame

  • 32" Cinema Display compatible?

    I'm planning on upgrading from my MBP (original) to a new one. I use the 32" cinema display as my monitor. Will I still be able to connect this display to the newer lines of Apple laptops? Thanks in advance.

  • PO check BADI problem

    Hi, I have this problem, When I use me21n to create a new PO everything looks fine until I've ended filling header. When I press save button I can save a document that has no items (that is bad) because before I get a popup with warnigns, errors, etc

  • A Multi Segments to ONE parameter/token ?

    I have a report which query using the (GL_Account) which is the only parameter needed, and it has a value set in the application, but my problem is that how i will assign it to a token in the report, i mean, as you know the GL_Account is a desc flexf

  • Assessing system non-use

    We have a database instance which is purely a read-only replicated system (via Streams). I've been asked to assess whether the system is being used. Normally I'm asked to tune systems to use the system less, so this is sort of the opposite. Is there