2006 Jun 22 7:18 AM
Hi ,
please help me out in how to get standard text in SMARTFORMS, as i am using function 'READ_TEXT', but at the time of executing the driver program , its giving error that , standardt text id object not available, do please reply back with answers
Hi ,
please help me out in how to get standard text in SMARTFORMS, as i am using function 'READ_TEXT', but at the time of executing the driver program , its giving error that , standardt text id object not available, do please reply back with answers
2006 Jun 22 7:23 AM
If READ_TEXT is failing either the text is not created or the parameters you are passing are wrong.
However, in SMART Forms, there is a easier of way showing the long text. Create a text element and choose the INCLUDE TEXT OPTION. Now, you can specify the parameters and the text will be displayed automatically. You don't have to retrieve it manually.
Regards,
Ravi
Note : Please mark the helpful answers
2006 Jun 22 7:25 AM
Hi,
u r using FM 'READ_TEXT' in driver program. right?
How u r getting the Text ID and Object.....?
2006 Jun 22 7:25 AM
2006 Jun 22 7:40 AM
Hi Aakash,
You have to pass the following paramaters for the FM. Check if tdid is missing.
w_tdspras = 'EN'.
w_tdid = 'F05'.
w_tdobject = 'EKKO'.
w_tdname = is_ekko-ebeln.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = w_tdid
language = w_tdspras
name = w_tdname
object = w_tdobject
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
TABLES
lines = p_it_text
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8
.
Thanks and Regards,
Bharat Kumar Reddy.V
2006 Jun 22 5:35 PM
Hi Akash,
If READ_TEXT function module to get Long text
first u heve to check long text is there or not otherwise
u will get an Error.
So if long text is maintained , there is an entry in
<b>table STXH</b>.
Ex :
select single *
from stxh
where TDOBJECT = < >
and TDNAME = < >
and TDID = < >
and TDSPRAS = < >.
if sy-subrc is initial.
*--Entry exists.
call function 'READ_TEXT'.
endif.
Balavardhan.K
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |