Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Need to control Text Editor

0 Kudos

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

1 ACCEPTED SOLUTION

AniketB
Explorer
0 Kudos

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

2 REPLIES 2

AniketB
Explorer
0 Kudos

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

0 Kudos

Thnaks Aniket Bhagwat. I tried the first and it's working.