‎2006 Nov 03 10:36 PM
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?
‎2006 Nov 03 10:43 PM
‎2006 Nov 03 10:43 PM
‎2006 Nov 03 10:50 PM
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
‎2006 Nov 04 6:33 PM
once you set up the text object in se75, how do you link from your custom table to the one you just created?
‎2006 Nov 05 2:45 AM
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.