on 04-16-2015 9:09 AM
Hi Experts,
I have created a get_entity method, now i want to execute it. If my model has only one key field then my URL would be as
/sap/opu/odata/sap/Z_SALEORDER_SRV/SO_INPUTS('0000000076') which is working fine. If i have model with two key field how the URL format
should be? i have tried with
/sap/opu/odata/sap/Z_SALEORDER_SRV/SO_ITEMS('0000000076','000010') and
/sap/opu/odata/sap/Z_SALEORDER_SRV/SO_ITEMS('0000000076'),('000010') which is not working
Please help me.
it should be as below,
/EntitySet(KeyField1='<value1>',KeyField2='value2')
Regards,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you need to specify the key fields with the value. try this below URL
http://services.odata.org/V2/Northwind/Northwind.svc/Order_Details(OrderID=10248,ProductID=11)
Learn more about URL conventions at URI Conventions | OData - The Protocol for REST APIs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.