Editor call

hi ,
i am new in ABAP .
any one can explain me the use of  editor call with code example.
thanks and regards,
navneeth

Hi,
it displays ur itab so u can edit and save......
Its obselete so avoid using it ........
DATA : BEGIN OF itab1 OCCURS 0,
       fld3  TYPE char8,
       fld5  TYPE char8,
       fld1  TYPE char8,
       fld2  TYPE char8,
       fld4  TYPE char8,
       END   OF itab1.
itab1-fld1 = ' 10'.
itab1-fld2 = ' 900'.
itab1-fld3 = ' apple'.
itab1-fld4 = '  14 '.
itab1-fld5 = ' 1'.
APPEND itab1.
itab1-fld1 = ' 10'.
itab1-fld2 = ' 900'.
itab1-fld3 = ' apple'.
itab1-fld4 = '  14 '.
itab1-fld5 = ' 1'.
APPEND itab1.
itab1-fld1 = ' 10'.
itab1-fld2 = ' 900'.
itab1-fld3 = ' apple'.
itab1-fld4 = '  14 '.
itab1-fld5 = ' 1'.
APPEND itab1.
itab1-fld1 = ' 10'.
itab1-fld2 = ' 900'.
itab1-fld3 = ' apple'.
itab1-fld4 = '  14 '.
itab1-fld5 = ' 1'.
APPEND itab1.
EDITOR-CALL FOR itab1.
Cheers,
jose.

Similar Messages

  • Replacing editor-call

    hi , after recently upgrading from 4.6c to ecc6.0 we have experienced various program incompatibilities. I have the following problem can anyone help ?
    I have a program that performs an editor-call for an internal table , however this no longer works.
    I have been trying to utilise the cl_gui_textedit class as per saptextedit_demo_3 and am having problems displaying the contents of my internal table within the control window. again I have tried a number of set / get methods from the mentioned class without success. I receive the message that my internal table is not of type 'C'.
    Any suggestions greatly appreciated.

    Hi thanks for your response, I have not included the specific program I wish to change as it is huge, but my initial representation to ascertain how this would work for me. I have litle 'OO' experience , so I expect glaringly obvious errors but am appreciative of any guidance.
    I have posted all of the code, as it is only a small demo.
    REPORT  Z_CF_GUI_TEST.
    data: it_mara type table of mara,
          wa_mara like line of it_mara.
    START-OF-SELECTION.
    CALL SCREEN 100.
    DATA:
    g_editor TYPE REF TO cl_gui_textedit,
    g_editor_container TYPE REF TO cl_gui_custom_container,
    g_ok_code LIKE sy-ucomm, " return code from screen
    g_repid LIKE sy-repid.
    CONSTANTS: c_line_length TYPE i VALUE 256.
    not sure what this bit is for ?
    TYPES: BEGIN OF mytable_line,
    line(c_line_length) TYPE c,
    END OF mytable_line.
    table to exchange text
    DATA g_mytable TYPE TABLE OF mytable_line.
    CLASS cl_gui_cfw DEFINITION LOAD.
    P B O
    MODULE pbo OUTPUT.
    simple selection to populate internal table
    SELECT MATNR FROM MARA INTO WA_MARA-MATNR
    WHERE MATNR = '143793914'.
    APPEND WA_MARA TO IT_mara.
    endselect.
    IF g_editor IS INITIAL.
    SET PF-STATUS 'MAIN100'.
    g_repid = sy-repid.
    CREATE OBJECT g_editor_container
    EXPORTING
    container_name = 'TEXTEDITOR1'
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    create_error = 3
    lifetime_error = 4
    lifetime_dynpro_dynpro_link = 5.
    IF sy-subrc NE 0.
    ENDIF.
    CREATE OBJECT g_editor
    EXPORTING
    parent = g_editor_container
    wordwrap_mode = cl_gui_textedit=>wordwrap_at_fixed_position
    wordwrap_to_linebreak_mode = cl_gui_textedit=>true
    EXCEPTIONS
    others = 1.
    IF sy-subrc NE 0.
    CALL FUNCTION 'POPUP_TO_INFORM'
    EXPORTING
    titel = g_repid
    txt2 = space
    txt1 = text-001.
    ENDIF.
    ENDIF.
    fails at this point, it_mara not compatible ?
    CALL METHOD g_editor->SET_TEXT_AS_R3TABLE
      EXPORTING
        TABLE           = it_mara
      EXCEPTIONS
        ERROR_DP        = 1
        ERROR_DP_CREATE = 2
        OTHERS          = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDMODULE. " PBO
    P A I
    MODULE pai INPUT.
    CASE g_ok_code.
    WHEN 'EXIT'.
    PERFORM exit_program.
    when 'CHANGE'.
    call method G_editor->set_readonly_mode
    exporting readonly_mode = 0.
    call method cl_gui_cfw=>flush.
    WHEN 'DISPLAY'.
    call method G_editor->set_readonly_mode
    exporting readonly_mode = 1.
    call method cl_gui_cfw=>flush.
    WHEN 'SAVE'.
    CALL METHOD g_editor->get_text_as_r3table
    IMPORTING
    table = g_mytable
    EXCEPTIONS
    OTHERS = 1.
    IF sy-subrc NE 0.
    CALL FUNCTION 'POPUP_TO_INFORM'
    EXPORTING
    titel = g_repid
    txt2 = space
    txt1 = text-003.
    ENDIF.
    CALL METHOD cl_gui_cfw=>flush
    EXCEPTIONS
    OTHERS = 1.
    IF sy-subrc NE 0.
    CALL FUNCTION 'POPUP_TO_INFORM'
    EXPORTING
    titel = g_repid
    txt2 = space
    txt1 = text-002.
    ENDIF.
    WHEN 'LOAD'.
    CALL METHOD g_editor->set_text_as_r3table
    EXPORTING
    table = g_mytable
    EXCEPTIONS
    OTHERS = 1.
    IF sy-subrc NE 0.
    CALL FUNCTION 'POPUP_TO_INFORM'
    EXPORTING
    titel = g_repid
    txt2 = space
    txt1 = text-004.
    ENDIF.
    ENDCASE.
    CLEAR g_ok_code.
    ENDMODULE. " PAI
    F O R M S
    *& Form EXIT_PROGRAM
    FORM exit_program.
    IF NOT g_editor IS INITIAL.
    CALL METHOD g_editor->free
    EXCEPTIONS
    OTHERS = 1.
    IF sy-subrc NE 0.
    CALL FUNCTION 'POPUP_TO_INFORM'
    EXPORTING
    titel = g_repid
    txt2 = space
    txt1 = text-005.
    ENDIF.
    FREE g_editor.
    ENDIF.
    IF NOT g_editor_container IS INITIAL.
    CALL METHOD g_editor_container->free
    EXCEPTIONS
    OTHERS = 1.
    IF sy-subrc <> 0.
    ENDIF.
    FREE g_editor_container.
    ENDIF.
    CALL METHOD cl_gui_cfw=>flush
    EXCEPTIONS
    OTHERS = 1.
    IF sy-subrc NE 0.
    CALL FUNCTION 'POPUP_TO_INFORM'
    EXPORTING
    titel = g_repid
    txt2 = space
    txt1 = text-002.
    ENDIF.
    LEAVE PROGRAM.
    Thanks again
    Regards
    Chris

  • Editor calls

    Hi
    Good afternoon everybody,
    Plz give me a short note on editor calls.
    How to maintain Transport requests.
    Thanks in advance
    Venkat

    Displays the internal table itab in an editor similiar to the ABAP Editor. You can then use normal editor functions to make changes.
    Changes to the table contents are only adopted if you save before leaving the editor.
    Sample Program:
    DATA: BEGIN OF T OCCURS 200,
            TEXT1(60),TEXT2(12),
          END OF T.
    T-TEXT1 = 'Text 1'. T-TEXT2 = 'A'. APPEND T.
    T-TEXT1 = 'Text 2'. T-TEXT2 = 'B'. APPEND T.
    T-TEXT1 = 'Text 3'. T-TEXT2 = 'C'. APPEND T.
    T-TEXT1 = 'Text 4'. T-TEXT2 = 'D'. APPEND T.
    EDITOR-CALL FOR T TITLE 'Editor for internal tables'.
    LOOP AT T.
      WRITE: / T-TEXT1, T-TEXT2.
    ENDLOOP.
    Maintaining Transport Request?
    what exactly u want? Please Clarify,
    TP is maintained in T-Code SE09, U can check for Syntax Check of the TP Objects, Create New TP and combine other TP Objects...... etc...
    Give Ratings if satisfied,
    Regards,
    Manjunatha

  • Replace EDITOR-CALL

    In one of our program in our old system(4.6C) we used EDITOR-CALL to open text editor, now we upgrade to ECC6 and now I am noticed it in the TEXT EDITOR it is not word wrapping.  the use of our EDITOR-CALL is to allow user to enter some comment, and then we have to store it for later use. Another program is reading this text , but now becasue of the word warp is not coming properly, it is storing only max 132 characters. any idea how can I fix it.

    I don't find the fix for this problem.
    I used fm  EDIT_TEXT, READ_TEXT in place of EDITOR_CALL

  • 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

  • Calling Script Editor

    Hi all,
    I have to call one script editor with my own Text-id and text-object just like to enter header text and item text in VA01 transaction. This should be happen after pressing my own function code. Is there any possibility to do this.
    Thanks in advance,
    pavan

    Hi after pressing the button on the sy-ucom call the following 2 FM in sucession
    a) EDITORCALL
    b) SAVE_TEXT with the set of lines returned from editor call.
    Hope that Helps
    Anirban M.

  • CALLING TEXT EDITOR INTO TABSTRIP.

    Hello Friends,
    I want to call text editor in tabstrip. I call the standard editor in my zprog. Using EDITOR-CALL FOR T2 TITLE 'PARA3'. Code but when this code is run it calls the editor in full screen.
    Is it possible that I can call the editor in specific tabstrip area?
    regd
    Kaustubh.

    You have to use ABAP class CL_GUI_TEXT_EDITOR for it.
    In your tabscrip subscreen create a custom container and within this custom container call the object of the text editor class.

  • How to call editor?

    Hi experts,
    I have t_txt with data type lraw. I want to store a text in that variable.
    How can I call an editor and then save the content into t_txt?

    Hi,
    Take a look at the statment EDITOR-CALL. I'm not sure if it is available in 46c. But give it a try.
    The documentation reads as follows :
    This statement displays the internal table itab in an editor similiar to the ABAP Editor. You can then use normal editor functions to make changes.
    Also check if you have the function CATSXT_SIMPLE_TEXT_EDITOR
    regards,
    Advait
    Edited by: Advait Gode on Nov 7, 2008 9:24 AM

  • Compatibility of an editor made in javascript with WebDynpro

    Currently we are using a textarea for the content for the text of a chapter in an application. Of course end-users would like to have a rich text editor since the result is stored as PDF file, so since we use MVC and BSPs our first thought was to use the BTF editor but it seems that this editor is not planned to be replaced with an equivalent in WebDynpro.
    So we have found a nice editor called FCKEditor (see http://www.fckeditor.net/) done in JavaScript but with java integration possibilities, it is under LGPL open source license.
    So my question is, would it be compatible with WebDynpro ?

    but they say that you can integrate it with java:
    Installing FCKeditor in a JSP environment is quite easy:
    Unzip the Java Integration Library in a directory named "FCKeditor".
    Unzip the content of the FCKeditor release of your choice inside the "FCKeditor\web" folder.
    Then you have to create in tomcat (or any servlet container) a new context named "FCKeditor" that points to the previously created "FCKeditor\web" folder.
    Point your browser to http://domainName.ext/FCKeditor/_samples/index.jsp for the list of the samples.
    Usage
    Take a look at the test files and in the javadoc API provided in the distribution. Here is a simple example.
    First put this taglib definition at the top of the JSP page:
    <%@ taglib uri="http://fckeditor.net/tags-fckeditor" prefix="FCK" %>
    Then the tag:
    <FCK:editor
    id="EditorAccessibility"        //Unique name of the editor
        width="80%"                 //Width
        height="120"                //Height
        toolbarSet="Accessibility"  //Toolbar name
    >This is another test. <BR><B>The "Second" row.</B></FCK:editor>
    A more advance example, that show how to use the inner tags to overrides any of the settings specified in the config.js file:
    <FCK:editor id="EditorDefault" basePath="/FCKeditor/"
        styleNames=";Style 1;Style 2; Style 3"
        fontNames=";Arial;Courier New;Times New Roman;Verdana" >
        This is some <B>sample text</B>.
    </FCK:editor>
    Building
    Inside the files there is the source files for the tags (/src) and the ant build file (build.xml).
    The ant build file provides the following tasks:
    all: Clean build and dist directories, then compile
    clean: Delete old build and dist directories
    compile: Compile Java sources
    dist: Create binary distribution
    javadoc: Create Javadoc API documentation
    release: Create Release Distribution
    Plus some Tomcat managing tasks (to make this tasks work you need to copy inside the "web" folder the FCKeditor package):
    install: Create a web application pointing to the build directory
    reload: Recompile and reload the web application
    remove: remove the web application
    To start building the class you first need to modify the "catalina.home" property inside the build.xml, then type "ant dist" to compile, create the javadoc API description and generate the jar library to be copied in the WEB-INF.
    Or more easily, type "ant install" after setting the right username and password for the tomcat manager application.

  • How can I use javascript in a Text Area with HTML editor??

    My question is... how can I use javascript in Text Area with HTML editor??
    I can use javascript functions that change the content of Text Areas but i can´t if i try in text area with html editor....
    I need to limit number of characters in a text area with html editor and i can´t.
    could anybody help me please?

    I have been experiencing similar problems with the HTML Editor and have managed to find an answer that should start to answer some of my questions. The Apex HTML Editor Standard is actually an HTML editor called FCKeditor. The FCKeditor has a Javascript API that can be found at http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/JavaScript_API. Unfortuately this doesn't seem to give the whole answer and I found more at http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:49607.
    I needed to get the text entered within my html editor standard (e.g. P1_MYTEXT) and use it within my javascript function. I did this by using the following script
    <script language="JavaScript" type="text/javascript">
    function showtext(){
    var oEditor = FCKeditorAPI.GetInstance('P1_MYTEXT');
    var editortext = escape(oEditor.GetXHTML(oEditor.FormatOutput));
    alert(editortext);
    </script>
    Hope this helps.
    Matthew

  • How can I use eCompanion in the Author mode with the visual editor in Firefox?

    Our college uses eCompanion, but the current platform on works with the visual editor in the XP version of the Windows operating system. Online Chat help said that using Firefox with the Xihna Here plugin was a successful work around. I am unable to find information about the above listed plugin. I need help.

    I have been experiencing similar problems with the HTML Editor and have managed to find an answer that should start to answer some of my questions. The Apex HTML Editor Standard is actually an HTML editor called FCKeditor. The FCKeditor has a Javascript API that can be found at http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/JavaScript_API. Unfortuately this doesn't seem to give the whole answer and I found more at http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:49607.
    I needed to get the text entered within my html editor standard (e.g. P1_MYTEXT) and use it within my javascript function. I did this by using the following script
    <script language="JavaScript" type="text/javascript">
    function showtext(){
    var oEditor = FCKeditorAPI.GetInstance('P1_MYTEXT');
    var editortext = escape(oEditor.GetXHTML(oEditor.FormatOutput));
    alert(editortext);
    </script>
    Hope this helps.
    Matthew

  • Displaying text editor

    Hello Experts,
    I have a pushbutton on a screen and clicking on that would display a text editor along with long text of that pushbutton.I dont know how to create container etc, so I am not able to make out how to solve this problem.Can anyone please help?

    hi priya,
    if your reqiurement says that i need to display text editor and save it to the internal table  then use
    the following code.
    TYPES: BEGIN OF ty_text,
             text(74)  ,
            END OF ty_text.
    DATA:
          t_terms  TYPE STANDARD TABLE OF ty_text with header line.
    EDITOR-CALL FOR t_terms.
    loop at t_terms.
    write t_terms-text.
    endloop.
    enter a valid text
    and press save .
    the data will be reflected back in your table.
    check for EDITOR-CALL syntax for other opeartions like display and giving your own title.

  • Sound editor similar to polderbits

    I have been using a windows based sound editor called Polderbits for the purpose of converting my vinyl collection to digital.
    I would prefer to edit all my music on my iMac.
    Can anyone recommend any Apple software that does what Polderbits does but on a iMac?

    check out this link for
    EZ VINYL/AUDIO CONVERTER
    http://www.mixmeister.com/download-ezvc.php

  • Text editor used to type the contents of the properties file

    ******To all those (expect iainsinclair) who view this message - Sorry for using this forum for my personal contacts **********
    Hi iainsinclair
    Thanx for explaining ur experience to me for my previous posted topic . U did mentioned a text editor called NETBEANS PROPERTY TEXT EDITOR .
    * Can u please explain more about this editor . Is this editor specific to some encodings ....
    * U said that as u enter the Japanese characters in ur keyboard the editor saves the characters in the unicode format. Are the characters displayed in their glyphs or as \u????.
    * Can u give me a list of languages f or which this text editor can be used . Bcoz u had suggested that it can be used for chinese also .
    * I need more info about a Japanese Computer and keyboard. I think we both are in the same level in this topic I18N . Iam working for I18N project in my company. This is my official mail ID- [email protected] .Can u send me ur mail Id so that we make sure that this forum members are not disturbed by our discussion .

    Hi, I'm happy if I can help.
    * Can u please explain more about this editor . Is this editor specific to some encodings ....
    It's the netbeans IDE from www.netbeans.org it's a free integrated development environment for java. It includes many editors, for .java files, .properties files and many others. It is designed to accept text in the non-ascii format and convert it for use in properties files.
    * U said that as u enter the Japanese characters in ur keyboard the editor saves the characters in the unicode format. Are the characters displayed in their glyphs or as \u????.
    They are saved as ascii characters, not glyphs. For example, I entered MSGothic (MS&#12468;&#12471;&#12483;&#12463;) in japanese using net beans and it looks like this when I use a normal text editor: MS\u30B4\u30B7\u30C3\u30AF
    * Can u give me a list of languages f or which this text editor can be used . Bcoz u had suggested that it can be used for chinese also .
    It should work for any language that your windows/linux system has support for (need the right fonts for a start). My system is native japanese, so I have all the required japanese fonts installed. If you want to use (for example) Chinese on an English system, you'll have to get the fonts and probably you will need to modify the jre/lib/font.properties file.
    * I need more info about a Japanese Computer and keyboard. I think we both are in the same level in this topic I18N . Iam working for I18N project in my company. This is my official mail ID- [email protected] .Can u send me ur mail Id so that we make sure that this forum members are not disturbed by our discussion .
    I don't think it's disturbing anyone. Forums are all about sharing information, and there is a lack of experience of I18N in the broader comminity, I feel. This isn't a busy forum... ;-)
    Don't forget to look for the article written by John O'Conner called 'Displaying Text' I don't have the URL handy but it was posted on this forum recently. It's required reading.

  • Displaying abap editor

    Hello Experts,
    Can I display the abap editor in smaller window.
    for eg EDITOR-CALL FOR REPORT prog.
    is displaying abap editor in a full screen but I want to display in a smaller window..somewhat like a popup screen or subscreen

    I hope you cannot, Even the FM RS_TOOL_ACCESS can display ABAP Editor but in a Full screen mode.
    Regards
    Karthik D

Maybe you are looking for

  • HT203296 No solution listed for 27" iMac running 2.7 GHz Intel Core i5

    I have a 27" iMac, Mid 2011. Model Identifier iMac12,2 The processor is a 2.7 GHz Intel Core i5. I am running OS X Lion 10.7.3 (11D50) Boot ROM Version is IM121.0047.B1F SMC Version (system) is 1.72f2 I have installed Parallels Desktop 7 for Mac Buil

  • Itunes 10.2.1.1 windows 7 64-bit Player does not work

    Well, my itunes quit working yesterday, and I can't figure it out. I've had the 64-bit version on this computer for sometime, and now it opens just fine, everything seems to function just fine, but when I go to play a song it just sits @ 0:00, if you

  • How to copy game data from one device to another

    I downloaded Injustice: Gods Among Us onto an iPhone 5 and I wanted to have all of my save data copied onto the iPhone 5. The same iCloud account is used on both devices and I recently backed up my iPhone 4. I want to know how to copy (if there is a

  • JDeveloper 11g - JSF Custom Validator - Client Side validation question...

    Hi all, I've created custom JSF validator. How to trow some client side ValidatorException in javascript? Thanks in advance, s o v i e t

  • Generic Error in Proxy Inbound

    Hello, We have created 2 scenarios on XI to send data to SUS (SRM 200). In one of the scenarios, we send Purchase Orders from MM (R/3) to SUS, and in the other, we send Business Partners from EBP (SRM 100) to SUS. The data are processed on SUS using