2024 Oct 10 4:08 AM - edited 2024 Oct 22 6:54 PM
Hi Gurus,
I have created custom entity and Implemented if_rap_query_provider~select method. Service I created in V4 API.
This custom entity is with NO parameter is working as expected and returning all results.
When I added parameter to this Custom Entity It started giving me below Error ->
Entity 'ZCE_TU_DETAILS': Parameter entity set '$PARAMETER$ZCE_TU_DETAILS' cannot be used for read
I do not know how to test or use this Custom Entity with parameter... please help pointing to any documentation or example...
I have followed below documentation:
https://help.sap.com/docs/abap-cloud/abap-rap/using-parameters-in-unmanaged-query?version=sap_btp
Please help...
Thanks-
Request clarification before answering.
Hi,
I'm unsure if this is your situation, but when I created CDS with a parameter and linked it to the Service Binding, it made a new EntitySet.
Example:
I have a CDS named "ZPO_Item" with a parameter for the posting date. In the service binding component, it created a new EntitySet named "ZPO_ItemResults." All my communication needs to go to this EntitySet.
In the metadata there still exists the ZPO_Item EntitySet, but the linked EntityType is with the sap:semantics="parameters" and thus cannot be used for direct requests.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi there
I'm sure you have already found the right answer
But in case anyone else gets here after googling the message Entity '&1': Parameter entity set '&2' cannot be used for read
After parametrizing your entity you need to add /Set at the end of the URI
Like, ../SomeName(Par1='value1',Par2='value2') wouldn't work but ../SomeName(Par1='value1',Par2='value2')/Set would
User | Count |
---|---|
79 | |
12 | |
9 | |
8 | |
7 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.