SAP text Editor

Hi all!
Can i create Text Editor in ABAP?
Thanks in advance.

Hi,
You cannot create a Text Editor. You can use one in your application. The class CL_GUI_TEXTEDIT will help you do the trick.
Regards,
Anand Mandalika.

Similar Messages

  • Insert Word or other editor as QM text editor

    How can I change the current text editor in QM to an other editor like Word.
    How could I add a link in the text editor to an other document?

    Thanks,
    But my question was to have another editor like word or notepad instead of the standard SAP text editor?

  • How to get information from a text editor in the SAP standard transactions

    Hi SAP gurus I have a requirement in which it is required to gte the information from a text editor(which is not a field) in mm02 (click on) goto Purchase Order Text  in this view there is a text editor there is some text  in te the text editor i have to get that information in a table can it be done if so please give example and steps
    Points will be given to useful information

    Ah yes, excellent question, and not really a clear cut answer. In my experience, the easiest way to find this information is to simply create the text using the standard transaction, in this case MM02.  Then go to transaction SE16, using table STXH, do a query on this table, entering your user name, and today's date as the creation date.  The results should show the text that you just created, now you can see the object, id, and the way the name is being used here. 
    I also understand that in some cases, there is a button next to the editor in the screen which gives you some idea of these values, but this is not implemented everywhere, and I believe that I've only seen this in one place, can't remember where, but the first solution above will always work for you.
    Regards,
    Rich Heilman

  • Problem in long text in SAP script editor

    Hi ,
    i am maintaining long text in SAP script editor , when i am trying to change the long text in SAP script that changes are not reflected in print preview ,for example when i am giving tabs in the script then in print preview of the PO these tabs are displayed as , , ( comma) , and underlines are not appearing in print preview.please help me on this.
    Thanks and regards.
    Rajeshwar.

    hi
    you have to install the correct printer which supports the displaying the drawings and objects/

  • New text editor in SAP

    Hi,
    SAP within material master transaction (say for sales text) provides two kinds of text editors: new text editor (where continuous lines of text can be entered (this is provided as a subscreen area when we click on a particular text id) and the traditional SAPscript editor (for this a link is provided and the SAPscript editor is opened on the new window).
    Texts are stored in text table as: TDFORMAT and TLINE. The new text editor does not distinguish between new line and continuous line. It places "/" character in TDFORMAT for new line and continuous line (i.e. part of a line which are split over to next line).
    We want to transfer this text information in IDocs. This information in IDoc is to received by the legacy application. Now within the IDoc the text messages are trasferred as chunks (FORMAT + TLINE). With no distinction being made between new line and continuous line (in the TDFORMAT "/" is stored for both of them), the legacy application will not be able to make sense out of the message received (i.e. it will not be able to combine these messages and insert newline as done in the source SAP editor).
    Can anyone suggest some way to overcome this problem.
    Any help in this regard is appreciated <REMOVED BY MODERATOR>
    Thanks and Regards,
    Gajendra.
    Edited by: Alvaro Tejada Galindo on Jan 11, 2008 6:00 PM

    Reported an OSS to SAP. Awaiting response.

  • How to provide text editor in dialog program

    i have a requirement to enter upto 300 words in a dialog box how to provide text editor in dialog program

    you can use the custom controls for the same
    check this below link may be useful for you.........
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/755b94ca5911d299af5c9604c10e27/content.htm

  • Line breaks in text editor

    Hi,
    I am facing the problem that when I read the content of the
    texteditor, store it in a javascript variable, and then write it
    again into the editor area, all line breaks (not html line breaks,
    just the line breaks for the code structure) are gone.
    For Example if the content of the Editor is the following:
    Test line 1
    Test line 5
    If I know call my function the value of the texteditor will
    be somethign like: "Test line1 Test line 5"
    I tried finding the linebreaks and replacing them (either \n,
    \r or \n\r) but had no success in doing that.
    My code of the function:
    var theDom=dw.getDocumentDOM();
    var temp = theDom.documentElement.outerHTML;
    theDom.documentElement.outerHTML="";
    theDom.documentElement.outerHTML=temp;
    So I assume Javascript and dw are using different formats,
    but I cant find much information about whats being used.
    Any help appreicated!
    Best,
    David

    Hi Brent,
    Use CHR(10) in text editor for a new line. for example(  'SAP' & CHR(10) & 'Visual' & CHR(10) & 'Composer') will display like,
    SAP
    Visual
    Composer
    Hope it helps....
    Regards
    Basheer

  • ERROR_CNTL_CREATE while calling BDC from transaction MM02 for Text Editor

    Hi Friends,
    I am using transaction MM02 when creating Purchase Order Text . Its working fine in foreground, but when I run it in background it is raising exception  ERROR_CNTL_CREATE when calling the Text Editor.
    I know in background SAPGui is not available and thats why it is raising the exception. But is there a way I can avoid it?
    Thanks in advance,
    Victoria
    Here is the dump info:
    The termination occurred in the ABAP program
    "CL_GUI_TEXTEDIT===============CP" 
      In "CONSTRUCTOR".                                                                 
    The main program was "SAPMMG01 ".                                                  
        The termination occurred in line 6 of the source code of the (Include)             
    program "CL_GUI_TEXTEDIT===============CM002"                                    (when calling the editor 60).                                                           
        The program "CL_GUI_TEXTEDIT===============CP" was started as a background job.                                                                               
    Error occurred during batch input processing                                           
    Here is the source code where the error occurs:
        1 *creates and links TextEdit control                                                  
        2 METHOD constructor .                                                                 
        3   DATA prog_id(80).                                                                  
        4                                                                               
    5   if parent is initial.                                                              
    >>>>>     raise error_cntl_create.                                                         
        7   endif.                                                                               
    8                                                                               
    9   CLASS cl_gui_cfw DEFINITION LOAD.                                                  
       10                                                                               
    11 * assign prog_id to get the frontend specific control                                
       12   if not activex is initial.                                                         
       13     prog_id = 'SAPGUI.TextEditCtrl.1'.                                               
       14   elseif not javabean is initial.                                                    
       15     prog_id = 'com.sap.components.controls.textEdit.SapTextEdit'.              
      endif.

    Dear Vicki Reed,
    I encounter same raise exception ERROR_CNTL_CREATE in MM02 while maintaining material texts in different languages.
    Can you please let me know how you resolved this issue in your case.
    Thanks in advance .
    Warm Regards,
    RajaShekar Gangula.

  • Rich Text editor in Webdynpro

    Hi,
    With the new FormattedTextView in 2004s one will be able to render xhtml compliant rich test in Webdynpro.
    This however only covers the rednering of rich text.
    There still does not seem to be a rich text editor control available for webdynpro applications, which I think might be a common requirement for document centric applications.
    I was wondering :
    1 - will there be a richt text editor control available for WDP in the forseeable future ?
    2 - if not, are there any workardounds available to allow for the generation of rich text ?

    Hi Valery,
    Well, I already thought of that kind of solution, but I do not consider it a very clean solution. I know WDP supports portal eventing. On the other side of such a scenario you could even do without a 3rd party wysiwyg editor, cause SAP does offer an html editor control in its set of HTMLB controls.
    We intend to use WDP as a UI layer on top of SAPs KM. Our scenario involves template based publishing of structured documents (we first looked at xml forms, but they showed too many limitations). The idea is to model the document structure and content at runtime as WDP context structures (based on xml schemas) and then to serialize WDP context into XML content and metadata, with KM acting as business and persistence layer. Markup and insertion of images into the different text parts of the document however has become an additional requirement, which is why we are looking for a ways to fit that in our current design.
    You could indeed think of some kind of data exchange between a regular portal component and the wdp application, but I am not too confident whether that is going to be a reliable solution.
    PS : for the serialization of WDP context, your post in a different thread on this forum helped me a lot in my first attempts to create KM documents from data wdp runtime data (context). The link provided to the online book and your little example was very welcome. Thanks for that !

  • OBJECT_OBJREF_NOT_ASSIGNED for Text editor

    We tried to use Text editor on a Screen which is RF enabled. It is working fine when we work in SAP. When this is being connected from LM01 the below error message is coming.
    Runtime error: OBJECT_OBJREF_NOT_ASSIGNED
    Exception: CX_SY_REF_INITIAL
    The code:
      IF g_editor IS INITIAL.
    *-- Create custom Container
        CREATE OBJECT g_editor_container
          EXPORTING
            container_name              = 'EDITOR'
          EXCEPTIONS
            cntl_error                  = 1
            cntl_system_error           = 2
            create_error                = 3
            lifetime_error              = 4
            lifetime_dynpro_dynpro_link = 5
            OTHERS                      = 6
        IF sy-subrc <> 0.
        ENDIF.
    *-- Create  Text Editor
        CREATE OBJECT g_editor
          EXPORTING
          style                  = 0
          max_number_chars       = 28
          wordwrap_mode          = 2
          wordwrap_position      = 14
          wordwrap_to_linebreak_mode = cl_gui_textedit=>false
          parent                 = g_editor_container
          EXCEPTIONS
            error_cntl_create      = 1
            error_cntl_init        = 2
            error_cntl_link        = 3
            error_dp_create        = 4
            gui_type_not_supported = 5
            OTHERS                 = 6
        IF sy-subrc <> 0.
        ENDIF.
    *-- Remove text editor toolbar
        CALL METHOD g_editor->set_toolbar_mode
          EXPORTING
            toolbar_mode           = cl_gui_textedit=>false
          EXCEPTIONS
            error_cntl_call_method = 1
            invalid_parameter      = 2
            OTHERS                 = 3.
    *--Remove text editor status bar
        CALL METHOD g_editor->set_statusbar_mode
          EXPORTING
            statusbar_mode         = cl_gui_textedit=>false
          EXCEPTIONS
            error_cntl_call_method = 1
            invalid_parameter      = 2
            OTHERS                 = 3.
      ENDIF.
    Can someone please suggest what is missing here.
    Thanks,
    NKumar

    Hi,
    Looking at the code the problem seems to be at:
    ==============
    IF g_editor IS INITIAL.
    Create custom Container
    CREATE OBJECT g_editor_container
    EXPORTING
    container_name = 'EDITOR'
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    create_error = 3
    lifetime_error = 4
    lifetime_dynpro_dynpro_link = 5
    OTHERS = 6
    IF sy-subrc 0.
    ENDIF.
    Create Text Editor
    CREATE OBJECT g_editor
    EXPORTING
    style = 0
    max_number_chars = 28
    wordwrap_mode = 2
    wordwrap_position = 14
    wordwrap_to_linebreak_mode = cl_gui_textedit=>false
    parent = g_editor_container
    EXCEPTIONS
    error_cntl_create = 1
    error_cntl_init = 2
    error_cntl_link = 3
    error_dp_create = 4
    gui_type_not_supported = 5
    OTHERS = 6
    IF sy-subrc 0.
    ENDIF.
    Remove text editor toolbar
    CALL METHOD g_editor->set_toolbar_mode   " This point
    EXPORTING
    toolbar_mode = cl_gui_textedit=>false
    EXCEPTIONS
    error_cntl_call_method = 1
    invalid_parameter = 2
    OTHERS = 3.
    *--Remove text editor status bar
    CALL METHOD g_editor->set_statusbar_mode   " This point
    EXPORTING
    statusbar_mode = cl_gui_textedit=>false
    EXCEPTIONS
    error_cntl_call_method = 1
    invalid_parameter = 2
    OTHERS = 3.
    ENDIF.
    ===============
    You are creating the object "g_editor" and catching the exception. I think create object for g_editor is failing and since you are not checking this it is causing the problem.
    You can fix the code as follows:
    =====
    IF g_editor IS INITIAL.
    Create custom Container
    CREATE OBJECT g_editor_container
    EXPORTING
    container_name = 'EDITOR'
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    create_error = 3
    lifetime_error = 4
    lifetime_dynpro_dynpro_link = 5
    OTHERS = 6
    IF sy-subrc 0.
    ENDIF.
    Create Text Editor
    CREATE OBJECT g_editor
    EXPORTING
    style = 0
    max_number_chars = 28
    wordwrap_mode = 2
    wordwrap_position = 14
    wordwrap_to_linebreak_mode = cl_gui_textedit=>false
    parent = g_editor_container
    EXCEPTIONS
    error_cntl_create = 1
    error_cntl_init = 2
    error_cntl_link = 3
    error_dp_create = 4
    gui_type_not_supported = 5
    OTHERS = 6
    IF sy-subrc 0.         -
    > put the below code under this if. That means the code is executed only
                                          if g_editor is created.
    Remove text editor toolbar
    CALL METHOD g_editor->set_toolbar_mode   " This point
    EXPORTING
    toolbar_mode = cl_gui_textedit=>false
    EXCEPTIONS
    error_cntl_call_method = 1
    invalid_parameter = 2
    OTHERS = 3.
    *--Remove text editor status bar
    CALL METHOD g_editor->set_statusbar_mode   " This point
    EXPORTING
    statusbar_mode = cl_gui_textedit=>false
    EXCEPTIONS
    error_cntl_call_method = 1
    invalid_parameter = 2
    OTHERS = 3.
    ENDIF.
    ENDIF.
    =====

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

  • Long text  editor called  from report

    Hi All,
    I  have a requirement of displaying long text editor(like the one used for sap script) for maintaining the details for each PO in report column.A similar example is transaction SO10.I will be thankful  if anybody can help in this regard.
    Thanks,
    Sanjay.

    Hi,
    You will have to use the FM: READ_TEXT, EDIT_TEXT, SAVE_TEXT to achieve this functionality.
    This will basically open the text editor as a pop up box ( size will be as sap script editor) for entering some comments against a Purchase Order.
    For this FMs, you 'll require Text id, text name, text object and language as parameters to be passed.
    thead-tdname = 'Purchase Order No'. " Name
    thead-tdid = 'ZQH1'.               " Text ID - E.g. To be created in your system
    thead-tdobject = 'VBBK'.   " Texts: application object
    thead-tdspras = sy-langu.       " Language Key
    Hope this helps.
    Regards,
    JLN

  • Routing long text editor change

    Hi,
    When we go to Routing long text and try to open it, it will open one word document.
    My requirement is, I want to change that word document as Notepad (text editor) for particular user.
    Please tell me is it possible to change that word doc to text doc, If yes then how to make settings?
    Regards,
    Chetan

    Hi Chetan,
    Even I have the same problem ! I had raised a SAP ticket & waiting for the response...
    Now can tell me how/what should i do to change to get a particular editor???
    Awaiting for your response..
    ~Guru

  • How to develop a rich text editor using Web-Dynpro?

    Hello Everyone,
    I am new hire,
    today I got a task from leader to develop a rich text editor using Web-Dynpro,
    Because I just finished the BC400 and NET310 training and lack of expericen in ABAP,
    Can anyone tell me the main idea to accomplish the task?
    Thank you very much.
    Best Regards,
    Derek

    Have you looked at the standard UI Element
    [FormattedTextEdit|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/44/2772f505605447e10000000a422035/frameset.htm] it's not perfect, but it does allow some simple formatting.
    Anything beyond this - you're going to need to use an Island.
    [Thomas Jung's Demo of using an Island to provide a rich text editor|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0c91fc0-932d-2c10-4ca7-f5774950c8e3]
    Cheers,
    Chris

  • Text editor change

    Hi, can anybody point me to how to change the CDE default text editor?
    It should be a simple subject, but I can't find it on the manuals.
    Thanks.-

    Hi Chetan,
    Even I have the same problem ! I had raised a SAP ticket & waiting for the response...
    Now can tell me how/what should i do to change to get a particular editor???
    Awaiting for your response..
    ~Guru

Maybe you are looking for