SAP Function SDOK_LOIO_FIND_BY_QUERY - Find Logical Object Using Search Query

Parameter Reference Type Length Default Optional Text
CLIENT SYST-MANDT C 3 SY-MANDT X Client
OBJECT_CLASS SDOKLOCL-LO_CLASS C 10 Object Class

Parameter Reference Length Optional Text
PROPERTIES_REQUEST SDOKPROPTN 25 X Attribute Request List
PROPERTIES_RESULT SDOKPROPTL 131 X Attribute Results List
QUERY SDOKQUPROP 156 Search Query
RESULT SDOKOBJECT 42 Result Set

Exception Text
BAD_CLASS Object Class Unknown
BAD_QUERY Incorrect Search Query
NOT_AUTHORIZED No Authorization

Functionality
This function module returns logical documents and a selection of theirattributes in response to a search query.
The search is restricted to one document class.
The selection criteria are specified in the table QUERY. Every tableentry contains restrictions for an attribute, similarly to a rangetable.
The logical documents found as a result of the search query are writtento the table RESULT.
The table PROPERTIES_REQUEST controls which attributes of the founddocuments are returned. If the table is not specified when the searchis activated, no attributes are returned. If the table is specified inthe initial state when the search is activated, all attributes arereturned. Otherwise, all attributes that are listed in the tablePROPERTIES_REQUEST are returned for all documents.

Notes

  • Activating the search without the table PROPERTIES_REQUEST speeds up
  • the process, as no attributes need to be returned.
    • This is not a logical document method.

    • The free attributes allowed for the query are specified in the document
    • class.