08-13-2015 6:58 AM
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.
08-13-2015 7:13 AM
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