01-26-2014 5:22 AM
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
01-26-2014 7: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
01-26-2014 7: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
01-26-2014 7:26 AM