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

Standard Text

Former Member
0 Likes
1,161

Hi mighty ABAP experts,

I have created a standard text via SO10 and retrieves it with the FM READ_TEXT.

But I seem to get escape characters with the text.

output from the FM:

</STYLE>

</HEAD>

<body>

<(><<)>p>

<table width="640" cellSpacing=0 cellPadding=0 border=0>

<(><<)>tr>

<td width="500" class="leftborder" style="padding-bottom: 4mm">

<(><<)>b>Til: <(><<)>br>&nbsp;<(><<)>br>%ORGEH%, %TEAMLEAD%<(>

<<)>/b></td>

<td width="140" class="border" style="padding-bottom: 4mm">

<(><<)>b>Dato: <(><<)>br>&nbsp;<(><<)>br>%date% <(><<)>/b><(>

<<)>/td>

</tr>

The string "(><<)>" is not present in the text saved in SO10.

How do I get text exactly like it is typed in SO10?

5 REPLIES 5
Read only

Former Member
0 Likes
771

Hi,

What are the Parameters you are passing to the FM READ_TEXT:

You have to pass: TDNAME, TDOBJECT,TDIF, TDSPRAS etc.

You will get the Similar text of SO10 in the Table LINES (TLINE).

You are getting all HTML tags, Why?

Pass the above paramters correctly it will fetch the exact text.

Regards,

Anji

Read only

Former Member
0 Likes
771

Hello,

This string (><<)> which is being dispalyed in text ,what was the exact character that you have saved in text ?

Just see if you can enter this character by isert-> displayable charcters menu option.

Hope this helps.

Thanks.

Read only

Former Member
0 Likes
771

TDNAME = ZHR_ABS_VARIGHEDSATTEST

TDOBJECT = TEXT

TDIF = ST

TDSPRAS = DA

I have saved a html mail, that I would like to maintain in SO10.

I expect to output to be:

</STYLE>

</HEAD>

<body>

<P>

<table width="640" cellSpacing=0 cellPadding=0 border=0>

<tr>

<td width="500" class="leftborder" style="padding-bottom: 4mm"> <b>Til: <br>&nbsp;<br>%ORGEH%, %TEAMLEAD%</b></td>

<td width="140" class="border" style="padding-bottom: 4mm"> <b>Dato: <br>&nbsp;<br>%date% </b></td>

</tr>

<tr>

<td> </td>

<td> </td>

</tr>

</table>

Read only

0 Likes
771

just check whenever you need new line with space ...ar you putting the correct instrcution in text.(i.e.tag column entry where you can select raw line,continuous line etc...is correct or not.) just put default paragraph where you need empty line.

Thanks.

Read only

Former Member
0 Likes
771

I have solved the problem by calling the FM CONVERT_ITF_TO_STREAM_TEXT after the calling the FM READ_TEXT. This give me the text just as I want it.