cancel
Showing results for 
Search instead for 
Did you mean: 

Query regarding a text display using READ_TEXT function module

Former Member
0 Kudos

Hi all,

I am facing a problem regarding a text display using the READ_TEXT function module.

It is like I am facing different texts using READ_TEXT and dispaying them from the sapScript.

There, the text is getting displayed as 65 characters per line and not 132 characters, I mean to say that the entire text is not getting displayed line wise but is getting split to 65 characters.

Can any body please help me out regarding the text display in the entire line?

Thanks and Regards

Priya

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi ,

The best way to get all the contents of the Standard text - header or item , is to use INCLUDE TEXT in the Smartforms.

And give the NAME ,OBJECT ,ID and Language there.and Select the check box for "No errors if not text is found".

Regards.

Vikki.

Former Member
0 Kudos

Vikki,

I understand that but the program is already existing and i need to do some changes for that. \

Please help me out in this regard.

Priya

Former Member
0 Kudos

HI,

U can use Include Text insted of Read_Text FM.

Eg : INCLUDE &T166K-TXNAM& OBJECT &T166K-TDOBJECT& ID &T166K-TDID& LANGUAGE &EKKO-SPRAS&

Former Member
0 Kudos

Can you see the return value in debugging?

How you have declared the variable receiving the result from the FM?

Post your code.

Regards

Karthik D

Former Member
0 Kudos

Hi Karthik,

Here is the code. And during debugging i am able to se the line breaks. I donno why.

price LIKE tline OCCURS 0 WITH HEADER LINE,

thead-tdobject = 'EKKO'.

thead-tdname = ekko_tab-ebeln .

thead-tdid = 'F25'.

thead-tdspras = 'E'.

CALL FUNCTION 'READ_TEXT'

EXPORTING

id = thead-tdid

language = thead-tdspras

name = thead-tdname

object = thead-tdobject

TABLES

lines = price

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8.

IF sy-subrc <> 0.

ENDIF.

CLEAR price.

This is it.

Now, can you please help me out where i am wrong?

REgards

Priya

Former Member
0 Kudos

So how you are printing the text, using loop at price?

Former Member
0 Kudos

yes rite.