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

TREX search DB Table.

joseidrobo
Explorer
0 Likes
587

Hi,

I'm using NW 2004 (6.40). Can I to use TREX to index a ABAP table?. How I can do that?.

Best Regards,

Jose Idrobo.

2 REPLIES 2
Read only

Former Member
0 Likes
500

TREX search engine and writing own solution by using ABAP Client. Everything is ok except files content like XLS, DOC and so on. When we try to post binary content to the FM TREX_EXT_INDEX it is not processed by TREX and only attributes search is available.

Test example:

code

data lt_data type table of char100.

data l_size type i.

data lt_doc type trext_index_docs.

data ls_doc type trexs_index_doc.

call function 'GUI_UPLOAD'

exporting

filename = 'D:\test.xls'

filetype = 'BIN'

importing

filelength = l_size

tables

data_tab = lt_data.

ls_doc-doc_key = '00001'.

ls_doc-doc_langu = 'EN'.

ls_doc-doc_type = 'B'.

ls_doc-mime_type = 'application/excel'.

call function 'SCMS_BINARY_TO_STRING'

exporting

input_length = l_size

importing

text_buffer = ls_doc-content

tables

binary_tab = lt_data.

append ls_doc to lt_doc.

call function 'TREX_EXT_INDEX'

exporting

i_index_id = me->index_id

i_rfc_destination = me->rfc_dest

i_index_document_list = it_doc.

[/code]

Document is indexed without content.

Kevin

Read only

joseidrobo
Explorer
0 Likes
500

Hi Kevin,

Thanks you, but I want to index a ABAP table like PA0002 for example. How I can do that?.

And How I can use this index in abap program?.

Best Regards,

Jose Idrobo.