‎2009 Dec 28 11:19 PM
Hi Friends,
Is there any RFC function module for reading standard text?
Please let me know. I did some research, but no luck.
Thanks,
Jaffer Ali.S
‎2009 Dec 29 3:30 AM
Hi Jaffer,
I dont think so there are any remote enabled FM for reading text I believe you need to build a 'Z' FM which is remote enabled
and fulfill your requirement.
There's one class I have found out 'CL_SAPSCRIPT_LONGTEXT' hope this would help.
Thanks and Regards,
Ranjith Nambiar
‎2009 Dec 29 6:14 AM
Hi,
One option is to copy the standard FM READ_TEXT to some Z_READ_TEXT and just change the attribute of the Z FM to RFC. Then transport this Z FM to the new server.
Note : You may have to copy the full function group and the function modules inside it.
Regards,
Amit Mittal.
‎2009 Dec 29 6:26 AM
Or just create a Z FM calling read_text inside it and make this Z FM RFC enabled without the need to copy the whole READ_TEXT FM again.
‎2015 Oct 09 2:28 AM
The below function module can be used to call READ_TEXT remotely.
Populate the fields TDOBJECT, TDNAME, TDID and TDSPRAS in the internal table LT_TEXT_LINES and pass it to the function module. You'll receive the text in the same internal table in TDLINE field.
CALL FUNCTION 'RFC_READ_TEXT' DESTINATION 'RFC_DEST'
TABLES
text_lines = lt_text_lines.
I know it is a very old thread, but I thought this might be useful to someone who comes across this thread.