SAP SKWR_DOCS_CLASSIFY Function Module for Documentation Classification
SKWR_DOCS_CLASSIFY is a standard skwr docs classify SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Documentation Classification processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for skwr docs classify FM, simply by entering the name SKWR_DOCS_CLASSIFY into the relevant SAP transaction such as SE37 or SE38.
Function Group: SKWR_TEXT_MINING
Program Name: SAPLSKWR_TEXT_MINING
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function SKWR_DOCS_CLASSIFY pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'SKWR_DOCS_CLASSIFY'"Documentation Classification.
EXPORTING
THRESHOLD = "
* MAX_CLASSES = 5 "
TAXONOMY = "
INDEX = "Index ID
* PHIOS = "
* DOCUMENTS = "
IMPORTING
CODE_PAGE = "Character Set ID
DOC_CLASSES = "Document Taxonomy Classes
EXCEPTIONS
COMMUNICATION_ERROR = 1 XML_ERROR = 2 FAILED = 3 NO_INDEX_SPECIFIED = 4 PHIOS_OR_DOCUMENTS_REQUIRED = 5
IMPORTING Parameters details for SKWR_DOCS_CLASSIFY
THRESHOLD -
Data type: STRX_DECOptional: No
Call by Reference: No ( called with pass by value option)
MAX_CLASSES -
Data type: IDefault: 5
Optional: Yes
Call by Reference: No ( called with pass by value option)
TAXONOMY -
Data type: SKWR_TAXIDOptional: No
Call by Reference: No ( called with pass by value option)
INDEX - Index ID
Data type: STRX_IXIDOptional: No
Call by Reference: No ( called with pass by value option)
PHIOS -
Data type: SKWF_IOSOptional: Yes
Call by Reference: No ( called with pass by value option)
DOCUMENTS -
Data type: SKWR_DOCSOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SKWR_DOCS_CLASSIFY
CODE_PAGE - Character Set ID
Data type: STRINGOptional: No
Call by Reference: No ( called with pass by value option)
DOC_CLASSES - Document Taxonomy Classes
Data type: SKWR_DCLASOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
COMMUNICATION_ERROR -
Data type:Optional: No
Call by Reference: Yes
XML_ERROR -
Data type:Optional: No
Call by Reference: Yes
FAILED -
Data type:Optional: No
Call by Reference: Yes
NO_INDEX_SPECIFIED -
Data type:Optional: No
Call by Reference: Yes
PHIOS_OR_DOCUMENTS_REQUIRED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SKWR_DOCS_CLASSIFY Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_code_page | TYPE STRING, " | |||
| lv_threshold | TYPE STRX_DEC, " | |||
| lv_communication_error | TYPE STRX_DEC, " | |||
| lv_xml_error | TYPE STRX_DEC, " | |||
| lv_doc_classes | TYPE SKWR_DCLAS, " | |||
| lv_max_classes | TYPE I, " 5 | |||
| lv_failed | TYPE I, " | |||
| lv_taxonomy | TYPE SKWR_TAXID, " | |||
| lv_index | TYPE STRX_IXID, " | |||
| lv_no_index_specified | TYPE STRX_IXID, " | |||
| lv_phios | TYPE SKWF_IOS, " | |||
| lv_phios_or_documents_required | TYPE SKWF_IOS, " | |||
| lv_documents | TYPE SKWR_DOCS. " |
|   CALL FUNCTION 'SKWR_DOCS_CLASSIFY' "Documentation Classification |
| EXPORTING | ||
| THRESHOLD | = lv_threshold | |
| MAX_CLASSES | = lv_max_classes | |
| TAXONOMY | = lv_taxonomy | |
| INDEX | = lv_index | |
| PHIOS | = lv_phios | |
| DOCUMENTS | = lv_documents | |
| IMPORTING | ||
| CODE_PAGE | = lv_code_page | |
| DOC_CLASSES | = lv_doc_classes | |
| EXCEPTIONS | ||
| COMMUNICATION_ERROR = 1 | ||
| XML_ERROR = 2 | ||
| FAILED = 3 | ||
| NO_INDEX_SPECIFIED = 4 | ||
| PHIOS_OR_DOCUMENTS_REQUIRED = 5 | ||
| . " SKWR_DOCS_CLASSIFY | ||
ABAP code using 7.40 inline data declarations to call FM SKWR_DOCS_CLASSIFY
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| DATA(ld_max_classes) | = 5. | |||
Search for further information about these or an SAP related objects