<?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>topic Re: API exposed by Service Layer in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/api-exposed-by-service-layer/m-p/12514432#M2004287</link>
    <description>&lt;P&gt;Thank you for visiting SAP Community to get answers to your questions. Since this is your first question, I recommend that you familiarize yourself with our Q&amp;amp;A Tutorial: &lt;A rel="noreferrer noopener" href="https://developers.sap.com/tutorials/community-qa.html" target="_blank"&gt;https://developers.sap.com/tutorials/community-qa.html&lt;/A&gt;, as it provides tips for preparing questions that draw responses from our members.  &lt;/P&gt;&lt;P&gt;Should you wish, you can revise your question by selecting Actions, then Edit. &lt;/P&gt;&lt;P&gt;By adding a picture to your profile you encourage readers to respond:  &lt;A rel="noreferrer noopener" href="https://www.youtube.com/watch?v=46bt1juWUUM" target="_blank"&gt;&lt;/A&gt;&lt;A href="https://www.youtube.com/watch?v=46bt1juWUUM" target="test_blank"&gt;https://www.youtube.com/watch?v=46bt1juWUUM&lt;/A&gt; &lt;BR /&gt;Many thanks!  &lt;/P&gt;&lt;P&gt;Keep in mind, when you receive an answer that was helpful to you, accept it as best answer.  &lt;/P&gt;</description>
    <pubDate>Fri, 28 Jan 2022 09:09:40 GMT</pubDate>
    <dc:creator>lenastodal</dc:creator>
    <dc:date>2022-01-28T09:09:40Z</dc:date>
    <item>
      <title>API exposed by Service Layer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/api-exposed-by-service-layer/m-p/12514431#M2004286</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;
  &lt;P&gt;I have to update a stage of a subproject. To do this I use, from Service Layer API Reference, ProjectManagementService.&lt;/P&gt;
  &lt;P&gt;This API enables me to invoke the interfaces defined on 'ProjectManagementService'.&lt;/P&gt;
  &lt;P&gt;I invoke the method 'UpdateSubproject' on this service by specifying the payload 'PM_SubprojectDocumentData' in the JSON format.&lt;/P&gt;
  &lt;P&gt;POST ProjectManagementService_UpdateSubproject&lt;/P&gt;
  &lt;P&gt;with this json, &lt;BR /&gt;{&lt;/P&gt;
  &lt;P&gt; "PM_SubprojectDocumentData": &lt;/P&gt;
  &lt;P&gt; { ... }&lt;/P&gt;
  &lt;P&gt;}&lt;/P&gt;
  &lt;P&gt;This method work if my stage don't have document. "PMS_DocumentsCollection": []&lt;/P&gt;
  &lt;P&gt;in particular PMS_DocumentsCollection.length = 0&lt;/P&gt;
  &lt;P&gt;This method don't work if my stage have documents. "PMS_DocumentsCollection": [...]&lt;/P&gt;
  &lt;P&gt;in particular PMS_DocumentsCollection.length &amp;gt; 0&lt;/P&gt;
  &lt;P&gt;and return this error&lt;/P&gt;
  &lt;P&gt;{&lt;/P&gt;
  &lt;P&gt; "error": {&lt;/P&gt;
  &lt;P&gt; "code": -5002,&lt;/P&gt;
  &lt;P&gt; "message": {&lt;/P&gt;
  &lt;P&gt; "lang": "en-us",&lt;/P&gt;
  &lt;P&gt; "value": "StageID is invalid. [PHA4.StageID][line: 1]"&lt;/P&gt;
  &lt;P&gt; }&lt;/P&gt;
  &lt;P&gt; }&lt;/P&gt;
  &lt;P&gt;}&lt;/P&gt;
  &lt;P&gt;Does it exist a different method to update a stage with documents connected?&lt;/P&gt;
  &lt;P&gt;Can you help me?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 09:09:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/api-exposed-by-service-layer/m-p/12514431#M2004286</guid>
      <dc:creator>former_member787427</dc:creator>
      <dc:date>2022-01-28T09:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: API exposed by Service Layer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/api-exposed-by-service-layer/m-p/12514432#M2004287</link>
      <description>&lt;P&gt;Thank you for visiting SAP Community to get answers to your questions. Since this is your first question, I recommend that you familiarize yourself with our Q&amp;amp;A Tutorial: &lt;A rel="noreferrer noopener" href="https://developers.sap.com/tutorials/community-qa.html" target="_blank"&gt;https://developers.sap.com/tutorials/community-qa.html&lt;/A&gt;, as it provides tips for preparing questions that draw responses from our members.  &lt;/P&gt;&lt;P&gt;Should you wish, you can revise your question by selecting Actions, then Edit. &lt;/P&gt;&lt;P&gt;By adding a picture to your profile you encourage readers to respond:  &lt;A rel="noreferrer noopener" href="https://www.youtube.com/watch?v=46bt1juWUUM" target="_blank"&gt;&lt;/A&gt;&lt;A href="https://www.youtube.com/watch?v=46bt1juWUUM" target="test_blank"&gt;https://www.youtube.com/watch?v=46bt1juWUUM&lt;/A&gt; &lt;BR /&gt;Many thanks!  &lt;/P&gt;&lt;P&gt;Keep in mind, when you receive an answer that was helpful to you, accept it as best answer.  &lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 09:09:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/api-exposed-by-service-layer/m-p/12514432#M2004287</guid>
      <dc:creator>lenastodal</dc:creator>
      <dc:date>2022-01-28T09:09:40Z</dc:date>
    </item>
  </channel>
</rss>

