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: 

How to create a text box in screen?

Former Member
0 Kudos

Can any1 help me create a long text box as in 'Purchase order text' tab in MM01 tcode...I've created custom control box in subscreen...but its not working...can some1 help with the code?

2 REPLIES 2

andreas_mann3
Active Contributor
0 Kudos

Hi,

use class cl_gui_textedit

and search for SAPTEXTEDIT* in se38 to find a sample

Andreas

Former Member
0 Kudos

Hi Saurav,

Following are the steps for creatin text edit control.

1. Create custom control on screen(CUST_CTRL1 in example)

2. Declare 2 objects in program for text edit and custom container.

DATA:

CUST_CTRL1 TYPE REF TO CL_GUI_CUSTOM_CONTAINER,

TEDIT TYPE REF TO CL_GUI_TEXTEDIT.

3. Initialize these objects in PBO

IF CUST_CTRL1 IS INITIAL.

CREATE OBJECT CUST_CTRL1

EXPORTING

CONTAINER_NAME = 'CUST_CTRL1'.

CREATE OBJECT TEDIT

EXPORTING

PARENT = CUST_CTRL1

.

Regards,

Komal.