Dynamic text in Long text of message

Hi All
Can you please guide me that how dynamic text are maintained in long text of the messages.
I have used variable name between 2 ampersands 1.e. &var&..but its nt working. Where could be the mistake ?
Regards,
Shreya

The problem is... I want to show an error message. and when user double clicks on that message, a pop up screen should come showing the detailed description of that message which also contains some dynamic text...eg:
The message is "Please maintain ABC field for Company Code &1".
To this short text i want to give a long text description eg:
"For the Combination of Compay Code &2 and Account &3, ABC field should not be blank".
Dynamic text element in short text is working fine,  but in long text it is showing &2 and &3..,, ie these are not populated with values.
Where could be the mistake ?

Similar Messages

  • Creation of short text and long text?

    Hi,
    We create short text by using oe_fnd_attachments_pub.create_short_text_document and oe_fnd_attachments_pub.add_attachment API and to create long text we use fnd_documents_pkg.insert_row .
    Why is it that we have different approaches for creation of short text and long text?
    I know that oe_fnd_attachments_pub.add_attachment is used to attach a short text to some entity,but then why we dont do the same for long text?
    Please lemme knw urgently ...
    Thanks and Regards
    Amar

    Thanks for the help,
    I looked into the document and i got to know few things as to how short and long text are created, but can u tell when the records are inserted into fnd_attached_documents, because i can see that records are inserted into fnd_attached_short_text and fnd_attached_long_text, fnd_documents but i dont see any insertion into fnd_attached_documents, can u lemme knw how and when it is done?

  • XI Alert Text (Modifyinng long text using BADI ALERT_MODIFY_TEXT)

    Hello, Has anyone been able to successfully implement the BADI ALERT_MODIFY_TEXT ? 
    The export parameters of the BADI contains an internal table called CT_LONG_TEXT which I am updating with a simple "hello world" message.   However, I cannot see this text inside the long-text field in me Alert Inbox in the RWB.
    I am certain that the badi is being invoked (I am inserting an entry to a custom table to ensure that - and also, I have written out the original contents of CT_LONG_TEXT  which contains the original long text which I configured in ALRTCATDEF), however, no changes to the CT_LONG_TEXT seems to go through..
    Is there anything else I need to do?  In my ALRTCATDEF config, I have also tried to use the "Dynamic Text" option but to no avail.
    Thanks in advance for your help.

    Post Author: RScipione
    CA Forum: Performance Management and Dashboards
    I'll reply to my own post so that others might benefit from the response I got from customer support.
    It is possible to use functions in alert text, but the function must be preceeded by #f and followed by %.  So to get the example from my previous post working, I used:
    #f MetricValue(metric1.id, 0) %
    The 'f' is case sensitive by the way.

  • Field Short Text and long Text not displayed in SKA1 in Se17

    When try to extract chart of account data from SAP using Tcode se17 and table ska1. Short text and G/L acc long text are not displayed where as these are displayed when we use t code se16 and table ska1.
    My client want to use specifically se17 for extracting the data.

    Vineet,
    that's a joke isnt' it ?
    se17 is from SAP-Rel 2.1 or s.th.!
    all jokes aside - the inclusion of text table (here table skat - to table ska1) is only realized with transcations SE16 and SE16N.
    To program this inclusion to se17 is very costly - i think and a modification too!
    hope you can persuade your client
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=iwo3sshliihvcradiegqaw%3d%3d">andreas Mann</a>

  • Short Text and Long Text for WBS

    HI All,
    I am working on Interface Project where I need to enter Short description and long text for a WBS with external text.
    Let me know if any FM Module is exist for same where I can Put this Short Description and Long Text seprately for a WBS Element.
    Regards,
    Atul R. Rajmane

    Hi Atul,
    I think you can enter short description & long text seprately for a WBS while creating entire struture of project in PS only. I don't think other than PS you will be able to enter short & long text for individual WBS.
    Regards,
    Sandeep

  • ORG UNIT TEXT Datasource (Long Text)

    Hi All !
    In RSA6, for the datasource 0ORGUNIT_TEXT, I can see short & medium text. But when checked the extractor structure ROTEXTSTR1, there I can see all the three text short, medium & long text. Requirement is to bring long text from the ECC. How to bring the long text from the extractor structure in the Datasource?
    With Regards
    Reks

    Check in the Table ROOSFILED , you can see the field long text (TXTLG) --  the object selection is set to 'A'
    where A -  Field in OLTP and BW Hidden by SAP.
    Try to change the entry of selection to X and activate the entry in the table.
    Where X - Selection Adjustable, Visibility Set.
    Hope this helps...

  • Problem viewing text in long text field

    Hi,
    I have a long text in the screen and it takes 65 characters per line in the long text field. iam able to populate data in the long text field but the text in the long text field is truncating in between the words as shown below.
    SAP Business One users can access and ru
    n reports by using the UI API provided as
    part of the SAP Business One SDK and the
    Crystal Reports .Net Winform viewer. Rea
    d the new ---
    Could any one suggest how to rectify this, my requirement is to end the lines at spaces like
    SAP Business One users can access and run
    reports by using the UI API provided as
    part of the SAP Business One SDK and the
    Crystal Reports .Net Winform viewer. Read
    the new ---
    Appriciate your time.
    Reward points for useful answer.
    Thanks,
    Sreeni.

    here is how I would do it:
    1) convert the input (short text) table to string
    2) apply this code to the string:
    DATA: lv_text TYPE text40,
              lv_length TYPE i.
    WHILE lv_string IS NOT INITIAL.
      lv_length = 39.
      lv_text = lv_string.
      WHILE lv_text+lv_length(1) NE space AND lv_length GE 0.
           lv_text = lv_text(lv_length).
           lv_length = lv_length - 1.
      ENDWHILE.
      IF lv_length GE 0.
         APPEND lv_text TO lt_short_text.
      ENDIF.
       lv_length = lv_length + 1.
       SHIFT lv_string LEFT BY lv_length PLACES.
    ENDWHILE.

  • Difference betwen short text and long text

    Hi,
    what is the difference between short text, long text and variant.

    Hi,
    Short text is the short description you give for an object or field simlarly long text is the long description for a object or field.
    Short text cannot have lenght more than 20 and long text more than 60.
    Variant means for example if you give certain values as an input in one of your transaction for testing and you want the same values to be used every time you test in that particular screen, then instead of inputting the values again n again you call the variant.
    Hope this helps
    Assign points if useful
    Regards,
    venkat

  • Supplementary text VS long text (PMD)

    Hi,
    Does someone know the difference/advantages of using these document elements in PMDs? They have the same look and feel but the long text "apparently" is not supported.
    I was wondering when this has been incorporated due the lack of documentation about them Parameterizable Documentation Basics - Extended Basic Data - SAP Library
    Regards

    Long texts (the oldoriginal ones, type L) have a restricted content size (112 lines with 72 characters each) and have some issues when it comes to storing and printing text that contains line breaks. To remediate these problems, extended texts (type T) were introduced with 4.72 (for use outside of tabular structures) / 6.00. These fields are stored differently, have virtually no size restriction and preserve line breaks. For new documents, you should always use type T. Be aware that you need to use generator version 2 for this, the new texts won't work with generator version 1 (which is no longer supported anyway).

  • Adding standard Text as long text in QC01 of General data Section

    Hi ,
    I want to Append standard text in Certificate Profile Creation(QC01)of General data section. Can you suggest any Exit.
    Standard Texts created by SO10 Transaction.
          Thanks in advance

    Dear Raynard,
    Raynard Coscolluela wrote:
    As far as I can remember the Travel Request was conceptualize to be a simple ESS Form that's why most of the labels here are hard coded and didn't use OTR.
    I have to disagree. None of the labels, except this one are hard-coded via Personalization-Means and most Texts come indeed from the OTR, the Label T_ACTYPE_LABEL also has an entry in OTR (see my posts above) but is only non-changable by enhancements because the component configuration was "abused" to overload the OTR and coding in runtime. I still can't really believe this one is intentional....
    Raynard Coscolluela wrote:
    We don't recommend changing the label text in Web Portal as it can lead into inconsistency incase a new update will be > deliver by SAP into this fields. So yes this is a consider a modification.
    This will be an issue since the word "Spesen" which is a specific German one for "Expenses" is juridically wrong if used within a specific MOREI of the Public Sector. But this is another issue and I don't want to elaborate on this one here.
    Raynard Coscolluela wrote:
    My colleague who participate in this thread is still on vacation and she ask me to assist here.
    I see, and I'm glad you did assist here. Give Sally my regards.
    This one is answered then, if not really "solved". I'll close the OSS message now.
    thanks a lot and best regards,
    Lukas

  • Pass a varaible (Place holder) in the Long text of message class

    Hi Gurus,
    My requirement is to display an error messages using message class for better understanding I am using Long text will it possible to pass a variable (place holder) in the long text if possible means suggest how to pass the variable (we need to put any &1 like this similar we do in message class) or only we can display only text in long text.
    Confirm the same
    Regards
    Dhanoo

    hiii
    Create new message in message class with text like material number & is not valid
    Here  .
    & symbol is the place holder. you can dynamically pass some thing to this message. In your validation do like this.
    MESSAGE e001 WITH wa_matnr.
    Here wa_matnr is the input field value.Display this message under appropriate events.
    eg: AT SELECTION-SCREEN ON wa_matnr  in case of reports.
    reward if useful
    thx
    twinkal

  • Creation of New Message by Customer - No Long Text

    I am creating test messages as an end-user in our Service Desk. After I send the message and review it, the long text has disappeared. Has anyone else experienced this?
    Thanks.
    Jackie

    Hi Jackie,
    Is your Basis part of the message is getting created.
    Are you using the standard transaction type.
    Check the Text in the Transaction data ---Overview tab
    Both short text and long text should be present with other system details.
    Regards
    Prakhar

  • Long Text of a custom message class on a pop up screen

    Hi All,
    I have a custom message class and i have few custom messages with short text and long texts.
    Then i have a ALV report output which displays the message class and message number and my requirement is when i do F1 on the message number i want the long text to be displayed on a popup screen
    Can anyone give me an idea as how to approach this
    Thanks in advance

    hi,
    try the below code.
    DATA: HELPINFO LIKE HELP_INFO.
    DATA: LONGTEXT LIKE TLINE OCCURS 1 WITH HEADER LINE.
    DATA: EXCLUDEFUN LIKE SY-UCOMM OCCURS 1 WITH HEADER LINE.
          longtext-tdline = 'Sales Order test help'.
          append longtext.
    CALL FUNCTION 'HELP_DOCULINES_SHOW'
      EXPORTING
       CUCOL                   = 10
       CUROW                   = 3
        HELP_INFOS              = HELPINFO
       LINENR                  = 1
      TABLES
        EXCLUDEFUN              = EXCLUDEFUN
        HELPLINES               = LONGTEXT

  • 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

  • How to update CC02 Chng Header Long Text?

      Hello everyone,
         I'm trying to better understand how to dynamically update the long text in transaction CC02 from a custom program. I have debugged through CC02 and found that it uses SAVE_TEXT and COMMIT_TEXT so I too, have tried the same.
    What I've found is that as long as a Change Header Long Text was created first in CC02, the code below works successfully without issue, and is reflected when I go into CC02 - I can see my changes.
    On the other hand, if the Change Header Long Text was not already created, and I create it for the first time, this text is stored and I can successfully read it using READ_TEXT Function Modules. However CC02 does not show this saved text. Therefore, any changes made in CC02 will then overwrite my changes made in my custom program.
    I have explored the INSERT parameter of SAVE_TEXT, and pass an X if the Change Header Long Text does not already exist (Determined using READ_TEXT). However, this did not seem to yield any success.
    Can anyone explain why this works correctly when it is already created, but does not work correctly if I am creating the long text for the first time in my program?
    CALL FUNCTION 'SAVE_TEXT'
          EXPORTING
            client          = sy-mandt
            header          = lwa_thead
            savemode_direct = c_x
    *        insert          = i_new_longtxt
          TABLES
            lines           = lwa_ltext_tmp
          EXCEPTIONS
            id              = 1
            language        = 2
            name            = 3
            object          = 4
            OTHERS          = 5.
        IF sy-subrc = 0.
          CALL FUNCTION 'COMMIT_TEXT'
          EXPORTING
            object          = lwa_thead-tdobject
            name            = lwa_thead-tdname
            id              = lwa_thead-tdid
            language        = s_lang
          IMPORTING
            commit_count    = iv_updated_texts.
        ENDIF.
    Useful hints or tips will be rewarded! Thank you!

    Hi Custodio,
    Thanks for the reply. To further elaborate, the parameters I've tried passing through lwa_thead are the following:
    CONSTANTS:
        w_tdid            TYPE thead-tdid       VALUE 'AENR', " Change Master Table
        w_tdobject        TYPE thead-tdobject   VALUE 'CHANGE', " Static Object
        w_linesize        TYPE thead-tdlinesize VALUE '72', " 72 characters per line
        w_tdform          TYPE thead-tdform     VALUE 'ECM_LTXT', " Form Name in CC02 Header Long Text
       * Setup header information
      lwa_thead-tdid        = w_tdid. " AENR (Change master table)
      lwa_thead-tdobject    = w_tdobject. " CHANGE
      lwa_thead-tdname      = w_tdname. " Client + ECM
      lwa_thead-tdspras     = s_lang. " Language
      lwa_thead-tdlinesize  = w_linesize. " Characters per line
      lwa_thead-tdform      = w_tdform. " Form ECM_LTXT
      lwa_thead-TDLUSER     = SY-UNAME. " Changed by User
      lwa_thead-TDLDATE     = SY-DATUM. " Date changed
      lwa_thead-TDLTIME     = SY-UZEIT. " Time changed
      lwa_thead-TDLRELES    = SY-SAPRL. " SAP Release
      lwa_thead-TDTXTLINES  = l_records. " Number of records
    For testing purposes, I even mocked the following tran code and program name from CC02 in tdmacode1 to see if that triggered a different result. This did not visibly change anything as far as I could tell.
        w_tdmacode1       TYPE thead-tdmacode1  VALUE 'CC02SAPMC29C',
        lwa_thead-tdmacode1   = w_tdmacode1.

Maybe you are looking for

  • How to create a table with 3 inputs one of which is received from a sensor and the other 2 are constants

    i want to create a table that has 2 angles (beta and theta) that could assume values from 0 to 180º and gamma that is given from a sensor to the table at every moment... all angles depend of each other and i want a table that demonstrates that. so i

  • Hey what program would you use to make Kinetic Typography

    What program would i use and if there is one please post the link for it thanks

  • How to show blank as zero in Analyzer

    Hi Experts, I have a question regarding the display of empty cells as 0 . I use some selections and for some selections there are no data (empty cell) in the query. But I need to show this empty cells as 0. I Replaced  original key figure with a form

  • S20 - WD RE4 hdd compatibility and RAID 1

    I recently acquired an S20 and am looking to make good use of it. I am planning on using it as my home comp. I am intersted in two things: HDD compatibility - I am looking into the Western Digital RE series (non green) and wondering if these will wor

  • ICal time zone issue??

    I received a meeting invitation from exchange, my Mail on my mac correctly puled it into iCal and adjusted the time by 2 hrs (since this was sent from CA and I am in Houston at the moment, and have adjusted the time zone on my mac). So far so good. B