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: 

Saving text editor

Former Member
0 Kudos

I have this text editor that I want to save everything in my text editor line by line.

For eg. If my text editor haves values like these:

-


Report ZTEST.

TABLES: ZPROGRAM_TABLE.

DATA: ITAB_PROGRAM TYPE TABLE OF ZPROGRAM_TABLE.

DATA: CODE_EDITOR_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,

CODE_EDITOR TYPE REF TO CL_GUI_TEXTEDIT.

DATA: WA_PROGRAM LIKE LINE OF ITAB_PROGRAM.

-


How am I suppose to save each line in my text editor into my table called ZPROGRAM_TABLE and column name PROGRAM_CODE?

Codes example is preferred and I shall reward points accordingly.

2 REPLIES 2

athavanraja
Active Contributor
0 Kudos

check this demo program for code sample

SAPTEXTEDIT_DEMO_3

Former Member
0 Kudos

I don't understand what is inside the program. Does anyone have codes example for me to refer?