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.

Similar Messages

  • 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

  • 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

  • How to use Variable in message mapping

    Hi Experts,
    I have some problem using variable in message mapping.
    In one message mapping, since a block of logic is repeated for several fields, then i tried to use a variable instead.
    the repeated logic is: first if condition, then use a udf to form a queue which will be suppressed by its father node.
    i tried to assign the result queue to a variable after the UDF execution. (this variable is created after the father node)
    I am wondering is there any restriction of using variable?
    Can we assign the whole queue to a variable?
    Can we use UDF during the process of assigning value to variable?
    thanks in advance.

    I dont think you can assign a queue to a variable,I am not 100% sure, . and there is no restriction to useing a Zvariable, only u can use it after you declare at some parent level.
    Yes you can use a UDF in the process of assigning to a Zvariable.
    Check out this link and read the comments of the blog.
    SAP PI 7.1 Mapping Enhancements Series: Using Graphical Variable
    /people/william.li/blog/2008/02/13/sap-pi-71-mapping-enhancements-series-using-graphical-variable
    Edited by: Saiyog Gonsalves on Nov 6, 2010 6:40 PM

  • 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

  • Using save_text to change long text of sales

    Hi All,
    I am trying edit the long text on sales order header using FM save_text , But it does not work ,
    the fm is returning subrc  value 0 but the long text does nnot change i have also used commit_text .
    data td1 type thead .
    data : tdlin1 type table of tline.
    data : wa_tdlin1 like line of tdlin1.
    td1-TDOBJECT = 'VBBK'.
    td1-TDname = '188238'.
    td1-tdid = '0002'.
    td1-tdspras = 'EN'.
    td1-tdtxtlines = '1'.
    wa_tdlin1-TDformat = 'U1'.
    wa_tdlin1-tdline = 'this chnaged by vinay to test'.
    append wa_tdlin1 to tdlin1.
    CALL FUNCTION 'SAVE_TEXT'
    EXPORTING
       CLIENT                = SY-MANDT
        header                = td1
      INSERT                = ' '
       SAVEMODE_DIRECT       = 'X'
      OWNER_SPECIFIED       = ' '
      LOCAL_CAT             = ' '
    IMPORTING
      FUNCTION              =
      NEWHEADER             =
      tables
        lines                 = tdlin1
    EXCEPTIONS
       ID                    = 1
       LANGUAGE              = 2
       NAME                  = 3
       OBJECT                = 4
       OTHERS                = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'COMMIT_TEXT'
    EXPORTING
    object = 'VBBK'
    id = 'ZINT'
    language = sy-langu.

    Hi Guys ,
    I figured out the problem and its working now .
    Cheers
    vinay

  • 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.

  • Using paragraph format for long text...

    Hello,
    When I try to print the long text using include then
    it starts printing from the very first line.
    But I want to use some paragraph format for it. How can I use it because I am using
    /: INCLUDE '200007200000100' OBJECT AUFK ID KOPF
    So where do I mention the paragraph format in the tag column becaue I am already using /: controll command in font of the include ?

    Check this thread...
    SAPScript - Standard Text
    It looks like the PARAGRAPH P2 statement can do that declaration, on the subsequent line.
    This website also has some good examples:
    http://www.henrikfrank.dk/abapexamples/SapScript/symbols.htm
    Cheers,
    John

  • Using CATT to update Long Text in Info Records

    I am in a 4.7 environment, and trying to use CATT to update Purchasing Info Records (PIR) to include Long Text.  Does anyone know how I can get the script to work with long text that changes for each PIR?  I have tried several times, but can only get it to work with a single text entry.  Any help would be greatly appreciated.
    Cathy

    Hello Cathy,
    I use tcode OMQ3 to transfer texts. It took me awhile to figure out the easiest way to use and find it very simple now. Read the program documentation on how to use.
    Hope this helps.
    Cheers !

  • Use SQL to get long text

    Hi,
      Is it possible to retrieve the long text in STXH and STXL by SQL instead of READ_TEXT FM??  How can i covert the HEX text back to normal text??
    Regards,
    Kit

    Hi,
    1. Only the way to Read long text is use the function module ‘READ_TEXT’ for which u need to pass TEXTOBJECT, TEXTID, TEXTLANGUAGE AND ONEMORE(I FORGET).
    Because the STXL and STXH these tables are cluster tables in which data stored in ‘LRAW’ field which is in RAW format which u can not understand and our normal SQL can also.
    2. so u can read most of cluster tables by Function modules only.
    3. u can modify or saved by ‘save_text’

  • 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.

  • I can't use my iPad message for texting.  Am I required to have an iPhone to use this service?

    I used to have an iPhone but switched to the dark side and went with a Samsung Galaxy Zoom (yes an android)  I used to be able to receive and send text on my iPad.  I no longer can receive text.  Am I required to have an iPhone to do so?  I backup my iPad on iCloud and have my email associated with it.  But everytime I go to text I get an error message.

    and other people who text me their messages show up on my iPad.  But there are others who are not showign up on the message when they send to me.  So puzzled as to why I can't send out and why some messages come through iPad and others do not.

  • How to use variables in the mail text while sending mails through workflows

    Dear All,
                   I had prepared a workflow in which i am sending mail to a administrator if personnel data of any employee is changed.But i want to send the personnel no of employee whose data have been changed.How can i send this personnel no in the mail.
                  Points will be rewarded for useful answer.

    Hi Anand,
    You have the "EmployeeNumber" field in the event container. Pass this into the workflow container by defining a Workflow Container element and subsequently use this container as a variable in your email using insert fields option and you will have the PersonNumber visible in your mail sent to the administrator.
    Regards,
    Karthik

  • 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.

  • Use of long text in maintenance item

    Hi Experts ,
    What  is use of long text in maintenance item, Which  T code is use for to create long text for maintenance item
    With best regards,
    AVI DDS.

    hi
    if you have maintained the tasklist ,i think it will copy the maintenance item short and long text to the maintenance order or notification created
    regards
    thyagarajan

Maybe you are looking for

  • Problems to install OS X Lion

    I just buy on app store the new OS X lion and im having problems to install it on my mac book air. Someone can help me ? When i follow the instruction it stop on the windows saying " selected the disque"  but i can't select anyone , i don't undersand

  • Running a batch file

    String path = ""; path = "cmd /c start FCall.bat"; Runtime rt = Runtime.getRuntime(); Process proc = rt.exec(path); //proc.destroy() ; The code works fine, however, I need some help in exiting the command window. After executing the batch file the wi

  • I reset my MacBook pro and a symbol pops up that looks like a file with a ? In the middle of it. Does anyone know what this means?

    How do I fix this?

  • Java Program in Different Operation Systems

    Just one question? can I use a java program (.jar) compiled in windows, in my solaris only by copying the .jar , or do I need to compile it with the solaris SDK? Thanks in advance for your help and sorry for my ignorance. Javier

  • Replication on 9i

    Hi all, I'm new to the replication problem but dealing with Oracle development for some years now. My current problem is the following: - I have a "productive" database which I need to replicate. - Both databases are in 9i (9.2) - Most statements on