Hi,
I see some of the posts are talking about the same issue but I had gone through the solution what ever they discussed and it did not help actually for me. I have implemented the GET_ENTITYSET to get my fields and used as a Request for my POST operation for the same EntitySet to test my CREATE_ENTITY logic. But during the request I am facing the issue System expected the element '{http://www.w3.org/2005/Atom}entry'.
My XML request is pasted here
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
xml:base="******/">
<id>************</id>
<title type="text">TagPrintSet</title>
TagPrintSet" rel="self" title="TagPrintSet"/>
<entry>
<id>http://*******(Tanum='0000123455',Lgnum='811',Ldest='11M1',Zdetag='001')</id>
<title type="text">TagPrintSet(Tanum='0000123455',Lgnum='811',Ldest='11M1',Zdetag='001')</title>
<updated>2019-01-29T04:54:18Z</updated>
<category term="ZMWM_PICKLIST_SRV.TagPrint" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
<link href="TagPrintSet(Tanum='0000123455',Lgnum='811',Ldest='11M1',Zdetag='001')" rel="self" title="TagPrint"/>
<content type="application/xml">
<m:properties xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
<d:Tanum>0000123455</d:Tanum>
<d:Lgnum>811</d:Lgnum>
<d:Ldest>11M1</d:Ldest>
<d:Zdetag>001</d:Zdetag>
</m:properties>
</content>
</entry>
</feed>
Thanks,
Karthik
Request clarification before answering.
The CREATE_ENTITY method does only create a single item in the Entity set.
You thus have to implement the GET_ENTITY method to retrieve a single item and use this as the Input for your POST request.
If one or more answers have answered your question please click on "✓ Accept"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Fischer,
Thanks for your quick response.I changed the logic and implemented in GET_ENTITY instead of GET_ENTITYSET. but If I try to execute the same Url it is saying method GET_ENTITYSET is not implemented. MayI know why the system is expecting the GHET_ENTITYSET when I want to pick a single record? Please advise.
/sap/opu/odata/SAP/ZMWM_SAMPLE/TagPrintSet$filter= f1 eq '11111' and f2 eq '811' and f3 eq '11M1' and f4 eq '1'
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.