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

READ_TEXT FM

Former Member
0 Likes
915

REAT_TEXT FM is not showing comple text if the text of length 72 or 73. In THEAD structure there is only one line entry of 70 char. But if the long text is more than 73 then it shows 2 lines in THEAD structure (1 line of 70char and 2nd line with balance characters).

But where as in SE37, even the long text is 72 or 73 it shows complete text.

How to resolve this?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
788

I call FM READ_TEXT after assembling the keys to STXH into a structure of type THEAD, and reading STXH. If STXH exists, then I call READ_TEXT FM to get a table of type TLINE. I've noticed that in some instances the first two columns of TDLINE field contains formatting (like * ), while in other cases the field TDFORMAT is used exclusively for formatting. Without spending a lot of time to discover why or how to make READ_TEXT handle the texts differently, I just added a step to strip the first two characters from TDLINE when I find the "word processor" style text formatting, as opposed to SAPScript editor type formatting (which stored format in TDFORMAT and allowed 72 characters of text). That might explain the differences you're seeing in FM results.

Not sure what you mean by "in SE37".

3 REPLIES 3
Read only

Former Member
0 Likes
789

I call FM READ_TEXT after assembling the keys to STXH into a structure of type THEAD, and reading STXH. If STXH exists, then I call READ_TEXT FM to get a table of type TLINE. I've noticed that in some instances the first two columns of TDLINE field contains formatting (like * ), while in other cases the field TDFORMAT is used exclusively for formatting. Without spending a lot of time to discover why or how to make READ_TEXT handle the texts differently, I just added a step to strip the first two characters from TDLINE when I find the "word processor" style text formatting, as opposed to SAPScript editor type formatting (which stored format in TDFORMAT and allowed 72 characters of text). That might explain the differences you're seeing in FM results.

Not sure what you mean by "in SE37".

Read only

0 Likes
788

I got it what ur saying.

Edited by: VenkatSrinvas Konda on Dec 7, 2010 9:05 PM

Read only

0 Likes
788

Hello,

I'm having problems trying to get the text into a report from STXL and STXH. The text object is FKKKO, text ID is FKK0 and after running SE37 I need to get the text from TDLINE.

Client: 400

ID: FKK0

Lang: EN

Name:

Object: FKKKO.

Your help is greatly appreciated.