<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Create Deep Entity Error 'System expected the element'{http://www.w3.org/2005/Atom}entry' in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/create-deep-entity-error-system-expected-the-element-http-www-w3-org-2005/qaa-p/790185#M240112</link>
    <description>&lt;P&gt;May I ask one more question.. If I have an internal table(only one Internal table no other fields) as an input to my function module. Is it necessary to go with DEEP_ENTITY_SET? I see in the blog all the DEEP_ENTITY_SET examples are talking about header/item association. But I dont have any header/line item here. &lt;/P&gt;</description>
    <pubDate>Tue, 29 Jan 2019 18:40:30 GMT</pubDate>
    <dc:creator>former_member527871</dc:creator>
    <dc:date>2019-01-29T18:40:30Z</dc:date>
    <item>
      <title>Create Deep Entity Error 'System expected the element'{http://www.w3.org/2005/Atom}entry'</title>
      <link>https://community.sap.com/t5/technology-q-a/create-deep-entity-error-system-expected-the-element-http-www-w3-org-2005/qaq-p/790180</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;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'.&lt;/P&gt;
  &lt;P&gt;My XML request is pasted here&lt;/P&gt;
  &lt;P&gt;&amp;lt;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"&lt;/P&gt;
  &lt;P&gt;xml:base="******/"&amp;gt;&lt;/P&gt;
  &lt;P&gt; &amp;lt;id&amp;gt;************&amp;lt;/id&amp;gt;&lt;BR /&gt; &amp;lt;title type="text"&amp;gt;TagPrintSet&amp;lt;/title&amp;gt;&lt;BR /&gt;TagPrintSet" rel="self" title="TagPrintSet"/&amp;gt;&lt;BR /&gt; &amp;lt;entry&amp;gt;&lt;BR /&gt; &amp;lt;id&amp;gt;http://*******(Tanum='0000123455',Lgnum='811',Ldest='11M1',Zdetag='001')&amp;lt;/id&amp;gt;&lt;BR /&gt; &amp;lt;title type="text"&amp;gt;TagPrintSet(Tanum='0000123455',Lgnum='811',Ldest='11M1',Zdetag='001')&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;updated&amp;gt;2019-01-29T04:54:18Z&amp;lt;/updated&amp;gt;&lt;BR /&gt; &amp;lt;category term="ZMWM_PICKLIST_SRV.TagPrint" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/&amp;gt;&lt;BR /&gt; &amp;lt;link href="TagPrintSet(Tanum='0000123455',Lgnum='811',Ldest='11M1',Zdetag='001')" rel="self" title="TagPrint"/&amp;gt;&lt;BR /&gt; &amp;lt;content type="application/xml"&amp;gt;&lt;BR /&gt; &amp;lt;m:properties xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"&amp;gt;&lt;BR /&gt; &amp;lt;d:Tanum&amp;gt;0000123455&amp;lt;/d:Tanum&amp;gt;&lt;BR /&gt; &amp;lt;d:Lgnum&amp;gt;811&amp;lt;/d:Lgnum&amp;gt;&lt;BR /&gt; &amp;lt;d:Ldest&amp;gt;11M1&amp;lt;/d:Ldest&amp;gt;&lt;BR /&gt; &amp;lt;d:Zdetag&amp;gt;001&amp;lt;/d:Zdetag&amp;gt;&lt;BR /&gt; &amp;lt;/m:properties&amp;gt;&lt;BR /&gt; &amp;lt;/content&amp;gt;&lt;BR /&gt; &amp;lt;/entry&amp;gt;&lt;BR /&gt; &amp;lt;/feed&amp;gt;&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt;Karthik&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 05:08:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-deep-entity-error-system-expected-the-element-http-www-w3-org-2005/qaq-p/790180</guid>
      <dc:creator>former_member527871</dc:creator>
      <dc:date>2019-01-29T05:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create Deep Entity Error 'System expected the element'{http://www.w3.org/2005/Atom}entry'</title>
      <link>https://community.sap.com/t5/technology-q-a/create-deep-entity-error-system-expected-the-element-http-www-w3-org-2005/qaa-p/790181#M240108</link>
      <description>&lt;P&gt;The CREATE_ENTITY method does only create a single item in the Entity set.&lt;/P&gt;&lt;P&gt;You thus have to implement the GET_ENTITY method to retrieve a single item and use this as the Input for your POST request.&lt;/P&gt;&lt;P&gt;If one or more answers have answered your question please click on "✓ Accept"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 05:47:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-deep-entity-error-system-expected-the-element-http-www-w3-org-2005/qaa-p/790181#M240108</guid>
      <dc:creator>Andre_Fischer</dc:creator>
      <dc:date>2019-01-29T05:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create Deep Entity Error 'System expected the element'{http://www.w3.org/2005/Atom}entry'</title>
      <link>https://community.sap.com/t5/technology-q-a/create-deep-entity-error-system-expected-the-element-http-www-w3-org-2005/qaa-p/790182#M240109</link>
      <description>&lt;P&gt;Hi Fischer,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;/sap/opu/odata/SAP/ZMWM_SAMPLE/TagPrintSet$filter= f1 eq '11111' and f2 eq '811' and f3 eq '11M1' and f4 eq '1'&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 17:22:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-deep-entity-error-system-expected-the-element-http-www-w3-org-2005/qaa-p/790182#M240109</guid>
      <dc:creator>former_member527871</dc:creator>
      <dc:date>2019-01-29T17:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create Deep Entity Error 'System expected the element'{http://www.w3.org/2005/Atom}entry'</title>
      <link>https://community.sap.com/t5/technology-q-a/create-deep-entity-error-system-expected-the-element-http-www-w3-org-2005/qaa-p/790183#M240110</link>
      <description>&lt;P&gt;Hi Karthik,&lt;/P&gt;&lt;P&gt;this is because though you specified a filter that presumably contains all four key fields of your entity you still  perform a GET request on the ressource /sap/opu/odata/SAP/ZMWM_SAMPLE/TagPrintSet.&lt;/P&gt;&lt;P&gt;As a result the GET_ENTITYSET is called and if being implemented you would be able to retrieve the filter and search for the items for which the filter applies.&lt;/P&gt;&lt;P&gt;I order to get a single item you have to specifiy the key in brackets as follows&lt;/P&gt;&lt;P&gt;/sap/opu/odata/SAP/ZMWM_SAMPLE/TagPrintSet(f1='11111',f2='811',f3='11M1',f4='1')&lt;/P&gt;&lt;P&gt;In this case the GET_ENTITY method will be called.&lt;/P&gt;&lt;P&gt;I suggest that you implement both, the GET_ENTITYSET as well as the GET_ENTITY method.&lt;/P&gt;&lt;P&gt;Then you can perform a GET request on the Entity set, get back a list and select a single entry from the payload.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;https://sapes5.sapdevcenter.com/sap/opu/odata/iwbep/GWSAMPLE_BASIC/SalesOrderLineItemSet(SalesOrderID='0500000001',ItemPosition='0000000010')&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Will deliver the following Response (a single entry)&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/270367-cusersd041615desktopone-item.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;U&gt;&lt;/U&gt;&lt;SUB&gt;&lt;/SUB&gt;&lt;SUP&gt;&lt;/SUP&gt;&lt;/P&gt;&lt;P&gt;while &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;https://sapes5.sapdevcenter.com/sap/opu/odata/iwbep/GWSAMPLE_BASIC/SalesOrderLineItemSet?$filter=SalesOrderID%20eq%20'0500000001'%20and%20ItemPosition%20eq%20'0000000010'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Returns a list with just one entry, but a list (a feed in ATOM terms).&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/270366-cusersd041615desktoplist-of-items.png" /&gt;&lt;/P&gt;&lt;P&gt;For more details on how to implement GET_ENTITY and GET_ENTITYSET see my following blog&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2016/05/31/odata-service-development-with-sap-gateway-code-based-service-development/" target="test_blank"&gt;https://blogs.sap.com/2016/05/31/odata-service-development-with-sap-gateway-code-based-service-development/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andre&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If one or more answers have answered your question please click on "✓ Accept"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;U&gt;&lt;/U&gt;&lt;SUB&gt;&lt;/SUB&gt;&lt;SUP&gt;&lt;/SUP&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;U&gt;&lt;/U&gt;&lt;SUB&gt;&lt;/SUB&gt;&lt;SUP&gt;&lt;/SUP&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 17:58:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-deep-entity-error-system-expected-the-element-http-www-w3-org-2005/qaa-p/790183#M240110</guid>
      <dc:creator>Andre_Fischer</dc:creator>
      <dc:date>2019-01-29T17:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create Deep Entity Error 'System expected the element'{http://www.w3.org/2005/Atom}entry'</title>
      <link>https://community.sap.com/t5/technology-q-a/create-deep-entity-error-system-expected-the-element-http-www-w3-org-2005/qaa-p/790184#M240111</link>
      <description>&lt;P&gt;Awesome... It works.Thank you Fischer.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 18:38:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-deep-entity-error-system-expected-the-element-http-www-w3-org-2005/qaa-p/790184#M240111</guid>
      <dc:creator>former_member527871</dc:creator>
      <dc:date>2019-01-29T18:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create Deep Entity Error 'System expected the element'{http://www.w3.org/2005/Atom}entry'</title>
      <link>https://community.sap.com/t5/technology-q-a/create-deep-entity-error-system-expected-the-element-http-www-w3-org-2005/qaa-p/790185#M240112</link>
      <description>&lt;P&gt;May I ask one more question.. If I have an internal table(only one Internal table no other fields) as an input to my function module. Is it necessary to go with DEEP_ENTITY_SET? I see in the blog all the DEEP_ENTITY_SET examples are talking about header/item association. But I dont have any header/line item here. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 18:40:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-deep-entity-error-system-expected-the-element-http-www-w3-org-2005/qaa-p/790185#M240112</guid>
      <dc:creator>former_member527871</dc:creator>
      <dc:date>2019-01-29T18:40:30Z</dc:date>
    </item>
  </channel>
</rss>

