Skip to Content
author's profile photo Former Member
Former Member

Read Text

Hello friends,

I have created one custom container in module pool for allowing user to enter messages or text, Its successfully saving the text but now I want to show

The same text in tht container when user open the module pool program in display mode.

Please suggest how to read the text and show it in custom container tool?

Regards,

Sunny.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Aug 10, 2009 at 05:54 AM

    Hi,

    Refer:

    text-area-in-screen-painter

    Hope this helps you.

    Regards,

    Tarun

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 10, 2009 at 06:06 AM

    Well, this kind of depends on how and where you have saved your text. Tarun's suggestion souds ok, but this will only work if you store your text in a Z-table as plain text. But it is also possible to store long text as string or as text in table STXH / STXL like is done is several standard transactions. To retrieve those text you can use FM READ_TEXT.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 10, 2009 at 06:26 AM

    Hi,

    Make use of the object cl_gui_textedit and the method set_text_as_r3table.

    Do as follows:-

    *filling up editor with text from texttable

    CALL METHOD y_obj_ltext->set_text_as_r3table

    EXPORTING

    table = y_i_longtxttbl.

    • SET EDITABILTY DEPENDING UPON EDITABILITY OF THE CELL.

    CALL METHOD y_obj_ltext->set_readonly_mode

    EXPORTING

    readonly_mode = y_v_ltxt_enable.

    Regards,

    Ankur Parab

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 10, 2009 at 06:43 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2009 at 10:45 AM

    ANSWERED

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.