cancel
Showing results for 
Search instead for 
Did you mean: 

READ_TEXT Issue

Former Member
0 Kudos

Hi Friends,

I am facing a problem while using READ_TEXT FM.

I am fetching the item texts using the FM.

Suppose if my text contains a '&' it is displayed as

<(>&<)> in the output.

Please let me know how to solve it if anyone has come across this.

Thanks in advance,

Kanda.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Kanda,

The thing is not wrong with READ_TEXT FM that is wrong with the Text in SO10....check the text in that and check the Font what Functional is Using...

r u using this Text in Script or SF..

Regards,

sg

Former Member
0 Kudos

Hi Suneel,

Thanks for the mail.I am using the standard text in smartform.I checked in debug mode and the value is scrapped only in the FM.

if rt_header-tdtexttype is initial. "SAPscript format

import tline to rt_lines

from database stxl(tx)

client rt_client

id stxl_id

ACCEPTING TRUNCATION "important for Unicode

IGNORING CONVERSION ERRORS.

After this the contents of the tdline is

C M<(>&<)>M's <(>&<)>

Please let me know if somewhere I am going wrong.

I am using standard font Arial.

Thanks in advance,

Kanda.

Former Member
0 Kudos

Hi Kandaswamy,

Try this way of coding.

Chk this sample :

After fetching the text using the FM, use *replace all occurences of <)> with ' ' * and later use CONDENSE keyword, as & is used for dynamic fetching of variables.

Later use WRITE stmt. for printing.

Hope this is helpful to you. If you need further information, revert back.

Reward all the helpful answers.

Regards

Nagaraj T