05-11-2011 9:17 AM
hi all
Theres a field text in a custom table which is like PO header text
i have created a text editor on a screen to input data in that field
Now i have to save that text in the table
im trying to use the fm 'SAVE_TEXT' but i dont know which tdobject,tdname,tdid to use to save that data in the custom table
Can you please indicate me how to do it
05-11-2011 9:23 AM
hi,
In the Header you will get the name object and id.
Regards,
Pawan.
05-11-2011 9:45 AM
Hi
Since u r trying to insert the text into custom table.
For this u need to capture the text entered in text editor and concatenate into one variable of type string and then insert into u r custom table. For this u can not use the SAVE_TEXT. Since function module require text id & object.
Regards,
Raghu.
05-11-2011 10:21 AM
hi, thanks for your reposnse
but how long can i concatenate the data? I should have definite length, right?
05-11-2011 10:42 AM
Hi,
It will depend on the data type and length of the field you use in the custom table to store this text data.
Regards,
harish
05-11-2011 11:58 AM
Defind text field data type as string. Then directly store the text in to the respective field. No need to use any function module .
Ram
05-11-2011 11:59 AM
Defind text field data type as string. Then directly store the text in to the respective field. No need to use any function module .
Ram
05-11-2011 12:50 PM
You need not use functional module SAVE_TEXT for this purpose.
You can capture the data field under which you have created the TEXT AREA and pass it into a local string and finally insert into your custom table.
This wil solve your problem.
Thanks,
Santosh.
05-11-2011 12:53 PM
by using FM SAVE_TEXT you will not be able to save it to your custom table.
ALL texts are stored in Tables STXH and STXL.
I anyway wonder how you think we can save a text to a field. I mean the text can have infinite length. no field can be infinite.