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

Reading Standard Texts

Former Member
0 Likes
649

Hi all,

I am using the FM READ_TEXT to read the standard text, but it also reads the tags Character formats alongwith the text as

<B1> Header Text </>

Is there any FM which can be used to read the text without the formats <B1>..</>,

<RX> ...</> etc.

Else how to achieve it?

Apreciate your ideas.

Regards,

Stock

Hi all,

I am using the FM READ_TEXT to read the standard text, but it also reads the tags Character formats alongwith the text as

<B1> Header Text </>

Is there any FM which can be used to read the text without the formats <B1>..</>,

<RX> ...</> etc.

Else how to achieve it?

Apreciate your ideas.

Regards,

Stock

5 REPLIES 5
Read only

Former Member
0 Likes
625

Hi,

Change the editor(without having lines) while maintaining the standard text, you will not face this problem.

If you are not able to change it now then offset the text ex: text+1(100)

<b>Reward for helpful answers</b>

Satish

Message was edited by:

Satish Panakala

Read only

0 Likes
625

Hi Satish,

I am using the FM Read_Text in a report toi read the contents of the standard text.So changing it to line editor does nt help and read the formats as well.

Any other way?

Regards,

Stock

Read only

0 Likes
625

Stock,

Then after reading the text, before populating to the final internal table elimate first character by doing offset ex: tdline+1(100).

Hope your prob will get resolved.

<b>Reward for helpful answers</b>

Satish

Read only

0 Likes
625

oh well you could od some string operations to eliminate those character formats by hand line by line out of your text.

useful Statements: FIND, SEARCH.

find '<' in lv_tdline.

this will set sy-fdpos. in sy-fdpos you will find the number of characters from the left in which you '<' was found.

the rest is just a little brainwork and offset handling

Read only

Former Member
0 Likes
625

Message was edited by:

Rajesh