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

Custom Control - Saving the content of the text-field

Hi

I've made a text-field using Custom Control and I'm using the class CL_GUI_TEXTEDIT and this method to get the entered text:

<i> call method editor_660->get_text_as_stream

importing

text = text_tab.

</i>

Unfortunately I thought that it would be easy to store the text of a length 512 for each customer in a table. But that's not working as the table does not have the ability to store a line that long.

If I look in the sample programs of SAP (DEMO_CUSTOM_CONTROL) there's never a text really stored in the DB.

<b>Would any one have an idea where and how I could store this text?</b> I would like to use it with the kunnr as key. So that it would be possible to find the text belonging to a customer and to display it in the dynpro.

Thank you very much for your help!!

Petra

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2005 at 09:37 AM

    If its a custom table, I don't see why it can't store a field of length 512. There are other ways to store lines as well. One of the common one is :

    Table

    a) Key1 - Primary Key part 1

    b) Line no - Primary Key part 2

    c) Text

    so if your text has length 512, and you would like to store in parts, then you can do it. For example, lets take text has length 80. Use function module RKD_WORD_WRAP , give length 80, you have an internal table, generate the line numbers and store the values. A breeze :-P

    Hope it helps.

    Regards,

    Subramanian V.

    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.