Functionality The function module looks for info objects with full-text search in INCLUDE DESTINATION OBJECT DOKU ID TX If the parameter-table 'SEARCH_AREAS' is not given, then functionmodules 'IW_C_AREA_GET' and 'IW_C_CLASSES_GET' are used to receive thisareas from the given class. If the system could not find a conformity between areas and class, thenan exception 'CLASS_DOES_NOT_MATCH_AREA' is generated. For receiving results the function 'INFO_OBJECTS_FULLTEXT_SEARCH'>is called locally or in respective KW system. In turn, this functioncalls another module 'IO_C_FULLTEXT_SEARCH' > with its form 'SDOK_DOCUSPACE_SEARCH', which returnes result withrang of comformity as well as LOIO and PHIO class and ID. After that, the table 'IWBRESULTTAB' is filled with LOIO-URL(archive-link) by the function 'SDOK_LOIO_CALL_VIEWER' and with valuefor field 'DESCRIPTION' by the function 'INFO_OBJECTS_PROPERTIES_GET'.Example L_CLASS = 'IWB2TXT'. L_AREAS = 'IWBTRAIN'. APPEND L_AREAS. L_CONTEXT-NAME = 'RELEASE'. L_CONTEXT-VALUE = '46D'. APPEND L_CONTEXT. L_CONTEXT-NAME = 'LANGUAGE'. L_CONTEXT-VALUE = 'D'. APPEND L_CONTEXT. L_QUERYTAB-SECOUNT = 00001. L_QUERYTAB-VALUE1 = 'test'. L_QUERYTAB-ROWTYPE = 'T'. APPEND L_QUERYTAB. L_QUERYTAB-SECOUNT = 00002. L_QUERYTAB-VALUE1 = 'ABAP'. L_QUERYTAB-ROWTYPE = 'T'. APPEND L_QUERYTAB. L_QUERYTAB-SECOUNT = 00003. L_QUERYTAB-VALUE1 = 'AND'. L_QUERYTAB-ROWTYPE = 'O'. APPEND L_QUERYTAB. CALL FUNCTION 'SIW_INFO_OBJECTS_FT_SEARCH' EXPORTING NO_MAX_HIT = 100 CLASS = L_CLASS IMPORTING ERROR_MSG = L_ERROR_MSG TABLES SEARCH_AREAS = L_AREAS CONTEXT = L_CONTEXT CATATTRIBUTTAB = L_CATATTRIBUT QUERYPARAMTAB = L_QUERYPARAMTAB QUERYTAB = L_QUERYTAB TERMATTRTAB = L_TERMATTRTAB DOCATTRTAB = L_DOCATTR IWBRESULTTAB = L_RESULT RESULTATTRTAB = L_RESULTATTRTAB EXCEPTIONS CLASS_DOES_NOT_MATCH_AREA = 1 OTHERS = 2. *** Then any function modules which display the result, e.g. *** CALL FUNCTION 'INFO_OBJECTS_DISPLAY_LIST' .... . Notes Parameters 'SUPPRESS_AUTHORITY_CHECK' and 'INTERNAL_REPRESENTATION'always equal 'C_NO'. It is better to define the parameter 'NO_MAX_HIT'. If parameter 'EXECUTE_COMBI_SEARCH' is not defined, then simplealgorithm for searching starts. Description INCLUDE ERROR_MSG OBJECT DOKU ID TX |