‎2009 Jan 31 7:44 AM
Hi,
I am working on one internal tool and i need to use one text box in my screen in which user can give his or her comments.
Screen element input/output could solve my problem but this is a one line field and i need one big box. Is it possible to achieve this?
Many thanks in advance.
Regards,
Swati
‎2009 Jan 31 8:37 AM
Hi Swati,
Sure it is. Place in your screen custom control area in place you want your comment box. Now during runtime place inside it a custom container and on top of it instance of cl_gui_textedit control. This is called [SAP textedit|http://help.sap.com/erp2005_ehp_04/helpdata/EN/eb/549e36cf0ecb7de10000009b38f889/frameset.htm]. To see the example code refer [this|http://help.sap.com/erp2005_ehp_04/helpdata/EN/c2/27e14e59ed11d29bd90000e8a47b2e/frameset.htm].
Regards
Marcin
‎2009 Jan 31 8:37 AM
Hi Swati,
Sure it is. Place in your screen custom control area in place you want your comment box. Now during runtime place inside it a custom container and on top of it instance of cl_gui_textedit control. This is called [SAP textedit|http://help.sap.com/erp2005_ehp_04/helpdata/EN/eb/549e36cf0ecb7de10000009b38f889/frameset.htm]. To see the example code refer [this|http://help.sap.com/erp2005_ehp_04/helpdata/EN/c2/27e14e59ed11d29bd90000e8a47b2e/frameset.htm].
Regards
Marcin
‎2009 Jan 31 9:09 AM
Hi Marcin,
Many thanks for your help , my problem has partially solved now.
I can see text box on my screen but the text which i am providing here am not able to see that anywhere while debugging, where it goes?
For example, in the text box i have written 'GOOD' but while debugging i am not able to see this text.
Please advice.
Thanku very much for your help.
Regards,
Swati
‎2009 Jan 31 9:18 AM
You can't see them directly stored in any data object, as there is no interface between your program and Sap textedit control in screen. Instead you have to use methods of that class (actually of class's instance). [This is excatly what you need|http://help.sap.com/erp2005_ehp_04/helpdata/EN/71/526046f6f011d2961c00a0c930660b/frameset.htm]. If you still have problems, don't hesitate...
Regards
Marcin
‎2009 Jan 31 8:40 AM