on 11-18-2008 6:15 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
U can use Include Text insted of Read_Text FM.
Eg : INCLUDE &T166K-TXNAM& OBJECT &T166K-TDOBJECT& ID &T166K-TDID& LANGUAGE &EKKO-SPRAS&
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.