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

Setup custom table for textedit

Former Member
0 Likes
969

how can you set up a custom table for textedit? I have a custom sap table for user to enter a project.

ie.

field data element Datatype length

projectnum zprojectnum char 8

projectid zprojectid char 4

projectname zprojectname char 20

projectdesc ? ? ?

how would you set this up so that project desc can have unlimited length?

also where is the text store and how to store the textedit?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
656

Hi,

Create a text object and text id in SE75 for storing the project description..

Check this link for how to create a text editor..

Then use the function module SAVE_TEXT to save the text and in the text object and use the function module READ_TEXT to read the text..

Thanks,

Naren

4 REPLIES 4
Read only

Former Member
0 Likes
657

Hi,

Create a text object and text id in SE75 for storing the project description..

Check this link for how to create a text editor..

Then use the function module SAVE_TEXT to save the text and in the text object and use the function module READ_TEXT to read the text..

Thanks,

Naren

Read only

Former Member
0 Likes
656

hi Ervin,

yes, you should use the text objects to save the long texts entered in the TEXTEDIT control.

you can use methods, GET_SELECTED_TEXT_AS_R3TABLE and SET_SELECTED_TEXT_AS_R3TABLE (of class CL_GUI_TEXTEDIT)to get and set texts to the control.

you can use function modules SAVE_TEXT and READ_TEXT to get the text object from the text tables (STXH and STXI).

you can use transaction SE75 (or SO10) to create the text objects.

Hope this helps.

Sajan.

Message was edited by: Sajan Joseph

Read only

0 Likes
656

once you set up the text object in se75, how do you link from your custom table to the one you just created?

Read only

0 Likes
656

There are three important parameters that we will require while dealing with long texts.

TEXT ID

TEXT OBJECT

TEXT NAME

Usually TEXT ID will ST and TEXT OBJECT will be TEXT unless you have created some other values for the same. Now coming to the TEXT NAME, this could be your unique key of the data for which you want to maintain the long text.

If you don't have single unique column, you can concatenate two or three columns and store the long text against that using the SAVE_TEXT function.

While reading the text, the same columns will have to concatenated and use it the READ_TEXT function.

Regards,

Ravi

Note : Please mark all the helpful answers and close the thread if the issue is resolved.