on 09-25-2014 7:02 PM
Hi Experts,
I want to pass key field value into GET_ENTITY_SET method as well as non key field value. The key value can be available in lt_key_tab.n Like that where I can get the value or which import parameter hold the non key value in this method, in DPC EXT class?
In that case, what would be possible URI ? How I can pass those non key values in URI which will hit GET HTTP method for GET_ENTITY_SET method when I will test in SAP NETWEAVER GATEWAY CLIENT?
Thanks in advanced,
Regards,
Arindam Samanta.
Hi Andre Fischer , Krishna Kishor Kammaje, Ashwin Dutt R,
Thanks to all for your reply.
@Andre, Actually I am talking about non key fields in Entity type. If I want to pass value for those non key fields from fron end then where I can see those values in GET_ENTITY_ SET METHOD?
But now I got the answer from your replies. You all are absolutely correct. I can see those values in IT_FILTER_SELECT_OPTIONS. These values coming from URL using filter parameter. For Example - http://yyy.yyy.yyy.com:8000/sap/opu/odata/sap/ZAS_SODEXO_SRV/SODEXO_NEW_ADD_SET?$filter=Year eq '2014' and Month eq '07' and Bukrs eq '1001'.
The year,month, bukrs are non key field in my entity type.
Thanks & Regards,
Arindam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Arindam,
Irrespective of if its a Key parameter or not a Key parameter, your inputs need to be sent as part of filters to fire ur Query/Get_Entity_Set method.
/ZGWSAMPLE_SRV/BusinessPartnerCollection?$filter=Param1 eq 'abc' and Param2 eq 'xyz'
Please refer Task2 as Krishna and Andre suggested.
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Arindam, you are talking about Filters.
Just to add to Andreas, Task 2 in the above document has the example of URL as well as how to handle it within the ABAP code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arindam,
I am not sure what non-key values you are looking for.
Please have a look at my following whitepaper where I describe how to access query paramters that are sent alongside with a query.
http://scn.sap.com/docs/DOC-43000
Best Regards,
Andre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.