SAP Knowledge Base Article - Public

2671371 - QueryByElements on Custom Object Missing Subnodes

Symptom

You are creating an external service integration for a custom BO (Business Object), but the service operation QueryByElements only shows elements that resides on the Root Node.

Environment

  • SAP Hybris Cloud for Customer
  • SAP BusinessByDesign
  • SAP Cloud Applications Studio

Reproducing the Issue

  1. Log into Cloud Applications Studio.
  2. Create External Webservice for a Custom BO.
  3. Consume webservice QueryByElements for a Custom Object.
  4. The response will only show elements from the Root Node.

Cause

The expected behavior for QueryByElements is that it only returns the Node for which it was triggered. E.g. If you trigger on Root Node, only elements from Root will be returned.

Resolution

Partner should create a custom query that will fetch all the desired nodes and elements.

Keywords

custom webservice; subnodes not returning; , KBA , AP-RC-BDS-WS , ByDesign Studio Web Services , Problem

Product

SAP Business ByDesign all versions ; SAP Cloud for Customer core applications all versions