Application Development and Automation 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: 
Read only

Text box in module pool

Former Member
0 Likes
3,777

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

1 ACCEPTED SOLUTION
Read only

MarcinPciak
Active Contributor
0 Likes
1,900

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

4 REPLIES 4
Read only

MarcinPciak
Active Contributor
0 Likes
1,901

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

Read only

0 Likes
1,900

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

Read only

0 Likes
1,900

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

Read only

Former Member
0 Likes
1,900

Hi,

Refer to the demo program...SAPSCRIPT_DEMO_NOTE_EDITOR