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

Backup text

Former Member
0 Likes
666

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.

3 REPLIES 3
Read only

Former Member
0 Likes
538

hi

read_text, this functiom modul used for standard texts like text symbols. or by using tcode so10.

praveen

Read only

0 Likes
538

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.

Read only

0 Likes
538

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.

-