SAP SDOK_DOCUSPACE_SEARCH Function Module for









SDOK_DOCUSPACE_SEARCH is a standard sdok docuspace search 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 docuspace search FM, simply by entering the name SDOK_DOCUSPACE_SEARCH 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_DOCUSPACE_SEARCH 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_DOCUSPACE_SEARCH'"
EXPORTING
DOCU' ' = "Document management area
LAISO = "
* IV_TREX_REQ_GUID = "

IMPORTING
RCODE = "
NUMOFHITS = "
LAST_SEARCH_LIMIT = "
X_NO_MORE_HITS = "
ES_ERRORCODE = "

TABLES
CATATTRIBUTTAB = "
QUERYPARAMTAB = "
QUERYTAB = "
TERMATTRTAB = "
DOCATTRTAB = "
RESULTDOCTAB = "
RESULTATTRTAB = "

EXCEPTIONS
NO_INDEX_SPACE = 1 NO_RFC_DEST = 10 NO_INDEX_CATEGORY = 2 CATID_UNKNOWN = 3 INTERN_ERROR = 4 PARAMETER_ERROR = 5 LANGUAGE_ERROR = 6 ATTRIBUTE_ERROR = 7 RFC_SYS_FAILURE = 8 RFC_COM_FAILURE = 9
.



IMPORTING Parameters details for SDOK_DOCUSPACE_SEARCH

DOCUSPACE - Document management area

Data type: SDOKDOCSPH-DOCUSPACE
Optional: No
Call by Reference: No ( called with pass by value option)

LAISO -

Data type: SRETA101-LAISO
Optional: No
Call by Reference: No ( called with pass by value option)

IV_TREX_REQ_GUID -

Data type: SYS_UID
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SDOK_DOCUSPACE_SEARCH

RCODE -

Data type: SRETGSTRUC-RCODE
Optional: No
Call by Reference: No ( called with pass by value option)

NUMOFHITS -

Data type: SRETGSTRUC-NUMOFHIT
Optional: No
Call by Reference: No ( called with pass by value option)

LAST_SEARCH_LIMIT -

Data type: SRET_RESFT
Optional: No
Call by Reference: No ( called with pass by value option)

X_NO_MORE_HITS -

Data type: SY-DATAR
Optional: No
Call by Reference: No ( called with pass by value option)

ES_ERRORCODE -

Data type: SRETSERRORCODE
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for SDOK_DOCUSPACE_SEARCH

CATATTRIBUTTAB -

Data type: SRETCATATR
Optional: No
Call by Reference: No ( called with pass by value option)

QUERYPARAMTAB -

Data type: SRETQATR1
Optional: No
Call by Reference: No ( called with pass by value option)

QUERYTAB -

Data type: SRETQYSE
Optional: No
Call by Reference: No ( called with pass by value option)

TERMATTRTAB -

Data type: SRETTERATR
Optional: No
Call by Reference: No ( called with pass by value option)

DOCATTRTAB -

Data type: SRETATR2
Optional: No
Call by Reference: No ( called with pass by value option)

RESULTDOCTAB -

Data type: SDOKRESDOC
Optional: No
Call by Reference: No ( called with pass by value option)

RESULTATTRTAB -

Data type: SRETDCATVL
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_INDEX_SPACE - No index space was defined

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)

NO_INDEX_CATEGORY - No index was found

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

CATID_UNKNOWN -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INTERN_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PARAMETER_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

LANGUAGE_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ATTRIBUTE_ERROR -

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)

Copy and paste ABAP code example for SDOK_DOCUSPACE_SEARCH 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_rcode  TYPE SRETGSTRUC-RCODE, "   
lv_docuspace  TYPE SDOKDOCSPH-DOCUSPACE, "   
lt_catattributtab  TYPE STANDARD TABLE OF SRETCATATR, "   
lv_no_index_space  TYPE SRETCATATR, "   
lv_no_rfc_dest  TYPE SRETCATATR, "   
lv_laiso  TYPE SRETA101-LAISO, "   
lv_numofhits  TYPE SRETGSTRUC-NUMOFHIT, "   
lt_queryparamtab  TYPE STANDARD TABLE OF SRETQATR1, "   
lv_no_index_category  TYPE SRETQATR1, "   
lt_querytab  TYPE STANDARD TABLE OF SRETQYSE, "   
lv_catid_unknown  TYPE SRETQYSE, "   
lv_iv_trex_req_guid  TYPE SYS_UID, "   
lv_last_search_limit  TYPE SRET_RESFT, "   
lt_termattrtab  TYPE STANDARD TABLE OF SRETTERATR, "   
lv_intern_error  TYPE SRETTERATR, "   
lv_x_no_more_hits  TYPE SY-DATAR, "   
lt_docattrtab  TYPE STANDARD TABLE OF SRETATR2, "   
lv_es_errorcode  TYPE SRETSERRORCODE, "   
lv_parameter_error  TYPE SRETSERRORCODE, "   
lt_resultdoctab  TYPE STANDARD TABLE OF SDOKRESDOC, "   
lv_language_error  TYPE SDOKRESDOC, "   
lt_resultattrtab  TYPE STANDARD TABLE OF SRETDCATVL, "   
lv_attribute_error  TYPE SRETDCATVL, "   
lv_rfc_sys_failure  TYPE SRETDCATVL, "   
lv_rfc_com_failure  TYPE SRETDCATVL. "   

  CALL FUNCTION 'SDOK_DOCUSPACE_SEARCH'  "
    EXPORTING
         DOCUSPACE = lv_docuspace
         LAISO = lv_laiso
         IV_TREX_REQ_GUID = lv_iv_trex_req_guid
    IMPORTING
         RCODE = lv_rcode
         NUMOFHITS = lv_numofhits
         LAST_SEARCH_LIMIT = lv_last_search_limit
         X_NO_MORE_HITS = lv_x_no_more_hits
         ES_ERRORCODE = lv_es_errorcode
    TABLES
         CATATTRIBUTTAB = lt_catattributtab
         QUERYPARAMTAB = lt_queryparamtab
         QUERYTAB = lt_querytab
         TERMATTRTAB = lt_termattrtab
         DOCATTRTAB = lt_docattrtab
         RESULTDOCTAB = lt_resultdoctab
         RESULTATTRTAB = lt_resultattrtab
    EXCEPTIONS
        NO_INDEX_SPACE = 1
        NO_RFC_DEST = 10
        NO_INDEX_CATEGORY = 2
        CATID_UNKNOWN = 3
        INTERN_ERROR = 4
        PARAMETER_ERROR = 5
        LANGUAGE_ERROR = 6
        ATTRIBUTE_ERROR = 7
        RFC_SYS_FAILURE = 8
        RFC_COM_FAILURE = 9
. " SDOK_DOCUSPACE_SEARCH




ABAP code using 7.40 inline data declarations to call FM SDOK_DOCUSPACE_SEARCH

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 RCODE FROM SRETGSTRUC INTO @DATA(ld_rcode).
 
"SELECT single DOCUSPACE FROM SDOKDOCSPH INTO @DATA(ld_docuspace).
 
 
 
 
"SELECT single LAISO FROM SRETA101 INTO @DATA(ld_laiso).
 
"SELECT single NUMOFHIT FROM SRETGSTRUC INTO @DATA(ld_numofhits).
 
 
 
 
 
 
 
 
 
"SELECT single DATAR FROM SY INTO @DATA(ld_x_no_more_hits).
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!