cancel
Showing results for 
Search instead for 
Did you mean: 

Search Documents by Object links matching ALL or NOTHING

Former Member
0 Kudos

Hi Everyone,

I am using ''BAPI_DOCUMENT_GETLIST2" to search for documents present in the DMS documentum server.

Object search is carried out as OR-search and all documents are received which are linked to one of the entered objects or all objects.

What i am expecting to match all the conditions/Object links and perform a AND search.

I also came across a blog discuss this.

http://wiki.scn.sap.com/wiki/display/PLM/2.+Document+Search+-+Functionalities

Is there any SAP note on this regard ?

Please share your thoughts.

Regards

Prabaharan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear all,

Could anyone see the issue above here here ?

Appreciate your help !

Regards

Prabaharan

Former Member
0 Kudos

Hi Prabakar,

Have you did indexing for the documents, As per my understanding the text search will work only on the indexed documents.

If you able to search only with text from CV04N which can also be search from BAPI.

Rgds,

Nayeem.

Former Member
0 Kudos

Hi Neyeemur,

I am not searching for documents based on texts instead it is based on Object links. It is passed into the BAPI to the argurement as shown below. Please suggest.

*Fetch list of Documents
CALL FUNCTION 'BAPI_DOCUMENT_GETLIST2'
EXPORTING
select_documentdata  
= ls_documentdata_dms
language              = iv_language
language_iso         
= iv_language_iso
maxrows              
= iv_maxrows
fulltext_searchstring
= iv_fulltext_searchstring
fulltext_and         
= iv_fulltext_and
fulltext_or          
= iv_fulltext_or
fulltext_searchtype  
= iv_fulltext_searchtype
get_fulltext_active  
= iv_get_fulltext_active
fulltext_active      
= iv_fulltext_active
classtype            
= iv_classtype
classno              
= iv_classnumber
getdocdata           
= 'X'
getobjectlinks       
= 'X'
getdocdescriptions   
= 'X'
getlongtexts         
= 'X'
getstatuslog         
= iv_getstatuslog
getdocfiles          
= 'X'
getcomponents        
= 'X'
getclassification    
= 'X'
getstructures        
= iv_getstructure
getwhereused         
= iv_getwhereused
folder_key           
= is_folder_key
latest               
= iv_latest
latestreleased       
= iv_latestreleased
IMPORTING
return                = cs_return
foundrows            
= cv_foundrows
e_fulltext_active    
= cv_fulltext_active
TABLES
docnumberselection   
= int_docnumberselection
documentdata         
= int_documentdata_dms
objlinkselection     
= int_objectlink_selection
objectlinks          
= ct_objectlinks
classnumrange        
= ct_classnumrange
class_selection      
= int_class_selection
alloclist            
= ct_alloclist
documentdescriptions 
= ct_documentdescriptions
longtexts            
= ct_longtexts
statuslog            
= ct_statuslog
documentfiles        
= ct_documentfiles
components           
= ct_components
characteristicvalues 
= int_char_val
classallocations     
= int_classallocations
documentstructures   
= ct_documentstructure
whereusedlists       
= ct_whereusedlist
all_returns          
= ct_all_returns .

Regards

Prabaharan Asokan

Former Member
0 Kudos

Hi,

Try the BAPI which you mentioned give as below.

GETDOCDATA                      X

GETOBJECTLINKS                  X

in tables 

OBJLINKSELECTION                   1 Entry  ( give the object and execute)

you will get the list in return of  DOCUMENTDATA with the DIR values. Hope my understanding on your requirement is clear.

Rgds,

Nayeem.

Former Member
0 Kudos

Hi Neeyeemur,

Search logic in reference to object links was changed in release ERP2005. Before this search was carried out as a AND-search which means that if you enter more than one object the system search for document info records which are linked to both objects.

This was not very user-friendly as most of the customer expected to get all documents which are linked to at least one of the entered objects. Therefore the system design was changed now the object search is carried out as OR-search and all documents are

received which are linked to one of the entered objects or all objects.


Now i am looking for the inverse scenario mentioned above. Require a AND search instead of OR when passing multiple selections (entries) in Object Links selection


Please suggest .


Regards

Prabaharan