‎2007 Jun 05 11:00 AM
Hi All,
i want to implement textedit control in standard sap screen. please let me know step-by-step approch for this...i mean which methods are used to get the text and save the text...
Regards,
Chandra
‎2007 Jun 05 10:46 PM
Hi,
the steps are like this.
1. Create a custom controler on your screen,
2. Create classes like this on your code
gr_container TYPE REF TO cl_gui_custom_container,
editor TYPE REF TO cl_gui_textedit,
text_tab LIKE STANDARD TABLE OF line,
on your POB process...
CREATE OBJECT gr_ccontainer
EXPORTING
container_name = gc_custom_control_name
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
others = 6 .
IF sy-subrc <> 0.
*--Exception handling
ENDIF.
*----Creating text editor instance
CREATE OBJECT editor
EXPORTING
i_parent = gr_ccontainer
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
others = 5 .
3. thats all....is like adding an alv oo.
4. This is just an aproach but if you need deeper info checj DEMO_CUSTOM_CONTROL on se38.
Hope this helps!!
Gabriel
‎2007 Jun 05 10:39 PM
Hi Chandra,
You can create it using custom containers in screens and you need to use the class CL_GUI_TEXTEDIT.
This link would be helpful to you...
http://help.sap.com/saphelp_47x200/helpdata/en/eb/549e36cf0ecb7de10000009b38f889/frameset.htm
Regards,
SP.
‎2007 Jun 05 10:46 PM
Hi,
the steps are like this.
1. Create a custom controler on your screen,
2. Create classes like this on your code
gr_container TYPE REF TO cl_gui_custom_container,
editor TYPE REF TO cl_gui_textedit,
text_tab LIKE STANDARD TABLE OF line,
on your POB process...
CREATE OBJECT gr_ccontainer
EXPORTING
container_name = gc_custom_control_name
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
others = 6 .
IF sy-subrc <> 0.
*--Exception handling
ENDIF.
*----Creating text editor instance
CREATE OBJECT editor
EXPORTING
i_parent = gr_ccontainer
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
others = 5 .
3. thats all....is like adding an alv oo.
4. This is just an aproach but if you need deeper info checj DEMO_CUSTOM_CONTROL on se38.
Hope this helps!!
Gabriel