Application Development and Automation 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 only

RFC function module for READ_TEXT

Former Member
0 Likes
3,225

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

4 REPLIES 4
Read only

Former Member
0 Likes
1,473

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

Read only

Former Member
0 Likes
1,473

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.

Read only

Former Member
0 Likes
1,473

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.

Read only

0 Likes
1,473

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.