cancel
Showing results for 
Search instead for 
Did you mean: 

How to add node to custom query

08-21-2018 10:59 AM
Jakub Participant
846 views 1 comments
0 Likes
SAP Managed Tags
Subscribe

Hi,

Is it possible to add node to query(root) for custom object ?
What i mean: when i create new custom BO, i add the node and two elements to root part.

import AP.Common.GDT as apCommonGDT;

businessobject CustomObject {

    [AlternativeKey] element ZtestID:testID;
    element Ztest:tets;

    node test [0,n] {
        element Z_test_1:test;
        element Z_test_2:test;
    }

}

Now i want to create web service with query wich have the root part and the node. Normally i got two diffrent queries, but i want to link them to one query.

Or is it maybe possibility like in ABSL:

var item : elementsof CustomObject.test;
0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

thomaskenner
Participant
0 Likes

Hi Jakub,

you can create the query on your Child (test) node and navigate via the .ToParent association back to the Root(CustomObject) information.

hth

Thomas