How can I importing when create object?

Hi Gurus,
I’m beginner with OO Abap. Please give me a hand with this.
I’m using the programming interface REPORT  Z_TEST_ST_TEXT_EDITOR for text editor found on /people/igor.barbaric/blog/2005/06/06/the-standard-text-editor-oo-abap-cfw-class which is good and useful for me (highly recommended) but I need to import the text created (t_text)  in method constructor in order to send it via e.mail.
Could anybody tell me how to get/import the text created?
Thank you in advance.
Below is the coding. (program which uses the developed class and method consisting the created text)
DATA: o_txe     TYPE REF TO <b>zcl_standard_text_editor</b>,
      v_caption TYPE char100,
      s_thead   TYPE thead.
call screen
CALL SCREEN 0100.
MODULE s0100_start
MODULE s0100_start OUTPUT.
    SET PF-STATUS 'BASIC'.
    s_thead-tdname   = 'VENDOR0000000011'.
    s_thead-tdid     = 'ST'.
    s_thead-tdobject = 'TEXT'.
    s_thead-tdspras  = sy-langu.
    CONCATENATE 'Standard text:' s_thead-tdname
                INTO v_caption SEPARATED BY space.
    IF o_txe IS INITIAL.
<b>       CREATE OBJECT o_txe</b>         
EXPORTING i_thead   = s_thead
                   i_caption = v_caption. 
<b>IMPORTING????</b>
     ENDIF.
ENDMODULE.
<b>method CONSTRUCTOR</b>.
DATA: o_dialogbox TYPE REF TO cl_gui_dialogbox_container,
      t_text      TYPE STANDARD TABLE OF tdline,
      s_event     TYPE cntl_simple_event,
      t_events    TYPE cntl_simple_events,
      t_lines     TYPE STANDARD TABLE OF tline,
      v_text      TYPE tdline,
      v_text_temp TYPE tdline,
      v_line_temp TYPE tdline,
      v_line_len  TYPE i,
      v_index     TYPE i.
FIELD-SYMBOLS: <line> TYPE tline.
me->thead   = i_thead.
me->caption = i_caption.
*------ containers
IF i_container IS INITIAL.
    CREATE OBJECT o_dialogbox
            EXPORTING top     = 50
                      left    = 200
                      height  = 150
                      width   = 500
                      caption = i_caption.
    me->main_container = o_dialogbox.
    SET HANDLER me->on_container_close FOR o_dialogbox.
ELSE.
    me->main_container = i_container.
ENDIF.
IF me->splitter IS INITIAL.
    CREATE OBJECT me->splitter
            EXPORTING
                 parent        = me->main_container
                 orientation   = me->splitter->orientation_vertical
                 sash_position = 10. "percentage of containers
   ------ toolbar
    CREATE OBJECT me->toolbar
          EXPORTING parent = me->splitter->top_left_container.
    CALL METHOD me->toolbar->add_button
         EXPORTING  fcode       = me->c_save
                    is_disabled = ' '
                    icon        = '@2L@' "icon_system_save
                    butn_type   = cntb_btype_button.
    CALL METHOD me->toolbar->add_button
         EXPORTING  fcode       = me->c_close
                    is_disabled = ' '
                    icon        = '@3X@' "icon_close
                    butn_type   = cntb_btype_button.
*------ register events
    REFRESH t_events.
    s_event-eventid = cl_gui_toolbar=>m_id_function_selected.
    s_event-appl_event = ' '.
    APPEND s_event TO t_events.
    CALL METHOD me->toolbar->set_registered_events
          EXPORTING events = t_events.
    SET HANDLER: me->on_toolbar_func_sel FOR me->toolbar.
*------ create textedit control
    CREATE OBJECT me->textedit
       EXPORTING parent = me->splitter->bottom_right_container.
ENDIF.
get text
CALL FUNCTION 'READ_TEXT'
        EXPORTING ID       = me->thead-tdid
                  LANGUAGE = me->thead-tdspras
                  NAME     = me->thead-tdname
                  OBJECT   = me->thead-tdobject
        TABLES    LINES    = t_lines
        EXCEPTIONS ID                      = 1
                   LANGUAGE                = 2
                   NAME                    = 3
                   NOT_FOUND               = 4
                   OBJECT                  = 5
                   REFERENCE_CHECK         = 6
                   WRONG_ACCESS_TO_ARCHIVE = 7
                   OTHERS                  = 8.
*------- convert text to text editor format
LOOP AT t_lines ASSIGNING <line>.
    IF <line>-tdformat = space OR <line>-tdformat = '=' OR sy-tabix = 1.
        v_line_temp = <line>-tdline.
        CONCATENATE v_text v_line_temp INTO v_text_temp.
    ELSE.
        CONCATENATE: cl_abap_char_utilities=>cr_lf <line>-tdline
                     INTO v_line_temp.
        CONCATENATE  v_text v_line_temp   INTO v_text_temp.
    ENDIF.
    IF sy-subrc = 0.
        v_text = v_text_temp.
    ELSE.
        APPEND v_text TO t_text.
        v_text = v_line_temp.
    ENDIF.
ENDLOOP.
IF sy-subrc = 0.
    APPEND v_text TO <b>t_text</b>.
ENDIF.
*------- display text
CALL METHOD me->textedit->set_text_as_stream
         EXPORTING text = t_text.
me->t_initial_text = t_text.
endmethod.

good book on ABAP objects(OOPS)
http://www.esnips.com/doc/bc475662-82d6-4412-9083-28a7e7f1ce09/Abap-Objects---An-Introduction-To-Programming-Sap-Applications
http://www.sapgenie.com/abap/OO/
http://www.sapgenie.com/abap/OO/index.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm
http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt
http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://www.esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
http://www.allsaplinks.com/
http://www.sap-img.com/
http://www.sapgenie.com/
http://help.sap.com
http://www.sapgenie.com/abap/OO/
http://www.sapgenie.com/abap/OO/index.htm
http://www.sapgenie.com/abap/controls/index.htm
http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://www.esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
http://www.sapgenie.com/abap/OO/index.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
http://www.sapgenie.com/abap/OO/
these links
http://help.sap.com/saphelp_47x200/helpdata/en/ce/b518b6513611d194a50000e8353423/content.htm
For funtion module to class
http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5954f411d194a60000e8353423/content.htm
for classes
http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5c54f411d194a60000e8353423/content.htm
for methods
http://help.sap.com/saphelp_47x200/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm
for inheritance
http://help.sap.com/saphelp_47x200/helpdata/en/dd/4049c40f4611d3b9380000e8353423/content.htm
for interfaces
http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b6254f411d194a60000e8353423/content.htm
For Materials:
1) http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf -- Page no: 1291
2) http://esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
3) http://esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
4) http://esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
5) http://esnips.com/doc/92be4457-1b6e-4061-92e5-8e4b3a6e3239/Object-Oriented-ABAP.ppt
6) http://esnips.com/doc/448e8302-68b1-4046-9fef-8fa8808caee0/abap-objects-by-helen.pdf
7) http://esnips.com/doc/39fdc647-1aed-4b40-a476-4d3042b6ec28/class_builder.ppt
8) http://www.amazon.com/gp/explorer/0201750805/2/ref=pd_lpo_ase/102-9378020-8749710?ie=UTF8
1) http://www.erpgenie.com/sap/abap/OO/index.htm
2) http://help.sap.com/saphelp_nw04/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
Rewards if useful......................
Minal

Similar Messages

  • How can the servlet engine create objects of interfaces?help

    hello,
    I have this basic fundamental query...when using servlets i noticed that so many methods in the HttpServlet class take as arguments objects of the type "Interface"..where as basic principle in java is u cant instantiate interfaces...interfaces r mere templates which u implement by ur own custom classes.
    For example the doGet method recieves from the servlet engine(servlet container) two arguments which r HttpServletResponse object and HttpServletRequest object..and u use these further to make use of the methods of the inmterfaces..which again is a mystery to me...why?
    here is why:-
    since HttpServletResponse and HttpServletRequest r interfaces..they cant be instantiated...and now that the sevlet engine provides objects of these interfaces...how come u r able to to use the methods of these interfaces...for r they not empty methods?..
    example how r u able to make the sendRedirect() method of HttpServletResponse interface work...is this method not an empty method?
    there r several interfaces...whose objects r being used and passed in this similar fashion....(for example there r many methods that return an enumeration...which is used as if it were an ordinary class that can be instantiated..and whose methods r non empty emthods)
    please help me resolve this mystery
    sheeba

    Don't call me "u". The word is "you". Likewise "are" and not "r".
    The servlet engine creates objects of concrete classes that implement those interfaces. If you want to find the names of those classes in your particular server, you could use for examplereq.getClass().getName()

  • How can I import Apple/Pages typescript into inDesign Book design?

    How can I import typscript created in Apple/Pages into inDesign book layout?

    @annsymes – other than copy/paste?
    If you inspect the preferences for the Clipboard in InDesign you could toggle between formatted text or non-formatted text when pasting from different applications. Don't know, if that will make a difference in your case.
    Uwe

  • How can we import 3 stage workflow in Office 365?

    Hi All,
    How can we import and create 3 stage workflow in Office 365?

    Hi Farhan,
    First of all you are in the wrong forum for Office 365 Discussions.
    Secondly, please go through the links provided below for the query..
    All about Approval workflows
    SharePoint 2013 / Office 365: How to develop an out of box Helpdesk Approval Workflow
    SharePoint 2013 Document Approval Work Flow With Visio 2013
    Indul Hassan
    http://www.indulhassan.com
    You Snooze.. You Lose !!
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How can I import a movie into iMovie 09 from a hard drive?  The movie will open and play in idvd but breaks into separate files that can't be downloaded when I try to import.  Can it be done?

    How can I import a movie into iMovie 09 from a hard drive?  The movie will open and play in idvd but breaks into separate files that can't be downloaded when I try to import.  Can it be done? I am trying to create a disc of player highlights for a collegiate coach, and I am using movie files downloaded to my hard drive from a DVD created on a PC. 

    No unfortunately it won't open in quicktime either.  It does the same thing that Imovie does, separates it into two file folders audio and video, and if i select video it opens to reveal 8 files that cannot be selected.  VIDEO_TS.BUP, VIDEO_TS.IFO, VIDEO_TS.VOB,VTS_01_0.BUP, VTS_01_0.IFO, VTS_01_1.VOB, VTS_01_2.VB, VTS_01_3.VOB.  All of which cannot be opened or selected.
    Opening it in Idvd and folllowing your suggestion works and I get a format code of NTSC.  Is that the same?  Thank you for your time and response.
    CaCanuck

  • I shot video on a Panasonic P2 and I'm trying to import the MXF files to Final Cut Pro but when I try to import, the only thing that imports is a blurry image of each clip. There's no audio and no video...how can I import MXF files into Final Cut Pro?

    I shot video on a Panasonic P2 and I'm trying to import the MXF files to Final Cut Pro but when I try to import, the only thing that imports is a blurry image of each clip. There's no audio and no video...how can I import MXF files into Final Cut Pro?

    at the end, you say "import preferences", which program are you describing?
    So im safer using footage that is remotely being pulled from iphoto...
    vs
    using footage that is imported into FCP from imovie?
    Is there anything i can do in fcp to make this footage more reliable or safer or more stable as i pull remotely from iphoto?
    All the footage, and all the libraries to all programs, or on a new pegasus 12tb raid 5 setup fyi.

  • Already create hyperlink in MSWord file. same link how can i import in indesign?

    Dear All,
    Already create hyperlink in MSWord file. same link how can i import in indesign?

    I'm not having an issue as shown below:

  • My HDD crashed and I had to reinstall my boot and programmes on a new HDD.  I managed to recover my library.itl.  How can i import it with the new version of itunes? When i try imprt playlist, it replies that it is not a validly exported file.

    My HDD crashed and I had to reinstall my boot and programmes on a new HDD.  I managed to recover my library.itl.  How can i import it with the new version of itunes? When i try imprt playlist, it replies that it is not a validly exported file.

    It should be like the very first time you synced your phone with I-Tunes. It will notice you haven't synced before and just copy everything from your phone into I-Tunes. It shouldn't delete anything from the phone, at least it never has for me. It just puts a copy of everything into I-Tunes and even if you delete an app for example from your phone and you decide you want it back later, you can just go back into I-Tunes and copy it back over. Hope this helps.

  • How do I import a 3D object I created in Photoshop CC into AE CC?

    How do I import a 3D object I created in Photoshop CC into AE CC? I thought if I created a picture or video with one Creative Cloud product I should be able to work with it in another CC product.

    It's not possible. this functionality existed once in CS4 and CS5, but has ever since been removed because it was buggy and had a ton of technical issues. Your best bet would be to export the object from PS as an OBJ and import it into C4D Lite via Cineware.
    Mylenium

  • How can I "reprompt" when a OBIEE request has been imported into powerpoint

    Hi All,
    How can I "reprompt" when a OBIEE request has been imported into powerpoint using the Oracle Bi plugin for microsfot powerpoint?
    When you import a request into powerpoint it show the prompts you have defined in yout request. How can the user "reprompt" the request in powerpoint?
    Best regards
    H.

    As Silkrooster said, should be easy enough with layer styles and blending modes. To mimic the curvature you can use a simple warp style as well. You may just need multiple duplicates of the layer for ultimate control...
    Mylenium

  • How can i import the AUC value when the project go-live

    Dear all experts,
    please help me on the following issue.
    our SAP project will go live in Jan 2010.
    there are some open investment projects to be imported in the PRD.
    the projects are settled to AUC when it is not completed.
    so the actual cost of open projects are the value of AUC.
    but i can not use AS91 to import the value for the AUC because the asset class is for investment measure.
    so  i want to know how can i import the value to AUC thanks a lot.

    Dear  Judy ZHU,
    You can do manual posting to FI using T code like FB50,
    Dr - Cost element(related to project cost ) & WBS
    Cr- CWIP account.
    After that run CJ88 for that project, your project expenses will be settled into AUC/Cost center.
    This is one proposed solution for this to my knowledge..
    SAP experts,  Please correct this if i'm wrong, since I' have not  practically used this method.
    Regards,
    Sam L.

  • How can i import word file to Indesign cs6 to create index?

    Hi
    I designed a book in indesign cs6 which is about 300 pages. And the writer has sent the index file in word file. Entering every topic to index is impossible. And it  needs to find which word in which page. How can i import that word file to index and generate and index ?

    http://answers.oreilly.com/topic/899-how-to-import-index-entries-from-word-to-indesign/

  • How can I export slideshows created in Aperture v3.3.2 from Mid-2009 MacBook Pro-17 to blank DVDs?

    (Fifth futile attempt in two hours, before I learned there was a Post webpage – I’m new to ApSuppCom - and after I learned that I am not allowed to update previous content, so I had to back out, make a few changes, and start over.)  How can I export slideshows created in Aperture v3.3.2 (complete with superimposed captions and music tracks) from Mid-2009 MacBook Pro-17 to blank DVDs ?  (Some other specs: Mac OS Lion 10.7.5; Capacity 499.5 GB;  Processor 2.8 GHz Intel Core  2 Duo; Memory 4GB 1067 MHz DDR3; Graphics NVIDIA GeForce 9400M 256MB)
    I cannot do a copy (export) without various error messages appearing and the inevitable stoppage occurring.  Always with the DVD Video Player final message reading, “Supported disc not available.” Advisors and Mac Geniuses at local Apple Stores have told me to try Roxio Toast.  When I visited the Roxio website, and found numerous other company products, the descriptions all seemed to suggest that most of the apps shown can easily export videos to DVDs, but nothing was said about finished digital slide shows being exported.  At future events soon,  I hope to be handing out these finished DVDs (free) to the people in them.   Any help will be greatly appreciated. A.Z.

    How can I export slideshows created in Aperture v3.3.2 (complete with superimposed captions and music tracks) from Mid-2009 MacBook Pro-17 to blank DVDs ?
    Aperture cannot burn slideshows to a DVD.  It only can export a video of your slideshow.
    In Aperture 3 you use the "Export" button in Aperture's slideshow project to render a video to a folder on your disk.
    Then you use iDVD or another program to burn a video DVD.
    I cannot do a copy (export) without various error messages appearing and the inevitable stoppage occurring.  Always with the DVD Video Player final message reading, “Supported disc not available.”
    Could you please describe the exact steps that are causing these error messages?
    How are you exporting your slideshow from Aperture? Which settings are you using? And how are you importing the video to iDVD or Toast to burn a video DVD?
    For more suggestions see Karsten Schlüter's user tip: How to create a video-DVD? (Macs without iDVD)

  • How can I import an m4v movie from my desktop to my event Library in iMovie?

    How can I import an m4v movie from my desktop to my event Library in iMovie?  I want to include the m4v movie into another project in iMovie.

    When you import DV Stream from tape, iMovie 11 will assume that you are importing raw footage from a camera, rather than a finished movie. It will create a new clip everytime it detects a scene break (the record start/stop button was pressed). These clips will be placed in chronolgical order - not the order they were on the tape.
    One way around this is to import the tape into the application that you used to create it. For example, if you used iMovie 6, import the tape back into imovie 6. In iMovie 6, you can export the tape back out using FILE/EXPORT USING QUICKTIME. Choose the DV codec in an MOV container.  You can then import this MOV file into iMovie 11 and have everything in the proper order for your finished movie.
    Another option is to use FInal Cut Pro X.

  • How can i import an mp3 to a Notification Ringtone under the "Sound Settings"?

    how can i import an mp3 to a Notification Ringtone under the "Sound Settings"? (i can do it to "Phone Ringtones" easy, but not Notifactions)

    This might work as well and will allow drag and drop of mp3 files. This is written as if the phone is connected to the computer.
    In the sd card, check if there is a folder called media. In the media folder verify or create a folder called audio. Within the audio folder create the following folders: alarms, notifications, and ringtones. These should be typed exactly as written. Copy or move the files into the folder you want them in. Disconnect the phone from the computer and let the remount the sd card. Now go into your notification or ringtones list. The files you put into the individual folders should automatically be there.
    I know that this works on the Eris and I got the method back when only the eris and droid 1 was available. I just can't remember exactly where I got it. Hopefully it also works for the Droid 1.
    @Ron
    Be nice please.

Maybe you are looking for