TREX_EXT_SHOW_INDEX is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name TREX_EXT_SHOW_INDEX into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
TREX_EXT_ADMINISTRATION
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'TREX_EXT_SHOW_INDEX' "show index
EXPORTING
i_index_id = " trex_rfc-index_id Index Id
i_rfc_destination = " trex_rfc-rfc_destination Logical Destination (Specified in Function Call)
* i_calculation_view = " string Calculation view
* i_schema_name = '' " csequence HANA only: schema name
IMPORTING
e_return_code = " trex_rfc-return_code Return Code
e_return_text = " trex_rfc-return_text Return Text
e_languages = " trex_rfc-return_text Languages (separated by comma)
e_description = " trex_rfc-description Description
e_indexserver_location = " trex_rfc-location IndexServer Location
e_use_queueserver = " trex_rfc-flag
e_queueserver_location = " trex_rfc-location QueueServer Location
e_creation = " trex_rfc-location Creation date
e_modification = " trex_rfc-location Modification date
e_is_public = " trex_rfc-flag
e_textmining_relevant = " trex_rfc-flag
e_token_separators = " trex_rfc-separator
e_number_separators = " trex_rfc-separator
e_memory_index = " trexd_memory_only X: Memory Index
e_keep_content = " trex_rfc-flag
e_precalculate_features = " trex_rfc-flag
e_is_searchable = " trex_rfc-flag
e_auto_create_languages = " trex_rfc-flag
e_size_for_delta_index = " trex_rfc-numc
e_multilang_docs = " trex_rfc-flag
e_duplicate_detection = " trex_rfc-flag
e_is_writable = " trex_rfc-flag
e_doc_counter = " trex_rfc-numc Obsolete, do not use
e_attribute_definitions = " trext_attr_def Attribute definitions
e_attribute_definitions2 = " hdbt_attr_def HANA only: Attribute Definition
e_index_state = " trex_rfc-flag Index state in TREX
e_index_type = " trex_rfc-flag Obsolete: Index Type
e_logical_index_type = " trex_rfc-flag Obsolete: Logical Index Type
e_ext_index_type = " trexd_index_type Index Type (see Domain Values)
e_disk_free_space = " int4 Disk Free Space [MB]
e_physical_indexes = " trext_indexes Splitted Index: index is splitted in parts
e_language_indexes = " trext_indexes Language Index: idx is splitted in languages
e_taxonomies = " trext_taxonomy_info Taxonomies
e_extensions = " trext_extensions Extensions
e_language_index_info = " trext_language_index_info info about physical index (for earch language of this index)
e_delta_index_info = " trext_delta_index_info Information about a delta index in TREX
e_delta1_index_info = " trext_new_delta_index_info Information about a delta index in TREX
e_delta2_index_info = " trext_new_delta_index_info Information about a delta2 index in TREX
e_key_attributes = " trext_attributes Key attributes
e_join_indexes = " trext_join_index Join indexes
e_static_join_conditions = " trext_static_join_condition static join condition
e_view_attributes = " trext_view_attributes View attributes
e_view_attribute_groups = " trext_view_attribute_groups View Attribute Groups
e_semantic_relations = " trext_semantic_relations Semantic relations
e_business_object_views = " trext_bo_views Business object views
e_join_paths = " trext_join_paths Join paths
e_key_figures = " trext_key_figure Key figures
e_key_figures_2 = " trext_key_figure_2 Key figures (extended)
e_default_view = " trexs_view_attribute-view_name Name of the default view
e_constraints = " trext_constraints Constraints
e_constraints_long = " trext_constraints_l Constraints (no length limitation)
e_preload_attributes = " trext_attributes Preload Attributes
e_preload_languages = " trext_languages Preload Languages (ISO 639)
e_fast_preprocessing = " trex_rfc-flag
e_freestyle_search_attributes = " trext_attributes FreeStyle Attributes
e_all_attrs_freestyle = " trex_rfc-boolean 1: all Attrs are FreeStyle relevant
e_no_physical_indexes = " trex_rfc-numc number of physical indexes to be created
e_docs_change_language = " trex_rfc-boolean
e_insert_only = " trex_rfc-flag
e_use_temporary_delta_indexes = " trex_rfc-boolean
e_fast_update_with_temp_delta = " trex_rfc-boolean
e_analyzer_type = " trex_rfc-analyzer_type
e_partition_attributes = " trext_attributes
e_partition_specification = " string
e_set_transactional = " trex_rfc-boolean
e_hierarchy_metadata = " trexs_hierarchy_metadata Hierarchy metadata
e_range_attributes = " trext_range_attributes Range attributes
e_table_group = " hdbs_table_group HANA: table group
EXCEPTIONS
CONVERSION_ERROR = 1 " Error during conversion to UTF-8
ERROR = 2 " Error, see error message
. " TREX_EXT_SHOW_INDEX
The ABAP code below is a full code listing to execute function module TREX_EXT_SHOW_INDEX including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).
| ld_e_return_code | TYPE TREX_RFC-RETURN_CODE , |
| ld_e_return_text | TYPE TREX_RFC-RETURN_TEXT , |
| ld_e_languages | TYPE TREX_RFC-RETURN_TEXT , |
| ld_e_description | TYPE TREX_RFC-DESCRIPTION , |
| ld_e_indexserver_location | TYPE TREX_RFC-LOCATION , |
| ld_e_use_queueserver | TYPE TREX_RFC-FLAG , |
| ld_e_queueserver_location | TYPE TREX_RFC-LOCATION , |
| ld_e_creation | TYPE TREX_RFC-LOCATION , |
| ld_e_modification | TYPE TREX_RFC-LOCATION , |
| ld_e_is_public | TYPE TREX_RFC-FLAG , |
| ld_e_textmining_relevant | TYPE TREX_RFC-FLAG , |
| ld_e_token_separators | TYPE TREX_RFC-SEPARATOR , |
| ld_e_number_separators | TYPE TREX_RFC-SEPARATOR , |
| ld_e_memory_index | TYPE TREXD_MEMORY_ONLY , |
| ld_e_keep_content | TYPE TREX_RFC-FLAG , |
| ld_e_precalculate_features | TYPE TREX_RFC-FLAG , |
| ld_e_is_searchable | TYPE TREX_RFC-FLAG , |
| ld_e_auto_create_languages | TYPE TREX_RFC-FLAG , |
| ld_e_size_for_delta_index | TYPE TREX_RFC-NUMC , |
| ld_e_multilang_docs | TYPE TREX_RFC-FLAG , |
| ld_e_duplicate_detection | TYPE TREX_RFC-FLAG , |
| ld_e_is_writable | TYPE TREX_RFC-FLAG , |
| ld_e_doc_counter | TYPE TREX_RFC-NUMC , |
| ld_e_attribute_definitions | TYPE TREXT_ATTR_DEF , |
| ld_e_attribute_definitions2 | TYPE HDBT_ATTR_DEF , |
| ld_e_index_state | TYPE TREX_RFC-FLAG , |
| ld_e_index_type | TYPE TREX_RFC-FLAG , |
| ld_e_logical_index_type | TYPE TREX_RFC-FLAG , |
| ld_e_ext_index_type | TYPE TREXD_INDEX_TYPE , |
| ld_e_disk_free_space | TYPE INT4 , |
| ld_e_physical_indexes | TYPE TREXT_INDEXES , |
| ld_e_language_indexes | TYPE TREXT_INDEXES , |
| ld_e_taxonomies | TYPE TREXT_TAXONOMY_INFO , |
| ld_e_extensions | TYPE TREXT_EXTENSIONS , |
| ld_e_language_index_info | TYPE TREXT_LANGUAGE_INDEX_INFO , |
| ld_e_delta_index_info | TYPE TREXT_DELTA_INDEX_INFO , |
| ld_e_delta1_index_info | TYPE TREXT_NEW_DELTA_INDEX_INFO , |
| ld_e_delta2_index_info | TYPE TREXT_NEW_DELTA_INDEX_INFO , |
| ld_e_key_attributes | TYPE TREXT_ATTRIBUTES , |
| ld_e_join_indexes | TYPE TREXT_JOIN_INDEX , |
| ld_e_static_join_conditions | TYPE TREXT_STATIC_JOIN_CONDITION , |
| ld_e_view_attributes | TYPE TREXT_VIEW_ATTRIBUTES , |
| ld_e_view_attribute_groups | TYPE TREXT_VIEW_ATTRIBUTE_GROUPS , |
| ld_e_semantic_relations | TYPE TREXT_SEMANTIC_RELATIONS , |
| ld_e_business_object_views | TYPE TREXT_BO_VIEWS , |
| ld_e_join_paths | TYPE TREXT_JOIN_PATHS , |
| ld_e_key_figures | TYPE TREXT_KEY_FIGURE , |
| ld_e_key_figures_2 | TYPE TREXT_KEY_FIGURE_2 , |
| ld_e_default_view | TYPE TREXS_VIEW_ATTRIBUTE-VIEW_NAME , |
| ld_e_constraints | TYPE TREXT_CONSTRAINTS , |
| ld_e_constraints_long | TYPE TREXT_CONSTRAINTS_L , |
| ld_e_preload_attributes | TYPE TREXT_ATTRIBUTES , |
| ld_e_preload_languages | TYPE TREXT_LANGUAGES , |
| ld_e_fast_preprocessing | TYPE TREX_RFC-FLAG , |
| ld_e_freestyle_search_attributes | TYPE TREXT_ATTRIBUTES , |
| ld_e_all_attrs_freestyle | TYPE TREX_RFC-BOOLEAN , |
| ld_e_no_physical_indexes | TYPE TREX_RFC-NUMC , |
| ld_e_docs_change_language | TYPE TREX_RFC-BOOLEAN , |
| ld_e_insert_only | TYPE TREX_RFC-FLAG , |
| ld_e_use_temporary_delta_indexes | TYPE TREX_RFC-BOOLEAN , |
| ld_e_fast_update_with_temp_delta | TYPE TREX_RFC-BOOLEAN , |
| ld_e_analyzer_type | TYPE TREX_RFC-ANALYZER_TYPE , |
| ld_e_partition_attributes | TYPE TREXT_ATTRIBUTES , |
| ld_e_partition_specification | TYPE STRING , |
| ld_e_set_transactional | TYPE TREX_RFC-BOOLEAN , |
| ld_e_hierarchy_metadata | TYPE TREXS_HIERARCHY_METADATA , |
| ld_e_range_attributes | TYPE TREXT_RANGE_ATTRIBUTES , |
| ld_e_table_group | TYPE HDBS_TABLE_GROUP . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_e_return_code | TYPE TREX_RFC-RETURN_CODE , |
| ld_i_index_id | TYPE TREX_RFC-INDEX_ID , |
| ld_e_return_text | TYPE TREX_RFC-RETURN_TEXT , |
| ld_i_rfc_destination | TYPE TREX_RFC-RFC_DESTINATION , |
| ld_e_languages | TYPE TREX_RFC-RETURN_TEXT , |
| ld_i_calculation_view | TYPE STRING , |
| ld_e_description | TYPE TREX_RFC-DESCRIPTION , |
| ld_i_schema_name | TYPE CSEQUENCE , |
| ld_e_indexserver_location | TYPE TREX_RFC-LOCATION , |
| ld_e_use_queueserver | TYPE TREX_RFC-FLAG , |
| ld_e_queueserver_location | TYPE TREX_RFC-LOCATION , |
| ld_e_creation | TYPE TREX_RFC-LOCATION , |
| ld_e_modification | TYPE TREX_RFC-LOCATION , |
| ld_e_is_public | TYPE TREX_RFC-FLAG , |
| ld_e_textmining_relevant | TYPE TREX_RFC-FLAG , |
| ld_e_token_separators | TYPE TREX_RFC-SEPARATOR , |
| ld_e_number_separators | TYPE TREX_RFC-SEPARATOR , |
| ld_e_memory_index | TYPE TREXD_MEMORY_ONLY , |
| ld_e_keep_content | TYPE TREX_RFC-FLAG , |
| ld_e_precalculate_features | TYPE TREX_RFC-FLAG , |
| ld_e_is_searchable | TYPE TREX_RFC-FLAG , |
| ld_e_auto_create_languages | TYPE TREX_RFC-FLAG , |
| ld_e_size_for_delta_index | TYPE TREX_RFC-NUMC , |
| ld_e_multilang_docs | TYPE TREX_RFC-FLAG , |
| ld_e_duplicate_detection | TYPE TREX_RFC-FLAG , |
| ld_e_is_writable | TYPE TREX_RFC-FLAG , |
| ld_e_doc_counter | TYPE TREX_RFC-NUMC , |
| ld_e_attribute_definitions | TYPE TREXT_ATTR_DEF , |
| ld_e_attribute_definitions2 | TYPE HDBT_ATTR_DEF , |
| ld_e_index_state | TYPE TREX_RFC-FLAG , |
| ld_e_index_type | TYPE TREX_RFC-FLAG , |
| ld_e_logical_index_type | TYPE TREX_RFC-FLAG , |
| ld_e_ext_index_type | TYPE TREXD_INDEX_TYPE , |
| ld_e_disk_free_space | TYPE INT4 , |
| ld_e_physical_indexes | TYPE TREXT_INDEXES , |
| ld_e_language_indexes | TYPE TREXT_INDEXES , |
| ld_e_taxonomies | TYPE TREXT_TAXONOMY_INFO , |
| ld_e_extensions | TYPE TREXT_EXTENSIONS , |
| ld_e_language_index_info | TYPE TREXT_LANGUAGE_INDEX_INFO , |
| ld_e_delta_index_info | TYPE TREXT_DELTA_INDEX_INFO , |
| ld_e_delta1_index_info | TYPE TREXT_NEW_DELTA_INDEX_INFO , |
| ld_e_delta2_index_info | TYPE TREXT_NEW_DELTA_INDEX_INFO , |
| ld_e_key_attributes | TYPE TREXT_ATTRIBUTES , |
| ld_e_join_indexes | TYPE TREXT_JOIN_INDEX , |
| ld_e_static_join_conditions | TYPE TREXT_STATIC_JOIN_CONDITION , |
| ld_e_view_attributes | TYPE TREXT_VIEW_ATTRIBUTES , |
| ld_e_view_attribute_groups | TYPE TREXT_VIEW_ATTRIBUTE_GROUPS , |
| ld_e_semantic_relations | TYPE TREXT_SEMANTIC_RELATIONS , |
| ld_e_business_object_views | TYPE TREXT_BO_VIEWS , |
| ld_e_join_paths | TYPE TREXT_JOIN_PATHS , |
| ld_e_key_figures | TYPE TREXT_KEY_FIGURE , |
| ld_e_key_figures_2 | TYPE TREXT_KEY_FIGURE_2 , |
| ld_e_default_view | TYPE TREXS_VIEW_ATTRIBUTE-VIEW_NAME , |
| ld_e_constraints | TYPE TREXT_CONSTRAINTS , |
| ld_e_constraints_long | TYPE TREXT_CONSTRAINTS_L , |
| ld_e_preload_attributes | TYPE TREXT_ATTRIBUTES , |
| ld_e_preload_languages | TYPE TREXT_LANGUAGES , |
| ld_e_fast_preprocessing | TYPE TREX_RFC-FLAG , |
| ld_e_freestyle_search_attributes | TYPE TREXT_ATTRIBUTES , |
| ld_e_all_attrs_freestyle | TYPE TREX_RFC-BOOLEAN , |
| ld_e_no_physical_indexes | TYPE TREX_RFC-NUMC , |
| ld_e_docs_change_language | TYPE TREX_RFC-BOOLEAN , |
| ld_e_insert_only | TYPE TREX_RFC-FLAG , |
| ld_e_use_temporary_delta_indexes | TYPE TREX_RFC-BOOLEAN , |
| ld_e_fast_update_with_temp_delta | TYPE TREX_RFC-BOOLEAN , |
| ld_e_analyzer_type | TYPE TREX_RFC-ANALYZER_TYPE , |
| ld_e_partition_attributes | TYPE TREXT_ATTRIBUTES , |
| ld_e_partition_specification | TYPE STRING , |
| ld_e_set_transactional | TYPE TREX_RFC-BOOLEAN , |
| ld_e_hierarchy_metadata | TYPE TREXS_HIERARCHY_METADATA , |
| ld_e_range_attributes | TYPE TREXT_RANGE_ATTRIBUTES , |
| ld_e_table_group | TYPE HDBS_TABLE_GROUP . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name TREX_EXT_SHOW_INDEX or its description.