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

upload data in text edit control

Former Member
0 Likes
505

Hi,

I have created text edit container using this code.

IF OB1 IS INITIAL.

CREATE OBJECT EDITOR_CONTAINER

EXPORTING

CONTAINER_NAME = 'OB1'.

CREATE OBJECT OB1

EXPORTING

PARENT = EDITOR_CONTAINER

WORDWRAP_MODE = CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION

*WORDWRAP_POSITION = LINE_LENGTH

WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>TRUE.

CALL METHOD OB1->SET_TOOLBAR_MODE

EXPORTING

TOOLBAR_MODE = CL_GUI_TEXTEDIT=>FALSE.

CALL METHOD OB1->SET_STATUSBAR_MODE

EXPORTING

STATUSBAR_MODE = CL_GUI_TEXTEDIT=>FALSE.

ENDIF.

Now, I want to upload data in this text editor through BDC. My problem is when i do recording SAP do not upload data in this custom control.

Is there any other way to do this Please reply.

Thanks

1 REPLY 1
Read only

varun_maharshi
Active Participant
0 Likes
435

Its easier to use SAVE_TEXT function module to upload the texts than to record them. you can first record the transactiona and do a SAVE_TEXT call at the end.