<?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: deleted question in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496334#M90856</link>
    <description>&lt;P&gt;&lt;EM&gt;Question “IF variant found with incompatible validity period”&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jan 2018 11:54:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-01-05T11:54:42Z</dc:date>
    <item>
      <title>deleted question</title>
      <link>https://community.sap.com/t5/technology-q-a/deleted-question/qaq-p/496327</link>
      <description>&lt;P&gt;deleted question&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 10:37:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deleted-question/qaq-p/496327</guid>
      <dc:creator>former_member489109</dc:creator>
      <dc:date>2018-01-02T10:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: deleted question</title>
      <link>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496328#M90850</link>
      <description>&lt;P&gt;Hi Burak,&lt;/P&gt;
  &lt;P&gt;You should use $batch operations in order to send multiple items to the same OData service. Your service must provide support for batch operations. Check this blog for &lt;A href="https://blogs.sap.com/2016/09/19/simulate-odata-update-with-mockserver-and-share-your-code-on-plunker/"&gt;UI5 details&lt;/A&gt; on how to implement this.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;BR /&gt;Ivan&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 22:27:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496328#M90850</guid>
      <dc:creator>Ivan-Mirisola</dc:creator>
      <dc:date>2018-01-02T22:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: deleted question</title>
      <link>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496329#M90851</link>
      <description>&lt;P&gt;Thanks for answer.&lt;/P&gt;
  &lt;P&gt;What is the difference between batch and deep entity?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 08:15:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496329#M90851</guid>
      <dc:creator>former_member489109</dc:creator>
      <dc:date>2018-01-04T08:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: deleted question</title>
      <link>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496330#M90852</link>
      <description>&lt;P&gt;HI Burak,&lt;/P&gt;
  &lt;P&gt;Deep entity will post a nested structure (i.e: header and line items) in a single run. It also reduces the number of Odata calls, but it implies you are using an Odata with $expand feature. If this is your case, than you should be using NW Gateway as you OData provider to be able to implement this feature. &lt;/P&gt;
  &lt;P&gt;Batch operations will send multiple Odata operations on a single run. Suppose your app has a hierarchy table grouped by header an line items at the 2nd level of each header. You edit some of the line items on multiple headers and now you need to send them to your Odata service in a single run to update the table. You could call the OData service multiple times (one for each header) using the deep entity creation, but you want to do it in a single run. That's where the $batch request will aid you. You could send multiple deep entity calls on a single batch request.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;BR /&gt;Ivan&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 13:22:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496330#M90852</guid>
      <dc:creator>Ivan-Mirisola</dc:creator>
      <dc:date>2018-01-04T13:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: deleted question</title>
      <link>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496331#M90853</link>
      <description>&lt;P&gt;batch: send multiple requests(each one contains a record) in one shot&lt;/P&gt;
  &lt;P&gt;deep entity: one request is sent, which contains multiple records&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 13:29:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496331#M90853</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2018-01-04T13:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: deleted question</title>
      <link>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496332#M90854</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;you can use $batch option as recommended by ivan and it had to be supported from UI5 and oData service side.&lt;/P&gt;
  &lt;P&gt;Check the below blog on implementing batch &lt;/P&gt;
  &lt;P&gt;Service side &lt;A href="https://blogs.sap.com/2015/03/06/simple-steps-to-perform-batch-operations-in-sap-gateway-services/"&gt;oData Batch&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;UI5 implementation &lt;A href="https://blogs.sap.com/2012/11/18/gateway-batch-calls-from-sapui5/"&gt;Gateway&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt;Mahesh&lt;BR /&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 13:34:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496332#M90854</guid>
      <dc:creator>MaheshChandra</dc:creator>
      <dc:date>2018-01-04T13:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: deleted question</title>
      <link>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496333#M90855</link>
      <description>&lt;P&gt;Hello thanks for answer.&lt;/P&gt;
  &lt;P&gt;I trying batch operation;&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;var serviceUrl = "/sap/opu/odata/sap/ZBZ_QM_KALITE_SONUC_SRV/$batch";&amp;lt;br&amp;gt;var oModel = new sap.ui.model.odata.v2.ODataModel(serviceUrl);&amp;lt;br&amp;gt;var contactEntry2 = {}; &amp;lt;br&amp;gt;contactEntry2.Insplot = sInsplot;
contactEntry2.Inspchar = sInspchar;&amp;lt;br&amp;gt;oModel.setUseBatch(true); &amp;lt;br&amp;gt;var batchChanges = [];&amp;lt;br&amp;gt;batchChanges.push(oModel.createBatchOperation(sPath, "PUT", contactEntry2));
oModel.addBatchChangeOperations(batchChanges);&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;but i getting error ; &lt;/P&gt;
  &lt;P&gt;oModel.createBatchOperation is not a function..&lt;/P&gt;
  &lt;P&gt;Need to open a property for batch?&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/101276-1212.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 11:52:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496333#M90855</guid>
      <dc:creator>former_member489109</dc:creator>
      <dc:date>2018-01-05T11:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: deleted question</title>
      <link>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496334#M90856</link>
      <description>&lt;P&gt;&lt;EM&gt;Question “IF variant found with incompatible validity period”&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 11:54:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496334#M90856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-01-05T11:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: deleted question</title>
      <link>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496335#M90857</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;var oDataModel = this.getView().getModel();
var batchChanges = []; 
batchChanges.push(oDataModel.createBatchOperation("FirstDataSet", "POST", contactEntry1)); batchChanges.push(oDataModel.createBatchOperation("Second Dset", "POST", contactEntry2)); 
oDataModel.addBatchChangeOperations(batchChanges);
 oDataModel.submitBatch(function(success) { var bresponse = success.__batchResponses[0]; if (bresponse.__changeResponses) { var scres = bresponse.__changeResponses[0].data; console.log("1"); } else if (bresponse.response) { var responseBody = success.__batchResponses[0].response.body; var successObj = JSON.parse(responseBody); var message = successObj.error.message.value; console.log("2"); sap.m.MessageBox.show(message, { title: "Success", icon: sap.m.MessageBox.Icon.SUCCESS, actions: [sap.m.MessageBox.Action.OK] }); } }, function(error) { var resBody = error.response.body; var errObj = JSON.parse(resBody); var message = errObj.error.message.value; console.log("3"); sap.m.MessageBox.show(message, { title: "ERROR", icon: sap.m.MessageBox.Icon.ERROR, actions: [sap.m.MessageBox.Action.OK], details: message }); }, false);
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;PRE&gt;&lt;CODE&gt;Try as above, looks you are using spath in create bath.
see this Open SAP tutorial for more info on batch operations:
&lt;A href="https://open.sap.com/courses/hana2/items/42yDjpxcjSPSzz4JFCvA3H" target="test_blank"&gt;https://open.sap.com/courses/hana2/items/42yDjpxcjSPSzz4JFCvA3H&lt;/A&gt; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Jan 2018 16:00:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496335#M90857</guid>
      <dc:creator>MaheshChandra</dc:creator>
      <dc:date>2018-01-05T16:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: deleted question</title>
      <link>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496336#M90858</link>
      <description>&lt;P&gt;&lt;STRONG&gt;"Uncaught TypeError: oDataModel.createBatchOperation is not a function"&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;I getting error again. I using v2model. V2model has createBatchOperation property? idk. &lt;/P&gt;</description>
      <pubDate>Sat, 06 Jan 2018 15:02:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496336#M90858</guid>
      <dc:creator>former_member489109</dc:creator>
      <dc:date>2018-01-06T15:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: deleted question</title>
      <link>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496337#M90859</link>
      <description>&lt;P&gt;v2 model has batch enable by default, no need to createBatchOperation&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jan 2018 18:43:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496337#M90859</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2018-01-06T18:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: deleted question</title>
      <link>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496338#M90860</link>
      <description>&lt;P&gt;if you don't anything at your odata service, that is how batch works, &lt;/P&gt;
  &lt;P&gt;you can change the default behavior, please read through&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://help.sap.com/saphelp_gateway20sp12/helpdata/en/90/dc8363306c47d3b2fca1398f5de94b/frameset.htm" target="test_blank"&gt;https://help.sap.com/saphelp_gateway20sp12/helpdata/en/90/dc8363306c47d3b2fca1398f5de94b/frameset.htm&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;This handling is also called processing a changeset in defer mode.&lt;/P&gt;
  &lt;P&gt;When method CHANGESET_BEGIN is called a data provider can use the changing parameter CV_DEFER_MODE to inform the framework that it can process all changeset operations at once (deferred processing). Based on the list of entity set name, entity type name and action name, a data provider can dynamically set the exporting parameter mentioned above to inform the framework that it will process the current changeset at once or to reset this parameter to have a single processing as usual. Default implementation is single processing. That means without any changes in a data provider each changeset operation will be processed one after another as usual.&lt;/P&gt;
  &lt;P&gt;If CV_DEFER_MODE is set, the framework will call the data provider using the new method CHANGESET_PROCESS with importing parameter IT_CHANGESET_REQUEST containing a list of change set operations. Each entry of this list contains the technical request context IO_TECH_REQUEST_CONTEXT as usual but also a message container for error or information message happened during the processing. Response data of a change set operation including HTTP custom headers and ETag (if it exists) must be returned in changing parameter CT_CHANGESET_RESPONSE.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jan 2018 18:52:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496338#M90860</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2018-01-06T18:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: deleted question</title>
      <link>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496339#M90861</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;ivan.mirisola&lt;/SPAN&gt; again,&lt;/P&gt;
  &lt;P&gt;I have a question for about batch operation.&lt;/P&gt;
  &lt;P&gt;Example;&lt;/P&gt;
  &lt;P&gt;I have a table with 10 row. I am using batch operation and each one goest to createSet.(10 row.)&lt;/P&gt;
  &lt;P&gt;Bapi works for every line.(It actually needs to work once for all lines.)&lt;/P&gt;
  &lt;P&gt;Because I have to take the result of each line and process according to the result.(commit , rollback..)&lt;/P&gt;
  &lt;P&gt;I can't do because batch data is sent one by one.Can you please help me ?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 14:18:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496339#M90861</guid>
      <dc:creator>former_member489109</dc:creator>
      <dc:date>2018-01-16T14:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: deleted question</title>
      <link>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496340#M90862</link>
      <description>&lt;P&gt;Is &lt;A href="https://blogs.sap.com/2017/12/17/implementing-batch-operations-in-odata/"&gt;this&lt;/A&gt; what you are looking for?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 18:45:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deleted-question/qaa-p/496340#M90862</guid>
      <dc:creator>Ivan-Mirisola</dc:creator>
      <dc:date>2018-01-22T18:45:50Z</dc:date>
    </item>
  </channel>
</rss>

