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

Need to control Text Editor

Dear All,

I created Text Editor using cl_gui_textedit. In every line I can input not more than 73 character. But I need more for display the line in a landscape samrtforms.

Thanks

Rizvi

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jan 26, 2014 at 07:13 AM

    Hi Rizvi Saleheen,

    I can but think of 2 ways to handle the requirement :

    1. At Container Level while creation of object of type 'c_textedit_control' set the exporting parameter 'wordwrap_position' equal to the number of characters you need per line.

    2.At Smartform Layout Level : While fetching the data from the container through Function Module ' READ_TEXT' create a internal table which has a field for displaying text(as per your length requirement) as per required in the smartform layout and explicitly write the code and concatenate the data from READ_TEXT into the field of the internal table.

    The first approach is the more effective way of handling the requirement because then you don't have to explicitly handle the situation where the user has applied 'ENTER' after say 30-40 characters which is less than the characters that will fit in one line and you can directly use Function Module 'READ_TEXT' and display text in the smartform.

    I hope you get the desired result.

    Regards,

    AB

    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.