on 11-10-2015 9:42 AM
Hello Experts,
I am facing issue with $expand.
I have followed below steps,
1. Create Data Mode - SalesOrder and OrderItems
2. Association - SalesOrderItems between above two DataModels,
3.Implemented method - /IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_EXPANDED_ENTITY
When I am executing URI i am getting error "Method 'ORDERITEMS_GET_ENTITYSET' not implemented in data provider class."
As per my understanding /IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_EXPANDED_ENTITY method alone should work.
My URI - /sap/opu/odata/sap/ZSL_EMP_DEMO1212_SRV/SalesOrder('500000000')?$expand=SalesOrderItems
Can anyone please help me if I am missing anything here.
Regards,
Sid
Sid,
This is because Association which is referred by navigation 'SalesOrderItems' has cardinality of 1:N or 1:M. Because of this method GET_EXPANDED_ENTITYSET will be called instead of GET_EXPANDED_ENTITY. So you have to redefine/implement GET_EXPANDED_ENTITYSET.
regards
Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.