Result Objects

The result objects compose the query.

The query specification model defines result objects by using the <resultObject> XML element.

<resultObjects>
    <resultObject id="string" path="string"/>
<resultObject> Attribute Description
id The object identifier
path The full path of the object in the universe

Example

The following snippet of a query specification shows the result objects of the query.
<query xmlns="http://www.sap.com/rws/sl/universe" id="5897899822041415615" dataSourceType="unx" 
    dataSourceId="5808">
    <querySpecification version="1.0">
        <queryOptions> 
            ...
        </queryOptions>
        <queryData>
            <resultObjects>
                <resultObject path="Product|folder\Product|dimension" id="_IB8eGbIhEeCk0Ylv-tlF2Q"/>
                <resultObject path="Inventory|folder\Stock Level|measure" id="_IB8eFrIhEeCk0Ylv-tlF2Q"/>
                <resultObject path="Product|folder\Minimum Stock|measure" id="_IB8eHrIhEeCk0Ylv-tlF2Q"/>
            </resultObjects>
        </queryData>
    </querySpecification>
</query>
Remember

The object order in <resultObjects> is important, because it reflects the object order in the SQL query. For example, the following query:

<queryData>
    <resultObjects>
        <resultObject id=A .../>
        <resultObject id=B .../>
    </resultObjects>
...

gives different results from the following one:

<queryData>
    <resultObjects>
        <resultObject id=B .../>
        <resultObject id=A .../>
    </resultObjects>
...