Menu

SAP Function Module TREX_ARW_CLASSIFY_DOCUMENTS

Classifies documents: for each document an appropriate class is proposed

The Function Module TREX_ARW_CLASSIFY_DOCUMENTS (Classifies documents: for each document an appropriate class is proposed) is a standard Function Module in SAP ERP and is part of the function group TREX_ARW_TM within the package STREX.

Technical Information

Function Module TREX_ARW_CLASSIFY_DOCUMENTS
Short Text Classifies documents: for each document an appropriate class is proposed
Function Group TREX_ARW_TM
Package STREX
Module Type Remote-Enabled

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
CLASSIFY_ATTR TYPE TREXX_RFC-CLASSIFY_ATTR Classification attribute
CLASSIFY_METHOD TYPE TREXX_RFC-CLASSIFY_METHOD KNN, CENTROID, SAPMETHOD
CLASSIFY_TYPE TYPE TREXX_RFC-CLASSIFY_TYPE QUERY_BASED, EXAMPLE_BASED, TYPE_BOTH, TYPE_UNDEFINED
DOC_SEL_QUERY TYPE TREXX_RFC-DOC_SEL_QUERY DocumentSelectionQuery
INDEXSERVER_LOCATION TYPE TREXX_RFC-LOCATION Host:Port
INDEX_ID TYPE TREXX_RFC-INDEX_ID IndexId
LANGUAGE TYPE TREXX_RFC-LANGUAGE Language
MAX_RESULTS TYPE TREXX_RFC-NUMC Number of results
RFC_DESTINATION TYPE TREXX_RFC-RFC_DESTINATION RFC Destination
THRESHOLD TYPE TREXX_RFC-NUMC Threshold
USE_KEYWORDS TYPE TREXX_RFC-FLAG Keywords are used

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
RETURN_CODE TYPE TREXX_RFC-RETURN_CODE Returncode
RETURN_TEXT TYPE TREXX_RFC-RETURN_TEXT Returntext

Changing Parameters

This function module does not define any CHANGING parameters.

Table Parameters

These are the TABLE parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
DOC_ATTRIBUTES LIKE TREXX_RFC_DOC_ATTRIBUTES Attributes of the documents
DOC_CONTENT LIKE TREXX_RFC_DOC_CONTENT Content of the documents
RESULT_CONTAINER LIKE TREXX_RFC_RESULT_CONTAINER TextMiningResult contains several objects of type ResultElem
RESULT_ELEM LIKE TREXX_RFC_RESULT_ELEMENT element of the TextMiningResultContainer
SEARCH_DOCS LIKE TREXX_RFC_SEARCH_DOCS Documents for Classification

Exceptions

These are the Exceptions of this function module.

Exception Name Short Text
CONVERSION_ERROR Fehler beim Konvertieren nach utf8