08-24-2009 6:31 AM
Hello Friends,
I want to print long text in smartforms which user has entered in long text field in zmodule pool program.
The problem is that when im displaying in smartforms using fm read_text its not showing the data as user has entered
For eg.
User has entered in long text u2018this is a sample programu2019
u2018tested successfullyu2019
In smartforms it is displaying as : u2018this is a sample programu2019 u2018tested successfullyu2019
I want to show the data same as entered by the user .. pls suggest??
Kind Regards,
Sunny Vaswani
08-24-2009 7:50 AM
Hi,
Use STRING type for your screen field and for your table field. You cannot use TABLES for declaring your table in your program. Also you cannot use the statement LOOP AT ITAB WITH CONTROL in screen's PBO and PAI. But you can use the variant LOOP WITH CONTROL.
You can use class CL_GUI_TEXTEDIT
see the demo program
SAPTEXTEDIT_DEMO_1
regards,
Shamma
09-04-2009 11:29 AM