SAP Function SDOK_RELA_FIND_BY_QUERY - Find relationship via 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 relationship objects and selectedattributes in response to a search query.
The search is restricted to one relationship class.
The selection criteria are specified in the table QUERY. Each tableentry specifies restrictions for an attribute, similarly to a rangetable. The relationships found as a result of the query are written tothe table RESULT.
The table PROPERTIES_REQUEST controls which attributes are returned forthe relationship found in the query. If this table is not specifiedwhen the function module is called, no attributes are returned. If thetable is specified in its initial state, all attributes for therelationship are returned. Otherwise, the attributes specified in thetable PROPERTIES_REQUEST are returned.

  • Calling this function module without the table PROPERTIES_REQUEST
  • yields the best runtime performance, as no attributes need to bereturned.
    • This function module is not a method for a relationship object.

    • The relationship class determines the attributes that can be returned
    • as a result of the query.