Symptom
The standard PurchaseOrder BO, contains the node Approval which contains the node ApprovalStep which contains the node ApprovalStepApprover.
In the Repository explorer, the Approval node is empty, despite in the ByDesign UI the system shows there are approvers configured for the purchase order.
Environment
SAP Cloud Application Studio
SAP Business ByDesign
Reproducing the Issue
- Login to SDK
- Go to View
- Select Repository Explorer
- Select Business Object PurchaseOrder
- Perform Query by doing Execute Query from QueryByElements (Right click and click on Execute Query)
- Enter Parameter ID
- Click on OK
Cause
When you execute the query on business object PurchaseOrder, the hieracy of the instances are not loaded and so it does not fetches approval responsible name by passing the bo name, bo namespace, node id.
Resolution
You are advised to use transformation definition BTM_MSA_CURR_STEP_APP_INFO for your purpose.
The transformation definition fetches approval responsible name by passing the bo name, bo namespace, node id and the bo node name.
Keywords
Execute Query, SDK, Cloud Application Studio, Repository Explorer, Approval node is empty , KBA , AP-RC-BDS-REP , ByDesign Studio Repository View , Problem