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: 

Read text from texteditor and save in text object and link that to a field in ztable.

0 Kudos

Hi,

I am working in module pool.i have a ztable which will have unique id.under this id there is a field to enter comments . i have created that through a text editor. Now i came to know that  we can use read_text and save_text to capture the text and save it into a text object(SE75).I am having two questions.Please help me.

1.How to save the text into the textobject, i mean where should i give the container name in the function module read_ text and save_text.

2.How to link the ztable with the text object to display the comments by refering to the unique id.

Thanks,

Bala.

1 REPLY 1

raymond_giuseppi
Active Contributor
0 Kudos

You should pass the data yourself between the  internal table LINES (subfield TDLINE) parameter of FM READ/SAVE_TEXT and parameter TABLE of methods SET/GET_TEXT_AS_R3TABLE (actual method name depends on actual class you used)

Use the unique id of your ztable as identifier of the text (parameter NAME of the sapscript text modules) You could also manage a flag "long text exists" in your ztable to prevent unnecessary call of FM.

Regards,

Raymond