08-08-2005 11:56 AM
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?
08-08-2005 12:15 PM
Hi,
use class cl_gui_textedit
and search for SAPTEXTEDIT* in se38 to find a sample
Andreas
08-08-2005 12:56 PM
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.