‎2007 Apr 16 10:15 AM
Hello,
i need to backup texts from table stxl (data cluster) and i am using read_text to get an internal table. The texts are word documents (doc) and i need to export them to a file in a pc.
Now i am using read_text to get the text (in a tline table) and gui_download (with the tline table) to download the file to the pc. But it doesn´t work.
Any ideas? Thanks.
‎2007 Apr 16 10:19 AM
hi
read_text, this functiom modul used for standard texts like text symbols. or by using tcode so10.
praveen
‎2007 Apr 25 1:28 PM
Hi
how can I search for a word through all standard texts in system? My client wants to find out all the standard texts containing the name of a person. Please urgent!!!
Thanks in advance.
‎2007 Apr 25 3:57 PM
the code below was the solution:
-
REPORT Z_SEEK_STANDARDTEXTE .
parameters: p_sttxt like stxh-tdname.
data: begin of t_stxh occurs 0,
tdname like stxh-tdname,
tdspras like stxh-tdspras,
tdid like stxh-tdid,
end of t_stxh.
data t_lines like tline occurs 0 with header line.
select tdname tdspras tdid from stxh into table t_stxh
where tdobject = 'TEXT'.
loop at t_stxh.
refresh t_lines.
call function 'READ_TEXT'
exporting
CLIENT = SY-MANDT
id = t_stxh-tdid
language = t_stxh-tdspras
name = t_stxh-tdname
object = 'TEXT'
tables
lines = t_lines
exceptions
id = 0
language = 0
name = 0
not_found = 0
object = 0
reference_check = 0
wrong_access_to_archive = 0
others = 0 .
search t_lines for p_sttxt.
if sy-subrc eq 0.
write:/ t_stxh-tdname, t_stxh-tdid, t_stxh-tdspras.
endif.
endloop.
-