SAP SDOK_CLASSIFY_DOCS Function Module for
SDOK_CLASSIFY_DOCS is a standard sdok classify docs SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 sdok classify docs FM, simply by entering the name SDOK_CLASSIFY_DOCS into the relevant SAP transaction such as SE37 or SE38.
Function Group: SDCE
Program Name: SAPLSDCE
Main Program: SAPLSDCE
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function SDOK_CLASSIFY_DOCS 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 'SDOK_CLASSIFY_DOCS'".
EXPORTING
DOCU' ' = "Document Area
PHIO = "SDOK: BOR key for information object
CLASSHIERARCHY = "
THRESHOLD = "Error threshhold
METHOD = "
* MAXCLASS = '10' "Number of Classes at Classification
* CLIENT = SY-MANDT "R/3 System, Client Number from Logon
IMPORTING
NUMOFCLASSES = "
RCODE = "
TABLES
CLASSLIST = "List of Classes Found as Result of Classification
EXCEPTIONS
DOCUSPACE_UNKNOWN = 1 CATID_UNKNOWN = 2 PHIO_NOT_EXISTING = 3 LANGUAGE_UNKNOWN = 4 RFC_SYS_FAILURE = 5 RFC_COM_FAILURE = 6 NO_RFC_DEST = 7 XERROR = 8
IMPORTING Parameters details for SDOK_CLASSIFY_DOCS
DOCUSPACE - Document Area
Data type: SDOKDOCSPH-DOCUSPACEOptional: No
Call by Reference: No ( called with pass by value option)
PHIO - SDOK: BOR key for information object
Data type: SDOKOBJECTOptional: No
Call by Reference: No ( called with pass by value option)
CLASSHIERARCHY -
Data type: SRETDCATVI-ATTRNAMEOptional: No
Call by Reference: No ( called with pass by value option)
THRESHOLD - Error threshhold
Data type: SRETGSTRUC-THRESHOLDOptional: No
Call by Reference: No ( called with pass by value option)
METHOD -
Data type: SRETGSTRUC-METHODOptional: No
Call by Reference: No ( called with pass by value option)
MAXCLASS - Number of Classes at Classification
Data type: SRETGSTRUC-NOCLASSDefault: '10'
Optional: No
Call by Reference: No ( called with pass by value option)
CLIENT - R/3 System, Client Number from Logon
Data type: SY-MANDTDefault: SY-MANDT
Optional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SDOK_CLASSIFY_DOCS
NUMOFCLASSES -
Data type: SRETGSTRUC-NUMOFHITOptional: No
Call by Reference: No ( called with pass by value option)
RCODE -
Data type: SRETGSTRUC-RCODEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SDOK_CLASSIFY_DOCS
CLASSLIST - List of Classes Found as Result of Classification
Data type: SRETCLASSLOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
DOCUSPACE_UNKNOWN -
Data type:Optional: No
Call by Reference: Yes
CATID_UNKNOWN -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PHIO_NOT_EXISTING - Document does not exist
Data type:Optional: No
Call by Reference: Yes
LANGUAGE_UNKNOWN -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
RFC_SYS_FAILURE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
RFC_COM_FAILURE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_RFC_DEST -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
XERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SDOK_CLASSIFY_DOCS 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: | ||||
lt_classlist | TYPE STANDARD TABLE OF SRETCLASSL, " | |||
lv_docuspace | TYPE SDOKDOCSPH-DOCUSPACE, " | |||
lv_numofclasses | TYPE SRETGSTRUC-NUMOFHIT, " | |||
lv_docuspace_unknown | TYPE SRETGSTRUC, " | |||
lv_phio | TYPE SDOKOBJECT, " | |||
lv_rcode | TYPE SRETGSTRUC-RCODE, " | |||
lv_catid_unknown | TYPE SRETGSTRUC, " | |||
lv_classhierarchy | TYPE SRETDCATVI-ATTRNAME, " | |||
lv_phio_not_existing | TYPE SRETDCATVI, " | |||
lv_threshold | TYPE SRETGSTRUC-THRESHOLD, " | |||
lv_language_unknown | TYPE SRETGSTRUC, " | |||
lv_method | TYPE SRETGSTRUC-METHOD, " | |||
lv_rfc_sys_failure | TYPE SRETGSTRUC, " | |||
lv_maxclass | TYPE SRETGSTRUC-NOCLASS, " '10' | |||
lv_rfc_com_failure | TYPE SRETGSTRUC, " | |||
lv_client | TYPE SY-MANDT, " SY-MANDT | |||
lv_no_rfc_dest | TYPE SY, " | |||
lv_xerror | TYPE SY. " |
  CALL FUNCTION 'SDOK_CLASSIFY_DOCS' " |
EXPORTING | ||
DOCUSPACE | = lv_docuspace | |
PHIO | = lv_phio | |
CLASSHIERARCHY | = lv_classhierarchy | |
THRESHOLD | = lv_threshold | |
METHOD | = lv_method | |
MAXCLASS | = lv_maxclass | |
CLIENT | = lv_client | |
IMPORTING | ||
NUMOFCLASSES | = lv_numofclasses | |
RCODE | = lv_rcode | |
TABLES | ||
CLASSLIST | = lt_classlist | |
EXCEPTIONS | ||
DOCUSPACE_UNKNOWN = 1 | ||
CATID_UNKNOWN = 2 | ||
PHIO_NOT_EXISTING = 3 | ||
LANGUAGE_UNKNOWN = 4 | ||
RFC_SYS_FAILURE = 5 | ||
RFC_COM_FAILURE = 6 | ||
NO_RFC_DEST = 7 | ||
XERROR = 8 | ||
. " SDOK_CLASSIFY_DOCS |
ABAP code using 7.40 inline data declarations to call FM SDOK_CLASSIFY_DOCS
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."SELECT single DOCU' ' FROM SDOKDOCSPH INTO @DATA(ld_docuspace). | ||||
"SELECT single NUMOFHIT FROM SRETGSTRUC INTO @DATA(ld_numofclasses). | ||||
"SELECT single RCODE FROM SRETGSTRUC INTO @DATA(ld_rcode). | ||||
"SELECT single ATTRNAME FROM SRETDCATVI INTO @DATA(ld_classhierarchy). | ||||
"SELECT single THRESHOLD FROM SRETGSTRUC INTO @DATA(ld_threshold). | ||||
"SELECT single METHOD FROM SRETGSTRUC INTO @DATA(ld_method). | ||||
"SELECT single NOCLASS FROM SRETGSTRUC INTO @DATA(ld_maxclass). | ||||
DATA(ld_maxclass) | = '10'. | |||
"SELECT single MANDT FROM SY INTO @DATA(ld_client). | ||||
DATA(ld_client) | = SY-MANDT. | |||
Search for further information about these or an SAP related objects