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

Similar Messages

  • Long text creation in custom screens

    Hi
    Can we add the functionality of adding a long text in the custom screen.
    The long text should be same as the one which SAP provides in standard transactions.
    If possible please tell me the solution.
    Thanks & Regards
    Kapil

    HI,
    yes you can add using TEXT AREA control here is the sample code.
    insert a custom control area in the screen and create a object of the text editor.
    check this code for PBO and PAI.
    here TEDITOR is the custom contorl area name on screen
    <b>MODULE PBO OUTPUT.
      IF EDITOR IS INITIAL.
    *   set status
    SET pf-status '1111'.
    *   create control container
        CREATE OBJECT TextEdit_Custom_Container
            EXPORTING
                CONTAINER_NAME = 'TEDITOR'
            EXCEPTIONS
                CNTL_ERROR = 1
                CNTL_SYSTEM_ERROR = 2
                CREATE_ERROR = 3
                LIFETIME_ERROR = 4
                LIFETIME_DYNPRO_DYNPRO_LINK = 5.
        if sy-subrc ne 0.
    *      add your handling
        ENDif.
        mycontainer = 'TEDITOR'.
    *   create calls constructor, which initializes, creats and links
    *   TextEdit Control
        create object editor
              exporting
               parent = TextEdit_Custom_Container
               WORDWRAP_MODE =
    *               cl_gui_textedit=>wordwrap_off
                  cl_gui_textedit=>wordwrap_at_fixed_position
    *              cl_gui_textedit=>WORDWRAP_AT_WINDOWBORDER
               WORDWRAP_POSITION = line_length
               wordwrap_to_linebreak_mode = cl_gui_textedit=>true.
    *   to handle different containers
        container_linked = 1.
        refresh mytable.
      ENDIF.
    ENDMODULE.                 " PBO  OUTPUT
    MODULE pai INPUT.
    case ok_code.
    WHEN 'SAVE'.
    *   retrieve table from control
    clear: txt.
          call method editor->get_text_as_r3table
                  importing table = mytable.
          loop at mytable into wa.
             concatenate txt wa into txt
             separated by '|'.
          endloop.
          shift txt left.
          length = strlen( txt ).
          ztext-CLUSTR = length.
          ztext-text   = txt.
          modify ztext.
          clear: ztext.
          refresh: mytable.
            call method editor->set_text_as_r3table
                  exporting table = mytable.
          Message s000(zwa).
    when 'DISP'.
          select single * from
          ztext
          where fund = ztext-fund.
         SPLIT ztext-text AT '|' INTO TABLE mytable.
            call method editor->set_text_as_r3table
                  exporting table = mytable.
    endcase.
    clear: ok_code.
    ENDMODULE.                 " pai  INPUT</b>
    Regards,
    Wasim Ahmed

  • Transport translations of all messages in a custom message class

    Hi all
    <u>Prerequisites:</u>
    I've created a message class nad fill it with more than 100 messages.
    I also translated all of them in another language.
    I have no access to another system to import the transport for test purposes :(.
    <u>Question:</u>
    How to create a transport for all the translations excluding the option to include them one by one in SE09->display object list
    PgmID  Obj. Type  Object name
    LANG     MESS      <message>   ?
    Is it enough to create a transport of the whole class in SE09->display object list
    PgmID  Obj. Type  Object name
    R3TR      MSAG     <message_class>   ?
    Does such transport include all available translations?
    <b>Thanks in advance for all answers! </b>

    Use SE63.
    Search forum for more related queries.
    Its advisable to search the forum before posting the queries.

  • Problem in saving long text data from custom

    Hi Expert,
    I am working on a screen exit in QM01. I have created a editor box(like the description box under Description tab in QM01) using class cl_gui_custom_container and cl_gui_textedit. I am able to create and display the text I type in the box alongwith other standard changes but if I try to change and save the text only in the custom text box, it is not getting saved. I  debugged and found out that the standard does not recognize any change in the custom controller box.
    Please suggest.
    Thanks in advance,
    Sangeeta.
    Edited by: Sangeeta on Oct 1, 2009 7:01 AM

    Solved on my own. Consider all the scenarios by Using read_text in PBO and edit_text FM in PAI. At last save_text in the PAI.

  • Issue in maintaining Long Text in Message Class

    Hi
    For Note implementation 1413492, I have to maintain long text, when I click on Long Text , I get a pop-up Create Modification , with 2 options for Template Type (1) Original Text (2) Template (With Headers)
    Can anyone let me know how to proceed further, whatever name I give for the Modification, I am getting Error Message saying 'Enhancement Name violates the namespace convention (Note 989653)', I have tried unchecking the Self Explanatory check box as well, but still I get the same error message.
    Below is the Long text I have to maintain class FR, message number 533
    7. Create new error messages in the message class FR:
    Call transaction SE91, enter the message class FR, and choose "Display" and
    then "Change". Enter the following new messages:
    Message Message short text:
    533 Error while calling RFC destination
    534 Contract Accounts Receivable and Payable is not installed in the
    system
    535 For company code & there were & data records transferred from
    FI-CA
    536 Error during data transfer from FI-CA for company code &; error
    text:
    Set the "Self-explanat'y" indicator for messages 535 and 536.
    Enter a long text for messages 533 and 534:
    Long text FR 533:
    CAUSE
    An error occurred when testing the RFC connection to Contract Accounts
    Receivable and Payable. The message text is:
    &V1&&V2&&V3&
    SYS_ADMIN
    Check the settings of the RFC destination &V4&.

    Hi Ryan,
    Extract from note 989653;
    Note:                                                                               
    The name of the modification object must start with:                                                                               
    o  'Z'/'Y', or                                                                               
    o  the customer namespace available in the system (TRNSPACE table).                                                                               
    Otherwise, message 645 will appear because the SAP namespace is not   
    permitted.                                                                               
    My suggestion would be to start the name with a Z.
    Regards,
    Nick

  • How to maintain long texts in different languages in a message class

    Hi All,
    I have maintained a message and its transaltions in some other languages in a custom message class. I have maintined the long text in English language. But I am not getting how to maintain the long text in other languages.
    Please help.
    Regards
    Kiran

    Hi Kiran,
    Good!
    In the message class corresponding to that message give the place holders &&&&.
    Like 001    &&&&
    in the program.
    Message <class>001 with text-001 text-002 text-003 text-004.
    then you could disply long text.translation takes place if u enter in different language automatically.
    thanks,
    Sunil.

  • XMES not displaying the text from message class/number

    Hi,
    I have used the operation XMES in a pcr to generate a warning when a particular wage type scenario is in play.  I am using the XMES with the parameter O so that it operates as function MESSG.  The Operation reads as: XMESOZZ001.  I also set up the short and long text for the message class in SE91.  When the payroll is processed, the warning comes through with the Pernr, payroll, period parameter and the ZZ001; however the text does not come through.  I tried also setting it up with the country message class 10 and that does not work either.  While debugging discovered that there is no coding actually moving the corresponding text to the log_msg.  Was this programming meant to be used in ECC 5.0 and on?  There are no updates beyond 4.7 so I am wondering if we are missing something in our coding that others may have or was the intention for the customer to build in its own coding?  Was anyone else able to get the actual text to display in the log??
    Thank you,
    JLM

    Hello:
    You need to use customer exit in Opertion XMES.  Go to Pe04 for XMES and look at code.  When "ZZ"  ZZ customer exit (ZZxxx).    You need to use the same in Payroll rule to pop up the message in the log as described in SE91 for custom message class.  Follow the syntax given in documentation.
    Get this done by a developer.
    Thanks
    Bhavani

  • 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

  • Get long text of a message

    I have created message class in tran. se91 and i want to get the long text of a particular message
    in these message class.
    how can i get the long text of the message dynamiclly in the program code?
    thanks in advance,
    Noa

    Hi,
    you can use Function Module MESSAGE_TEXT_BUILD  as:
      CALL FUNCTION 'MESSAGE_TEXT_BUILD'
        EXPORTING
          msgid               = g_msgid
          msgnr               = g_msgno
          msgv1               = g_msgv1
        IMPORTING
          message_text_output = g_message.
    Message text will be in g_message.
    regards,
    Neha

  • Reg:Table for Custom Messages and custom Messaege Classes

    Hi ,
    My requirement is to find out all custom messages . so can any one tell in which tables all custom messages and custom message classes are stored .
    Thanks & Regards,
    Lakshmi.

    hi,
    You can checkthese tables listed below,
      T100                             Messages
      T100A                            Message IDs for T100
      T100C                            Message Control by User
      T100O                            Assignment of message to object
      T100S                            Configurable system messages
      T100SA                           Application Areas for Configurable Messages
      T100T                            Table T100A text
      T100U                            Last person to change messages
      T100V                            Assignment of messages to tables/views
      T100W                            Assign Messages to Workflow
      T100X                            Error Messages: Supplements
      T100ARBGB                    Application Area
    But The main table for storing all the message classes and their numbers are stored in table
    T100

  • Long text in a message

    hello All,
    I created a new message in the message class ME.  I also created a long text for that particular message. But when i use the message in a program long text is not dispalayed properly. Pls give some inputs.
    Thnaks
    Durai

    The<b> long texts</b> of a document are stored in a encrypted format in the STXH and STXL tables, where STXH stores the header information of the long text like <b>TDOBJECT,</b> which indicates which text object the long text belongs to, TDID which indicates the Text <b>ID and TDNAME</b> which is the actual name of the long text.
    As these texts are stored in a encrypted format, the text cannot be read using a SELECT statement. You will have to use the function <b>READ_TEXT.</b> The easiest way of getting to know the parameter values is to go to a document, open the long text in a full screen mode. For example, when you wan to see the long text for a Purchase order, go to transaction ME23n. Assume, you want to see the parameters for the Header Text. In the first Tab Strip Control, click on the Texts tab and select the Header Text node on the left hand side, which will display the text on the right hand side. Now, double click on the text editor on the right hand side. This will open the text in the full screen mode. In the menu<b> Go To --> Header, you</b> should be able to see the values for all the three parameters we discussed above. We will have to do the same thing for whichever text parameters we want to see.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
    *   CLIENT                        = SY-MANDT
        ID                            =
        LANGUAGE                      =
        NAME                          =
        OBJECT                        =
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    * IMPORTING
    *   HEADER                        =
      TABLES
        LINES                         =
    * 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.
    reward points if it is usefull ....
    Girish

  • PC-UI : long text of messages

    On clicking the details of the messages we get only the static long text but not the messages which are collected in from other sytems say R/3.

    This is a limition with PC-UI framework. It is worked upon for the forthcoming realeases.

  • Message class as result data object

    hello brf+ users,
    is it possible to use as Result data object in a Case expression a message from a custom message class?
    thanks
    danilo

    thanks Carsten,
    my requirement can be simplified in
    IF FISCAL CODE
    equals to " " then "001" ENTRY MISSING is returned
    otherwise "000" check ok is returned.
    where 000,001 are domain values of an element (MESSAGE RESULT).
    can i use the message class as result? is there a way to anchor the result to the message class?
    thanks
    danilo

  • Error while saving Long Texts

    Hello
    We are using SRM7 Extended classic scenario.
    We don't use shopping carts, rather create POs directly in SRM which will be transferred to ECC as per the standard.
    Error:
    I am getting an error "Error while saving Long Texts" during my PO creation. I get this message in a small pop-up screen. As soon as i click ok or close the pop up screen it kicks me out of the PO creation screen back into the main SRM screen.
    When:
    During the PO Creation
    Any specific situation:
    Yes, only for Material POs
    This is happening when I am creating the PO with a Material code. I can create free text PO without any issues.
    This is a standard message and the message number is 022.
    Thaks for the help guys.

    Hi,
    To confirm can you check commeting "getOADBTransaction().commit();" gives any error message?
    If yes then you can try the following option:
    Have you checked whether the "/" is changed to "\" in the dbc file?
    In the following two entries the slash has to be made as shown below:
    APPS_JDBC_URL=jdbc\:oracle\:thin\:@(DESCRIPTION\=(ADDRESS_LIST\=(LOAD_BALANCE\=YES)(FAILOVER\=YES)(ADDRESS\=(PROTOCOL\=tcp)(HOST\=10.100.503.6)(PORT\=1521)))(CONNECT_DATA\=(SERVICE_NAME\=VIS)))
    JDBC\:processEscapes=true
    Thanks and Regards,
    Lacman

  • Printing Long text in Send Mail Task

    Hi All,
    My requirement is to print the long text of particular error message in the send mail task, which will be sent to outlook.
    for this i have an activity beforr the mail task, where i have filled the multiline parameter called 'TEXT' and this is exported to workflow also.
    In my send mail task, in the body of the message, using insert expression i have inserted the multiline container 'TEXT' with the option of line break, so it came &TEXT##&.
    But once the WF is executed , i checked the WF log and found that the mail is sent and i have checked the container 'TEXT' in my previous activity where the TEXT container has 10 lines.
    But when i checked the mail in SOST the contents of TEXT is not getting printed.
    What will be the issue?
    Thanks and Regards,
    Swaminathan

    @Rick
    How is TEXT defined in the container? Is it passed in via the binding?
    I think if at all you want to use the container element in the mail then binding is not necessary from workflow to task.
    @Swaminathan PJ 
    the multiline container 'TEXT' with the option of line break, so it came &TEXT##&.
    Try to print the entire text continuosly with out line breaks then it works.

Maybe you are looking for

  • Possible Macbook WIFI fix.  Let me know if it works.

    Try this. Disconnect all cables from your Macbook. Flip it upside down, remove the battery. Open the Macbook back up and press and hold the power button for at least ten full seconds. Replace the battery, start up, try wireless networking. This has *

  • Is there a way to make your own Invisible Shield?

    I thought I remember reading that you could by the same kind of plastic coating at art or hardware stores... and make your own, which would be cheaper. Does anyone remember this? Or am I imagining it... thanks!

  • View CLOB data in SQL Developer

    Hi, Can anyone let me know how to view CLOB data in SQL Developer 2.1. I am having images stored in a column of datatype CLOB. How to view this image. Database is 10.2.0.4.

  • Create java class/resource from binary blob in SQL statement

    Is there a way of creating a java class or resource from a binary blob in the CREATE JAVA CLASS statement? Something like: CREATE OR REPLACE JAVA CLASS USING BLOB 'CAFEBABE0000003100120A0004000D08000E07000F0700100100063C696E69743E01000328295601000443

  • Bug with binding unnamed parameters

    Bug report (I must post it in another place?). If OracleCommand.BindByName == true and any of binded parameters has empty name, ExecuteReader raises the exception: Exception AccessViolationException: Attempted to read or write protected memory. This