IW22 notification - to save the text from text editor to database

Hi,
In Iw21/22/23 notification screens are configured to custom screens.. and these screens are having text editors.... when i write some text in editor and try to save the notification.. the text should get saved so that i can see it nxt when i display the notification....
Please suggest any ideas...
I thought of saving in table in PAI... but it doesnt come to the event.....  and if i try to use an enhancement while saving.... that enhancement should consider the data with respect to tabs... and save differently
please suggest..
Edited by: Poonam 24 on Oct 9, 2011 7:55 AM

First you need to retrieve the contents from the text editor (jn PBO) e.g.
* Retrieve text currently inside the textedit control
  data:
    lt_text             type tdline occurs 10.
      call method go_d9999_textedit->get_text_as_r3table
        importing
          table                  = lt_text
        exceptions
          error_dp               = 1
          error_cntl_call_method = 2
          error_dp_create        = 3
          potential_data_loss    = 4
          others                 = 5.
and then persist the "lt_text" contents, e.g. you could use functions from the STXD group (e.g. SAVE_TEXT) or your own table that would need to have something like
MANDT    "key - client
LINK_KEY "key - whatever you are are linking this text to
SEQ      "key - one row of text
TEXTLINE
(the first three columns would be the primary key per row of text).
Jonathan

Similar Messages

  • Fetch unread RSS items from mail, set them to read, save the text to a file

    This is what I want to do, and needless to say I am having a little trouble.
    I wish to take the unread mail RSS items, set them to read, and then save the TEXT of the articles (not the title, time, or author) to a TextEdit file in my Documents folder.
    So far I have Get Feeds From Mail > Filter Articles > Get Text from Articles > New Text File
    This is all fine and dandy, but how do I just get the TEXT and not all of the crap that comes with it?
    Thanks!

    NOw I had manage to clear out the error, but now the problem is when I click on the 'save' button, this function clear out the entire text file for me !!!
    The code are as below:
           if(e.getSource()== vButtons[0])
              try{
               String str;
               String Ky = tArea.getText();
               BufferedWriter buffWrite=null;
               BufferedWriter in1 = new BufferedWriter(new FileWriter("Keyword.txt"));
                        buffWrite.write(Ky);
                    buffWrite.flush();
                        buffWrite.close();
                    in1.close();
              catch (IOException ex) {
              ex.printStackTrace();
            if(e.getSource()== vButtons[1])
                  new panel();
                  dispose();
             if(e.getSource()== vButtons[2])
                System.exit(0);           
        }     Please tell me how to save the TextArea to the text file, THANKS !!!

  • How to save the text in module pool

    am working with screen exit for QM01 tcode . I created one subscreen . created 2 text editors in that screen . now I want to save the text in that text editors. am using save_text , but its not working . can any one guide me regarding this with code. and tell me wht parameters I shd pass to that FM.
    its very urgent.

    Hi ,
    Please check the format below since it is based on a working code
    **************data declarations
    data: int_line type table of  tline with header line.
    data: gw_thead like thead.
    data: int_table type standard table of ty_editor.
    ****************fill header..from SO10 t-code
    GW_THEAD-TDNAME   =  loc_nam.   " unique key for the text
    GW_THEAD-TDID     = 'ST'.                " Text ID
    GW_THEAD-TDSPRAS  =  SY-LANGU.
    GW_THEAD-TDOBJECT = 'ZXXX'.   "name of the text object created
    *Read Container and get data to int_table
      CALL METHOD EDITOR ->GET_TEXT_AS_R3TABLE
        IMPORTING
          TABLE                  = int_table
        EXCEPTIONS
          ERROR_DP               = 1
          ERROR_CNTL_CALL_METHOD = 2
          ERROR_DP_CREATE        = 3
          POTENTIAL_DATA_LOSS    = 4
          others                 = 5.
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    loop data from int_table and save to int_line-tdline appending it.
    *save the text
        CALL FUNCTION 'SAVE_TEXT'
          EXPORTING
            HEADER   = GW_THEAD
          TABLES
            LINES    = InT_LINE
          EXCEPTIONS
            ID       = 1
            LANGUAGE = 2
            NAME     = 3
            OBJECT   = 4
            OTHERS   = 5.
        IF SY-SUBRC <> 0.
        ENDIF.
    The code shown above is ok and working fine for save also,hope that the above sample with helps you solve the problem
    Please check and revert,
    Reward if helpful
    Regards
    Byju

  • Cannot save the text in pop up in variant

    Hi all,
    I am calling a pop up text editor using CATSXT_SIMPLE_TEXT_EDITOR. When i enter the text and try to save it as variant, the info on the pop up disappears. Any idea of how this message can be saved as variant?
    Thanks.
    Warm regards,
    Harshad.

    Hello Harshad,
    There is no way to save the text entered in to a variant.
    The only possibility is to download the text entered into a local file from pop up or upload the text from a local file into the popup.
    There is no other way.
    Since this kind of function module's main purpose is to load the text for a material and download it to local file.
    Things like Delivery conditions, payment terms, or Help file will be loaded into this for display for user.
    So that they could make a copy of it on local file.
    Hope 'READ_TEXT' function modules and all could be used for this.
    Thanks and Best Regards,
    Suresh

  • Web Browser in the output of Report and save the text entered in browser

    Hi All,
    I am having a requirement that i has to show the web browser in the output of the basic list and i has to save the text entered in the web browser and not the URL.
    For example.
    if i am displaying the web browser in the basic list of my report.
    i am having a field to give the URL and i will the give the URL as WWW.GOOGLE.COM and press enter, then the web page will be loaded in the basic list. i am entering some text in the search area .
    let the text may be "SAP-ABAP".
    now i has to save the text "SAP-ABAP" in to my database.
    So , if you have any suggestions please reply to this.
    Thanks in advance.
    Regards,
    Phani.

    Of course there is not going to be any specific example which has been taylored to your exact requirement, which is why you should be looking outside the box.  The reason I suggested that program is so that you can see how to allow the user to access a web page and enter a value, and then allow the application server to access this value, which of course can then be stored on the database. 
    As for you exact requirement, if you are looking to specifically throw a browser with www.google.com in the browswer and have the user enter a value in the search, and then expect that this value be returned to the application which was entered, I don't see a clean/easy way to do this.  Why? Because once the user is veiwing google in the browser, it is now out of your control, because that page is not running on your server.  Not if google had some API, that would be a different story.
    Regards,
    Rich Heilman

  • How to clear the text in the Text Editor

    Hi all,
    I created a Text editor and also i am having language field in the screen.
    whenever i change the language auomatically the text has to change when the text exists for that
    language.
    this is working fine, but when the Text exist , the text editor should be blank.
    But it is carrying the Previous editor text itself into it .
    How to clear the text in the Editor.
    Regards,
    Madhavi

    Hello Madhavi
    The simple report ZUS_SDN_TEXTEDIT_CONTROL shows how to switch the texteditor contents when changing the language.
    *& Report  ZUS_SDN_TEXTEDIT_CONTROL
    *& Thread: how to clear the text in the Text Editor
    *& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1145272"></a>
    *& By default the itab GT_OUTTAB contains texts in DE and EN.
    *& To switch the language directly enter into the command window:
    *& LANGU=DE, LANGU=EN or LANGU=FR
    REPORT  zus_sdn_textedit_control.
    TYPE-POOLS: abap.
    TYPES: ty_t_text     TYPE TABLE OF as4text
                         WITH DEFAULT KEY.
    TYPES: BEGIN OF ty_s_outtab.
    TYPES: language TYPE spras.
    TYPES: text     TYPE ty_t_text.
    TYPES: END OF ty_s_outtab.
    TYPES: ty_t_outtab    TYPE STANDARD TABLE OF ty_s_outtab
                          WITH DEFAULT KEY.
    DATA: gt_outtab       TYPE ty_t_outtab,
          gs_outtab       TYPE ty_s_outtab.
    DATA: gd_language     TYPE spras.
    DATA: go_docking      TYPE REF TO cl_gui_docking_container,
          go_textedit     TYPE REF TO cl_gui_textedit.
    DATA: gd_okcode       TYPE ui_func,
          gd_repid        TYPE syst-repid.
    START-OF-SELECTION.
      PERFORM fill_texts.
      gd_language = syst-langu.
      PERFORM init_controls.
    * Link the docking container to the target dynpro
      gd_repid  = syst-repid.
      CALL METHOD go_docking->link
        EXPORTING
          repid                       = gd_repid
          dynnr                       = '0100'
    *      CONTAINER                   =
        EXCEPTIONS
          OTHERS                      = 4.
      IF sy-subrc NE 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      PERFORM set_text_editor.
    * NOTE: dynpro does not contain any elements
      "       ok-code => GD_OKCODE
      CALL SCREEN '0100'.
    * Flow logic of dynpro (does not contain any dynpro elements):
    *PROCESS BEFORE OUTPUT.
    *  MODULE STATUS_0100.
    *PROCESS AFTER INPUT.
    *  MODULE USER_COMMAND_0100.
    END-OF-SELECTION.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'STATUS_0100'.  " contains push button "DETAIL"
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      TRANSLATE gd_okcode TO UPPER CASE.
      CASE gd_okcode.
        WHEN 'BACK'  OR
             'EXIT'  OR
             'CANC'.
          SET SCREEN 0. LEAVE SCREEN.
        WHEN 'LANGU=DE' OR
             'LANGU=EN' OR
             'LANGU=FR'.
          PERFORM get_text_editor.
          SPLIT gd_okcode AT '=' INTO gd_okcode gd_language.
          PERFORM set_text_editor.
        WHEN OTHERS.
      ENDCASE.
      CLEAR: gd_okcode.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  FILL_TEXTS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM fill_texts .
    * define local data
      DATA: ld_string   TYPE string.
      gs_outtab-language = 'EN'. REFRESH: gs_outtab-text.
      ld_string = 'Good morning'.
      APPEND ld_string TO gs_outtab-text.
      APPEND gs_outtab TO gt_outtab.
      gs_outtab-language = 'DE'. REFRESH: gs_outtab-text.
      ld_string = 'Guten Morgen'.
      APPEND ld_string TO gs_outtab-text.
      APPEND gs_outtab TO gt_outtab.
      gs_outtab-language = 'FR'. REFRESH: gs_outtab-text.
      ld_string = space.
      APPEND ld_string TO gs_outtab-text.
      APPEND gs_outtab TO gt_outtab.
    ENDFORM.                    " FILL_TEXTS
    *&      Form  INIT_CONTROLS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM init_controls .
      CREATE OBJECT go_docking
        EXPORTING
          parent                      = cl_gui_container=>screen0
    *      repid                       =
    *      dynnr                       =
    *      side                        = dock_at_left
    *      extension                   = 50
    *      style                       =
    *      lifetime                    = lifetime_default
    *      caption                     =
    *      metric                      = 0
          ratio                       = 90
    *      no_autodef_progid_dynnr     =
    *      name                        =
        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 SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CREATE OBJECT go_textedit
        EXPORTING
    *      max_number_chars       =
    *      style                  = 0
    *      wordwrap_mode          = wordwrap_at_windowborder
    *      wordwrap_position      = -1
    *      wordwrap_to_linebreak_mode = false
    *      filedrop_mode          = dropfile_event_off
          parent                 = go_docking
    *      lifetime               =
    *      name                   =
        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 SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " INIT_CONTROLS
    *&      Form  SET_TEXT_EDITOR
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM set_text_editor .
      BREAK-POINT.
      CLEAR: gs_outtab.
      READ TABLE gt_outtab INTO gs_outtab
           WITH KEY language = gd_language.
      CALL METHOD go_textedit->set_text_as_stream
        EXPORTING
          text            = gs_outtab-text
        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.
    ENDFORM.                    " SET_TEXT_EDITOR
    *&      Form  GET_TEXT_EDITOR
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM get_text_editor .
      CLEAR: gs_outtab.
      CALL METHOD go_textedit->get_text_as_stream
        EXPORTING
          only_when_modified     = cl_gui_textedit=>true
        IMPORTING
          text                   = gs_outtab-text
    *      is_modified            =
        EXCEPTIONS
          error_dp               = 1
          error_cntl_call_method = 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.
      MODIFY gt_outtab FROM gs_outtab
        TRANSPORTING text
        WHERE ( language = gd_language ).
    ENDFORM.                    " GET_TEXT_EDITOR
    Regards
      Uwe

  • Table fields for the text editors

    Hi,
    How to find the table fields of the text editors in the functional screens like MM03 --> MRP4 View --> Material Memo. Or how to upload text in the editors using ABAP program.
    Thanks,
    K R Vishnu Kumar

    Hi,
    Any long text will consists of the TEXT_NAME, TEXT_ID, TEXT_OBJECT and the LANGUAGE.
    To find out these details you basically have to open the text in the text editor by double clicking on it.
    And then go to the Header details in the Menu.
    Here you will find all the relevant information.
    You pass these details to FM SAVE_TEXT to save this text to database and you make use of FM READ_TEXT to read these texts.
    The texts are basically stored in STXH and STXL tables.
    Regards,
    Ankur Parab

  • What is the text editor that comes with a Mac?

    What is the text editor that comes with a Mac? My daughter purchased a new MacBook Pro. She wants to move her iTunes from the old Windows XP system to OSX. One of the ways I have found to do this is to move theXML Library from XP toi OSX and edit it. The XP version has the drive letter paths and that is different in OSX. If I knew what editor was available, then I could do a mass change of the old path to the new one. Any editor suggestions?

    Hi motero,
    TextEdit is essentially a word processor. You can find detailed information about it [here|http://support.apple.com/kb/HT2523].
    Moving an iTunes library from one computer (PC or Mac) to another is very easy and can be done in a number of different ways. You should read the articles [here|http://www.apple.com/support/itunes> and decide which method is best for you.
    Thanks,
    Acros-Krik

  • How can i save the data from the Oracle database to my local directory

    How can i save the data from the Oracle database to my local directory instead Of saving the data file to the Directory created on the Oracle Server ?
    I require to design the Procedure which will pull the data from various tables and needs to store the data in the Client's local directory.

    Since SQL*PLUS runs on the client, you can use SQL*PLUS to spool data to your local drive.
    You could also use the database to write a a specified drive where all users have access to (mapped network drive, e.g.). I wouldn't recommend doing it that way, but it is sometimes useful when the files are created in some nightly batch run.

  • Any description on how to use the Text Editor used for this Forum?

    I am very frustrated when trying to use the text Editing functions (without use of HTML, that I do not undertstand) that can be used to create Posts in this Forum .
    Can somebody point me to a good description of the Text Editor used to enter/edit Posts in this Forum? Thanks a lot in advance.

    Ian,
    Thank You very much for your answer.
    Based on your answer, I guess and fear, that there exist no "user guide" for this Text Editor.
    I will wait a little bit more to see whether I get more information/answers. If not, i will probably write a "Feature Request" to request that Adobe provides us or point us to a reasonable User-Guide for this Text Editor.

  • How to save the string from JTextFied to database?

    can i know how to save the data from JTextFied to databse. Is it using update?

    The most straightforward way would be something like:
    String myKey=myKeyField.getText();
    String foo=fooField.getText();
    String sql="update mytable set foo='"+foo+"' where mykey='"+myKey+"'";
    connection.createStatement().executeUpdate(sql);
    This example assumes that the input fields cannot possibly contain quotes or the string won't be built correctly. Which by the way brings up a question I'd be interested in hearing others answer: What do you do about this? Sometimes I use PreparedStatement which handles that problem, other times I write my own little function to escape the string properly.
    You can also read the record into a ResultSet and use ResultSet.update(). I'm mostly using mySql and I found that in mySql ResultSet.update just creates a SQL update statement like I did above and executes it, so the only real advantage would be if you find the syntax more convenient. Perhaps other database drivers do something different that would give other pros and cons.

  • Save the capture from a WebCam to a file

    Hi!
    I am trying to save the capture from a webcam to a file. This should be really easy but I have this stack trace when closing the Processor:
    java.lang.NullPointerException
         at com.sun.media.multiplexer.video.AVIMux.writeFooter(AVIMux.java:827)
         at com.sun.media.multiplexer.BasicMux.close(BasicMux.java:142)
         at com.sun.media.BasicMuxModule.doClose(BasicMuxModule.java:172)
         at com.sun.media.PlaybackEngine.doClose(PlaybackEngine.java:872)
         at com.sun.media.BasicController.close(BasicController.java:261)
         at com.sun.media.BasicPlayer.doClose(BasicPlayer.java:229)
         at com.sun.media.BasicController.close(BasicController.java:261)
         at com.mdarveau.WebCamGrabber.TestWebCam.<init>(TestWebCam.java:47)
         at com.mdarveau.WebCamGrabber.TestWebCam.main(TestWebCam.java:59)Any idea why? It is probably something stupid in my code but I can't find it!
    Here is the code:
        //Get the original source
        CaptureDeviceInfo webCam = CaptureDeviceManager.getDevice("vfw:Video Blaster WebCam 3/WebCam Plus (VFW):1");
        DataSource cam = Manager.createDataSource(webCam.getLocator());
        cam.connect();
        Format [] formats = {new VideoFormat(null) };
        FileTypeDescriptor ftd = new FileTypeDescriptor("video.x_msvideo");
        ProcessorModel pm = new ProcessorModel(cam, formats, ftd);
        Processor p = Manager.createRealizedProcessor(pm);
        MediaLocator save = new MediaLocator("file:test.avi");
        DataSink datasink = Manager.createDataSink(p.getDataOutput(), save);
        datasink.open();
        datasink.start();
        Thread.sleep(5000);
        p.stop();
        p.close();
        datasink.close();Thanks!
    Manuel Darveau

    I think you should start the processor, just after the datasink is started.
    datasink.satrt();
    p.start();
    Try it and ask again if it's not the problem.

  • Is it possible to save / extract data from a MS SQL database 2008 using lookout 6.2?

    Is it possible to save / extract data from a MS SQL database 2008 using lookout 6.2?
      Now a days we are saving / extracting data in a excel spreadsheet, but we would like to do that using a database because it is better.

    You can use ODBC connection to work with SQL Server database.
    Use SQLExec object to execute the SQL statement. Here is a KB about the SQL statement.
    http://digital.ni.com/public.nsf/allkb/4ADEEA04CD24AE0B862565E20002A16F?OpenDocument
    To write data to spreadsheet is more straightforward because Lookout has built-in spreadsheet object. But you need to write SQL statement by yourself to interact with other database.
    To read the data back is the same way. Just use "select" SQL statement to query. You can use Datatable object to query.
    The "Data Source" can be "DSN = data source name;". The data source name is configured in Control Panel->Administrative Tools->Data Sources(ODBC).
    Ryan Shi
    National Instruments

  • How to save the text from text area back to a text file?

    Hi all,
    Now I am doing a small panel which containts a JTextArea, this TextArea will read the content from a text file, then display the content of the text file on the TextArea itself.
    My idea is, allow the user to modify the content in the textarea (I set it Editable=true;), then save it. After the user press the save button, the content in the text file will be updated accordng to the user;s modification on TextArea.
    I had done the displaying part by using JavaI/O (BufferReader), now any expert here know how to update the TextArea content back to the text file itself? PLease teach me, THANKS !!!

    NOw I had manage to clear out the error, but now the problem is when I click on the 'save' button, this function clear out the entire text file for me !!!
    The code are as below:
           if(e.getSource()== vButtons[0])
              try{
               String str;
               String Ky = tArea.getText();
               BufferedWriter buffWrite=null;
               BufferedWriter in1 = new BufferedWriter(new FileWriter("Keyword.txt"));
                        buffWrite.write(Ky);
                    buffWrite.flush();
                        buffWrite.close();
                    in1.close();
              catch (IOException ex) {
              ex.printStackTrace();
            if(e.getSource()== vButtons[1])
                  new panel();
                  dispose();
             if(e.getSource()== vButtons[2])
                System.exit(0);           
        }     Please tell me how to save the TextArea to the text file, THANKS !!!

  • How to use SharePoint Environment to save the text of an image in the DB?

    Hi All,
    I Don't know a lot about the SharePoint Environment, But I wanna that part who is talking about getting an image from a scanner, reading the text in it and save it as a text in the DB.
    Any one can help me about that? or give me a link to learn about what I need in it?
    Note: I'm using Oracle DB 10g.

    I had a few seconds I didnt think Id need again so I googled "connecting sharepoint to oracle" and got the following link for you which list steps how to connect sharepoint to oracle
    http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/8fa4ac8b-7e27-4b8f-ad12-f81d32ba7d2c

Maybe you are looking for

  • How do I add new photos to an existing photobook album?

    I'm creating a photobook and nearly finished it but want to add some more photos that weren't in the original album I used.  Can anyone advise how you add new photos to it that you can then select to go into the Photobook?  I can't find any way to ad

  • Remote start & shutdown WL6.0 in NT

    Hi, Is there any way to START and SHUTDOWN Weblogic Server 6.0 in a remote NT system, suppose the NT system having weblogic 6.0 is in other location inside a firewall. can I START the server from a different location. thanks karmegam

  • Mail won't update when I'm not using it..

    Hi guys, I have been having some trouble with my Mail, I use hotmail and the mail app on iPhones just recently it hasn't been updating when I'm not in the app, so I have been missing a lot of emails and they haven't been showing and only show when I

  • ICloud email needs a lot of work

    Does anyone know if/where Apple has a place to report bugs with iCloud.com apps? The email app is pretty unstable.  Most of the time, searching doesn't work at all.  It just spins for a while and then tells me that it can't complete it right now.  Mo

  • Email body format is not correctly in SOST using SO_DOCUMENT_SEND_API1

    Hi Experts, I am sending email from my program, Email body is not coming correct format in the SOST as it is in the internal table. Below code i was written if any one knows please suggest.     CONCATENATE DBHOST ':' SY-REPID INTO SUBJECT.     DESCRI