<?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: How can I use CREATE_DEEP_ENTITY method to upload multiple files? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-can-i-use-create-deep-entity-method-to-upload-multiple-files/qaa-p/532592#M108432</link>
    <description>&lt;P&gt;As far as I know upload of multiple files/media entities/streamed data is not possible via Deep Create method because the file contents is transferred as a raw stream/xtring data. If you use a POST call and encapsulate all the files for upload in a single attempt, you cannot upload files with diffirent formats because the ContentDisposition header will be unique. Further read - &lt;A href="https://archive.sap.com/discussions/thread/3746296" target="test_blank"&gt;https://archive.sap.com/discussions/thread/3746296&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Also , how are you planning to handle the file upload in case of creation/save of table entires fails? You need to have a handshaking mechnaism between table entry creation and file upload since it looks like file upload is dependent on the table entry creation status. Think about it.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Dec 2017 05:05:26 GMT</pubDate>
    <dc:creator>Ankit_Maskara</dc:creator>
    <dc:date>2017-12-26T05:05:26Z</dc:date>
    <item>
      <title>How can I use CREATE_DEEP_ENTITY method to upload multiple files?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-can-i-use-create-deep-entity-method-to-upload-multiple-files/qaq-p/532590</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
  &lt;P&gt;I have designed a SAPUI5 screen where I need to upload multiple files along with multiple table entries into the SAP Backend system. I was able to SAVE table entries using CREATE_DEEP_ENTITY but could not find any solution to upload multiple files using this method. &lt;BR /&gt;I am aware of CREATE_STREAM method which is used for file upload but in my case I cannot use it because I need to submit the payload in a single batch operation in order to complete my workflow.&lt;BR /&gt;&lt;BR /&gt;One possible way would be to return a status flag from CREATE_DEEP_ENTITY and then call CREATE_STREAM subsequently but this will only increase the complications in my workflow.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Dec 2017 19:37:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-can-i-use-create-deep-entity-method-to-upload-multiple-files/qaq-p/532590</guid>
      <dc:creator>ajaygupta</dc:creator>
      <dc:date>2017-12-02T19:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use CREATE_DEEP_ENTITY method to upload multiple files?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-can-i-use-create-deep-entity-method-to-upload-multiple-files/qaa-p/532591#M108431</link>
      <description>&lt;P&gt;Hi Ajay,&lt;/P&gt;
  &lt;P&gt;You need to call this method inside the batch operation method. Check methods where you can add the logic. Redefine methods :&lt;/P&gt;
  &lt;P&gt;/IWBEP/IF_MGW_APPL_SRV_RUNTIME~CHANGESET_BEGIN. ( it_operation_info -&amp;gt; Use this parameter to call deep entity method, operation_type you can call here)&lt;/P&gt;
  &lt;P&gt;/IWBEP/IF_MGW_APPL_SRV_RUNTIME~CHANGESET_PROCESS. &lt;/P&gt;
  &lt;P&gt;/IWBEP/IF_MGW_APPL_SRV_RUNTIME~CHANGESET_END.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;BR /&gt;Tejas&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 10:50:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-can-i-use-create-deep-entity-method-to-upload-multiple-files/qaa-p/532591#M108431</guid>
      <dc:creator>tejasChouhan</dc:creator>
      <dc:date>2017-12-04T10:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use CREATE_DEEP_ENTITY method to upload multiple files?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-can-i-use-create-deep-entity-method-to-upload-multiple-files/qaa-p/532592#M108432</link>
      <description>&lt;P&gt;As far as I know upload of multiple files/media entities/streamed data is not possible via Deep Create method because the file contents is transferred as a raw stream/xtring data. If you use a POST call and encapsulate all the files for upload in a single attempt, you cannot upload files with diffirent formats because the ContentDisposition header will be unique. Further read - &lt;A href="https://archive.sap.com/discussions/thread/3746296" target="test_blank"&gt;https://archive.sap.com/discussions/thread/3746296&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Also , how are you planning to handle the file upload in case of creation/save of table entires fails? You need to have a handshaking mechnaism between table entry creation and file upload since it looks like file upload is dependent on the table entry creation status. Think about it.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2017 05:05:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-can-i-use-create-deep-entity-method-to-upload-multiple-files/qaa-p/532592#M108432</guid>
      <dc:creator>Ankit_Maskara</dc:creator>
      <dc:date>2017-12-26T05:05:26Z</dc:date>
    </item>
  </channel>
</rss>

