Re:  texteditor

Hi,
       I written the code for texteditor . I want to save my texteditor values into the standard texts. And i know how to save the texts into sap by using read_text and save_text. But problme is that, as per my requirement text object is not avaialble for my requirement. what the objects,id i have to choose. my header data is some string. can i create my new object and id's to save my header data and etc.
rgds
p. krishna prasad

Hi ,
good question  , i never done it before but what i will say is check sample text object and it MVKE how SAP is doing , then u will get some idea.
from SE75 --->create a new
Text Object----->Text ID,
so when u use SAVE_Text u have to create text Name that it
Regards
Prabhu

Similar Messages

  • Preview and Texteditor open multiple files

    Preview and Texteditor often open multiple files when I only clicked a single file. It seems to open one or more previously opened files at the same time. Is this a bug, or can I disable this behaviour somewhere?

    "Restore windows when quitting and reopening apps" worked for me. However, it will not work for any apps currently open when you change the preference. Once you quit ans recopen the app, it should work. At least mine did!

  • Disable Toolbar in custom TextEditor Control

    Dear Gurus ,
    I made a custom Texteditor control in my own screen. The problem is that i can't disable the toolbat above the control .
    Please see my code ....
    CREATE OBJECT G_EDITOR_3
        EXPORTING
           PARENT = G_EDITOR_CONTAINER_3
           WORDWRAP_MODE = CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION
           WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>TRUE
           WORDWRAP_POSITION          = 70
        EXCEPTIONS
            OTHERS = 1.
        IF SY-SUBRC NE 0.
          CALL FUNCTION 'POPUP_TO_INFORM'
            EXPORTING
              TITEL = G_REPID
              TXT2  = SPACE
              TXT1  = TEXT-001.
        ENDIF.
    Thanks a lot ....

    Hi,
    Try this code to disable your custom designed texteditor.
      CALL METHOD: editor_s->set_toolbar_mode
                       EXPORTING toolbar_mode = '0'.
    pls don't forget to place your container name inplace of mine,i.e  "editor_s".
    do rply if it's workable.
    Edited by: izullah on Feb 16, 2010 7:24 AM

  • How do I open an iWeb file with Texteditor?

    How do I open an iWeb file with Texteditor? I want to embed a midi file but I don't see any of the iWeb files under my document folder. Where are they and how do I open them in Texteditor? Thanks!

    first you have to publish the site. If you publish to idisk you can find the html files there and edit them there. If you publish to a folder find the file within that folder.
    you can use textedit, but check the help files to make sure you configured it properly for html.
    be aware you would have to edit the html file each time you republish the edited page.
    good luck

  • Positioning cursor in texteditor

    Hi all,
         How to set cursor in texteditor control in
    dynpro.
    Regards,
    bala

    Use the methods of class CL_GUI_TEXTEDIT.
    Try the method GO_TO_LINE.
    Regards,
    Ravi

  • How to trigger updateMarker for TextEditor from code

    I'm making my own marker. But when I change document programmatically, I couldn't trigger updateMarker. So markers're indexs don't change.Markers has not showed correctly. How to trigger updateMarker for TextEditor from code?

    Hi Viren,
    Glad that your problem is resolved.
    Help.Sap.com is the best reference: http://help.sap.com/saphelp_nw04/helpdata/en/b2/e50138fede083de10000009b38f8cf/frameset.htm
    Also check the "How-To" docs in https://www.sdn.sap.com/irj/sdn/developerareas/bi
    Bye
    Dinesh

  • Texteditor - get_text_as_r3table only copies the first line into the itab.

    Hi Folks.
    I have a Texteditor from which i want to copie the entered text into an itab.
    i defined my itab like this:
    DATA: BEGIN OF txt_tab OCCURS 0,
    line(250) ,
    END OF txt_tab.
    but now if someone writes into the Texteditor:
    Blablablabla, blabla
    blebleblebleble.
    It only copies "Blablablabla, blabla" into the txt_tab. Do i have to do it now this way?
    DATA: BEGIN OF txt_tab OCCURS 0,
    line1(250) ,
    line2(250) ,
    line3(250) ,
    line4(250) ,
    END OF txt_tab.
    or is there another way? thx for all answers!

    solved the problem by myself... damn i was stupid ^^
    i just had to loop over the itab like this x(
    CALL METHOD obj_texteditor1->get_text_as_r3table
        IMPORTING
          table                  = txt_tab[]
        EXCEPTIONS
          error_dp               = 1
          error_cntl_call_method = 2
          error_dp_create        = 3
          potential_data_loss    = 4.
      IF sy-subrc <> 0 AND sy-subrc <> 4.
        MESSAGE 'Fehler' TYPE 'E' DISPLAY LIKE 'I'.
      ENDIF.
      LOOP AT txt_tab INTO wa_txt_tab.
        CONCATENATE wa_fftxt-reason wa_txt_tab-line INTO wa_fftxt-reason SEPARATED BY space.
      ENDLOOP.
    so sorry for robbing your time
    Edited by: rafe b. on Nov 19, 2009 3:37 PM

  • Opened an Apple binary property list file with Texteditor

    Hello,
    i made the mistake opening an Apple binary property list file with Texteditor made a change and save it, now the file is corrupted. I should have used bbedit or textwrangler in stead but thats to late now.
    Is there a way to convert the file back to the previous state?
    when i open a similar file in textWrangler i get a xml file, when i open the other one textwrangler / bbedit gives the error "An unexpected I/O error occurred (MacOS Error code: -36)"
    i have undone the changes i made in Texteditor and saved it again, no result. I have no backup.
    Please help
    Thanks
    Marco

    Recovering an edited file which has been saved is in general (so long as no backup is generated) as difficult as recovering a deleted file (if not more so).
    Depending on which plist file you are referring to, it is often possible to just remove the corrupted file and the program which requires it will rebuild it upon its next launch (albeit likely without preferences saved).
    You could try that or let us know which plist you corrupted for more help.
    Best REgards,

  • Failed to load Main-Class manifest attribute from TextEditor.jar

    Hi, I'm trying to make a JAR file containing a Java application that I can run by double-clicking under windows.
    Everything works fine, except I get the error "Failed to load Main-Class manifest attribute from TextEditor.jar"
    I have tried to set up my manifest file to contain the Main-Class attribute. Eg:
    Manifest-Version: 1.0
    Main-Class: texteditor/TextEditorClass.classBut I get the error:
    java.io.IOException: invalid manifest formatIf I include a Name: header...
    Manifest-Version: 1.0
    Name: texteditor
    Main-Class: texteditor/TextEditorClass.class...then the manifest is used, (and I can even see my Main-Class attribute within the JAR), but if I double-click the JAR or use "java -jar TextEditor.jar" from an MSDOS prompt, then I still get the error message "Failed to load Main-Class manifest attribute from TextEditor.jar"
    I am using Java version "1.2fcs" Classic VM (build JDK-1.2fcs-S, native threads)
    How do I get the mainfest to accept the Main-Class attribute?
    thanks,
    Tim

    Thanks for the reply Kurt.
    Unfortunately I still get the same error. I have actually tried all sorts of combinations of the file with and without "Name:" and with and without .class.
    I must admit I never tried it with the Name line second like you showed, but I have now, and it gives me the same old "invalid manifest format" message.
    I was wondering if somehow I've ended up with an old version of JAR that cannot handle the Main-Class attribute. The problem is that unlike JAVA, JAR won't tell you what version it is. Any ideas how I might prove I'm running the latest version of JAR? Mind you, I get the same problem at home and at work, and my work version is the latest GenRel one so I think this is pretty unlikely.

  • HOWTO read the table columns (ALL ROWs of  Colm)and display in a texteditor

    I am trying to fetch details from VC Table to read all rows of a column. But I am able to get only one row of the column.
    Can we export or import data of  multiple rows of a column to a texteditor ???

    Hi Sandeep
    Thanks for your reply, As I understand , I have sent the element property to multiselect.
    But this is only useful when user select manually at runtime on the columns .. but I am at design time I need to pull column's all the rows using Formula, where I can get only single select at present.
    How can I do the multiselect using formula.?
    thanks in advance

  • Texteditor input textfield...

    Evening. I have been testing two things out whole day now and couldnt figure out anymore
    1. Testing the texteditor component (TE) with a self created input textfield (text_field_txt) thats loads text from database
    2. testing,  loading the .as package of the component into the movieclip
    for
    1. loading and editing the text is alright, but with few bugs which is that it doesnt remember the selected(highlight) when pushing the buttons like bold/italic or changing the font etc. and doesnt edit correctly because of this i think.....
    maybe i need to add something to the input textfield? like alwaysShowSelection, doubleClickEnable, useRichTextClipboard??? or an eventlisterner?
    no idea how and what ><
    for
    2.  when loading the .as package file in the movieclip - everthing seems work good since the input textfield is inside it. everything is editable as intended. but now what bugs me is that i cannot make the input textfield to load the text from database. since the input textfield code is inside that package ><
    and  i am to less experience to make class packages >< always get confused with public and private functions. bah : P
    i tried to change some code like TE.input_txt = myPageText;
    (where myPageText are the text that loads from database)
    but ofcurze it doesnt regonize it and gives me output error
    hmmm anyone has experience with this? option 1 would acutally suited the best for me if i can get that to work..
    but i am willing to try to learn option 2 aswell if i have tooooo

    i tried this, but it had no effect
    this sets the whole text to red color
    var fmt:TextFormat = new textformat();
    fmt.color=0xff0000;
    var tf:textfield=new textfield();
    tf.text="hello i'm a text";
    tf.setTextFormat(fmt,3,6);
    tf.text=tf.text.slice(0,4)+" something else
    "+tf.text.slice(4);
    (i'm trying to use my own TextEvent.TEXT_INPUT-handler with
    e.preventDefault(), maybe there's a better solution..)

  • How to delete texteditor value

    i have requirement to capture employee remarks on text editor.when i enter other employee id it is not deleting previous emplyee
    remarks.i want delete previous remarks.how can i achieve this one?
    i have create texteditor using below code:
    IF p_cust_cont IS INITIAL.
    CREATE OBJECT p_cust_cont
    EXPORTING
    container_name = p_cont_textedit
    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.
    MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Create obejct for the TextEditor control
    CREATE OBJECT p_text_edit
    EXPORTING
    wordwrap_mode =
    cl_gui_textedit=>wordwrap_at_fixed_position
    wordwrap_position = c_line_length
    wordwrap_to_linebreak_mode = cl_gui_textedit=>true
    parent = p_cust_cont
    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.
    MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDIF.
    kindly need your help.....
    thanks....
    Ram

    Hi,
    When ever you reach a new employee. you should refresh the content in the table you use for displaying and update the new content.
    CALL FUNCTION 'READ_TEXT'
        EXPORTING
          CLIENT                  = SY-MANDT
          ID                      = WA_HEADER_OP-TDID
          LANGUAGE                = WA_HEADER_OP-TDSPRAS
          NAME                    = WA_HEADER_OP-TDNAME
          OBJECT                  = WA_HEADER_OP-TDOBJECT
        TABLES
          LINES                   = I_LINES_OP
        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.
      ENDIF.
      IF SY-UCOMM EQ 'PRV'
      OR SY-UCOMM EQ 'NXT'.
        REFRESH G_MYTABLE.
      ENDIF.
      IF G_MYTABLE[] IS INITIAL.
        LOOP AT I_LINES_OP.
          CLEAR  WA_MYTABLE.
          WA_MYTABLE = I_LINES_OP-TDLINE.
          APPEND WA_MYTABLE TO G_MYTABLE.
        ENDLOOP.
        CALL METHOD G_EDITOR->SET_TEXT_AS_R3TABLE
          EXPORTING
            TABLE = G_MYTABLE.
      ENDIF.
    regards
    Ramesh

  • Tablecontrol as texteditor

    Hi all,
    I need to insert tablecontrol and convert the tablecontrol into texteditor and has to accept 2000 character.
    Can anyone give sample code or any documentation please.
    Thanks in advance.
    Krishna.

    hii..
    In program declare a table with field containing 2000 characters with type c.In  table control get field from program to display the empty field .For table control use demo program <b>demo_dynpro_tabcont_loop_at</b> ,<b>demo_dynpro_tabcont_loop</b>.
    regards,
    veeresh

  • TextEditor for Application

    hello,
    i am in the very need of an text editor with all the
    formatting-options like fontfamily, fontsize, bold,
    italic, fontcolor, backgroundcolor and so on. it should
    output html-code.
    does anyone of you know, where i can find an open
    source application, which i can integrate in my program?
    thanks in advance
    stefan

    hi,
    at the moment i am using a jtextpane with an htmldocument and an htmleditorkit. unfortunatly the html-code i get is not okay at all
    (random empty spaces, forgets the font-settings, etc.)
    thanks
    stefan

  • Opening Default TextEditor Independent of OS through Java Program

    Hi All,
    I need a small help, I have a requirement in my program. I need to open default Text Editor of OS through Java Program independent of OS.Now i am using java 5.0. Is this facility available in java 5.0 API or I have to use any third party API is required, if yes then please suggest�
    I apologize for my poor English...
    Thanks in Advance�
    RamaDevi B.

    The concept of a default text editor is not OS-independent. Linux doesn't have one. (Yes, a shell can have one via the EDITOR environment variable, but you can invoke a jar from a window manager's desktop without running a shell. Nor does mailcap really count, because that defines a text viewer rather than a text editor). As far as I'm aware, OS X doesn't have one. In fact, Windows is the only OS which I know to have one.

Maybe you are looking for

  • How do I create continuous dynamic fields in Acrobat Pro?

    Hello everyone, I've created a legal PDF file and I need to add some dynamic fields inside. I know how to make the fields but I would like to make it so that if there are more than one on the same line, that they will affect each other's length in ca

  • JDBC Sender Adapter for AS/400 DB2 (V5R1) Error

    Hi, I'm trying to create a connection to an DB2 database on an AS/400 (V5R1) server. First does anyone know what JDBC driver I should use for this... I am trying to use the DB2 Universal type 4 JDBC driver... But have a suspicion I should be using th

  • Reset multiple images' clipping paths to "None"

    In InDesign CS4, is there a way to check all images at once and reset their clipping paths to "none?" I work on catalogs that have several thousand photos (tif, Photoshop, and a few jpg files) in each one. We break the catalogs into approximately 10

  • New website domain name, how to redirect?

    It appears when you rename your website pages a 301 redirect will redirect to the new pages without losing your ranking in the SERPS. However, a new website registered under a new domain name with more or less the same content creates new challenges.

  • Error when saving pictures

    When I am trying to save pictures, I am having problems... When I check the jpeg box, it trys and saves the file as a pdf file, when I tried tiff, it tired to save the file as a dicom file??? anyone else having this problem???? The only function that