<?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 new ticket from Fragments in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880604#M4459944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Esha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have altered the code for&lt;/P&gt;&lt;P style="font-size: 13.3333px; background: #ffffff; color: #333333;"&gt;oEntry.WarrantyFrom = new Date();&lt;/P&gt;&lt;P style="font-size: 13.3333px; background: #ffffff; color: #333333;"&gt;oEntry.WarrantyTo = new Date();&lt;/P&gt;&lt;P style="font-size: 13.3333px; background: #ffffff; color: #333333;"&gt;Also the oEntry[0] has been removed as I have declared them like &lt;/P&gt;&lt;P style="font-size: 13.3333px; background: #ffffff; color: #333333;"&gt;var oEntry ={};&lt;/P&gt;&lt;P style="font-size: 13.3333px; background: #ffffff; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; background: #ffffff; color: #333333;"&gt;By metadata, do you mean the metadata from my oData?&lt;/P&gt;&lt;P style="font-size: 13.3333px; background: #ffffff; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; background: #ffffff; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; background: #ffffff; color: #333333;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-size: 13.3333px; background: #ffffff; color: #333333;"&gt;Srinivasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Sep 2016 13:54:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-09-29T13:54:44Z</dc:date>
    <item>
      <title>Create new ticket from Fragments</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaq-p/11880584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to create new ticket fetching details from fragments. I have odata table with single select option. On clicking a row and clicking the "Create Ticket" button a fragment will be displayed with the data of the row as below&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/1044178" width="450" /&gt;&lt;/P&gt;&lt;P&gt;On clicking the "Submit" button in the fragment I should be create new ticket with the data. I tried the below code to implement the create functionality.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;submitticket: function(oEvent) {&lt;/P&gt;
&lt;P&gt;var a = this.getView().byId("idibaseTable");&lt;/P&gt;
&lt;P&gt;&amp;nbsp; var oBindingContext = a.getSelectedItem().getBindingContext();&lt;/P&gt;
&lt;P&gt;&amp;nbsp; var service = this.getView().byId("idibaseTable").getModel().getProperty(oBindingContext.getPath());&lt;/P&gt;
&lt;P&gt;&amp;nbsp; var oEntry = this.getView().byId("idibaseTable").getModel().getProperty(oBindingContext.getPath());&lt;/P&gt;
&lt;P&gt;&amp;nbsp; oEntry.type = service.ProcessingTypeCodeText;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; oEntry.SerialID = service.SerialID;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; oEntry.ServicePriorityCodeText = service.ServicePriorityCodeText;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; oEntry.ProductID = service.ProductID;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; oEntry.CustomerID = service.CustomerID;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; oEntry.WarrantyFrom = service.WarrantyFrom;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; oEntry.WarrantyTo = service.WarrantyTo;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; // var oModel = new sap.ui.model.odata.ODataModel("/sap/c4c/odata/v1/c4codata/");&lt;/P&gt;
&lt;P&gt;&amp;nbsp; var oModel = this.getView().getModel("ticketCreate");&lt;/P&gt;
&lt;P&gt;&amp;nbsp; // this.getView().setModel(oModel);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; console.log("model", oModel);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; oModel.create("/ServiceRequestCollection", oEntry, null, function() {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; var msg = "New Service Ticket has been created successfully.";&lt;/P&gt;
&lt;P&gt;&amp;nbsp; MessageBox.show(msg);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp; },&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am facing an error here saying "oModel.create is not a function". Please provide suggestions on how this can be implemented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 14:02:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaq-p/11880584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-27T14:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create new ticket from Fragments</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880585#M4459925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On line 14 where you are fetching the "ticketCreate" model and storing in the oModel variable, check in debugging whether actually the ticketCreate model is getting returned. If for some reason the ticketCreate model reference is not getting fetched then the oModel would hold nothing and hence the error message "oModel.create is not a function".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 09:22:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880585#M4459925</guid>
      <dc:creator>saurabh_vakil</dc:creator>
      <dc:date>2016-09-28T09:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create new ticket from Fragments</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880586#M4459926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply. I am getting the required data in the "ticketCreate" model.&lt;/P&gt;&lt;P&gt;The checked console for the reference.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/1044829" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 10:59:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880586#M4459926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-28T10:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create new ticket from Fragments</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880587#M4459927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In I see,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You want to use create method in json model.JSON Model has not method create.&lt;/P&gt;&lt;P&gt;ODataModel has own create method.Comment 14 line instead of 13.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 12:58:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880587#M4459927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-28T12:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Create new ticket from Fragments</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880588#M4459928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yalcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried your suggestion. Got the error "2016-09-28 20:59:06.225100 The following problem occurred: HTTP request failed400,Bad Request,&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&amp;lt;error xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"&gt;http://schemas.microsoft.com/ado/2007/08/dataservices/metadata&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;code&amp;gt;00145E5B1CC71EE0AB8B3A3B086F432E&amp;lt;/code&amp;gt;&amp;lt;message xml:lang="en"&amp;gt;The Data Services Request could not be understood due to malformed syntax&amp;lt;/message&amp;gt;&amp;lt;/error&amp;gt; -" in the console.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have the below code in my OnInit()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var oModelTicket = new JSONModel();&lt;/P&gt;&lt;P&gt;this.getView().setModel(oModelTicket, "ticketCreate");&lt;/P&gt;&lt;P&gt;Would that be the reason for the error?&lt;/P&gt;&lt;P&gt;Please advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 15:39:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880588#M4459928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-28T15:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create new ticket from Fragments</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880589#M4459929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions regarding the issue would be very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 10:11:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880589#M4459929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-29T10:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create new ticket from Fragments</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880590#M4459930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at /iwfnd/error_log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And Also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: helvetica, arial; font-size: 9pt; font-style: inherit; font-weight: inherit;"&gt;change &lt;SPAN style="color: #0000ff; font-family: helvetica, arial; font-size: 12px;"&gt;ServiceRequestCollection to &lt;SPAN style="color: #0000ff; font-family: helvetica, arial; font-size: 12px;"&gt;ServiceRequestCollectionSet&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 10:50:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880590#M4459930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-29T10:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create new ticket from Fragments</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880591#M4459931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried /iwfnd/error_log in the console and got the error "Invalid regular expression flags".&lt;/P&gt;&lt;P&gt;Further I also changed my EntitySet name as you suggested. Still facing the same issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 11:04:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880591#M4459931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-29T11:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create new ticket from Fragments</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880592#M4459932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #333333; font-size: 12px;"&gt;Srinivasan,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly, the create method is applicable only for oDataModel and not for JSONModel. If you have defined the ticketCreate model in the init method, I would suggest, create a new oData Model with the service URL. (Line 13).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly the data that needs to be passed in create needs to be JSON object. So comment line 5 and define oEntry as oEntry = {}. Build the oEntry exactly as the service is expecting with all the properties needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Esha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 11:08:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880592#M4459932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-29T11:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create new ticket from Fragments</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880593#M4459933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi Esha,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thank you for your suggestion. As you have suggested I have created a new oDataModel with service url as in line 13 and have also kept oEntry = {} commenting line 5.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I am getting the error&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;"sap-ui-core.js:160 2016-09-29 16:43:04.400689 The following problem occurred: HTTP request failed400,Bad Request,&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&amp;lt;error xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"&gt;http://schemas.microsoft.com/ado/2007/08/dataservices/metadata&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;code&amp;gt;00145E5B1CC71EE0AB8B3A3B086F432E&amp;lt;/code&amp;gt;&amp;lt;message xml:lang="en"&amp;gt;The Data Services Request could not be understood due to malformed syntax&amp;lt;/message&amp;gt;&amp;lt;/error&amp;gt; -"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I am building the oEntry using the code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;var service = this.getView().byId("idibaseTable").getModel().getProperty(oBindingContext.getPath());&lt;/P&gt;
&lt;P&gt;oEntry.type = service.ProcessingTypeCodeText;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; oEntry.SerialID = service.SerialID;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; oEntry.ServicePriorityCodeText = service.ServicePriorityCodeText;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; oEntry.ProductID = service.ProductID;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; oEntry.CustomerID = service.CustomerID;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; oEntry.WarrantyFrom = service.WarrantyFrom;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; oEntry.WarrantyTo = service.WarrantyTo;&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this is the correct procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 11:19:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880593#M4459933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-29T11:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create new ticket from Fragments</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880594#M4459934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you check the value of oEntry in debugger and share that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Esha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 11:27:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880594#M4459934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-29T11:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create new ticket from Fragments</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880595#M4459935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/1045644" /&gt;&lt;/P&gt;&lt;P&gt;The entry array from the console.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 11:34:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880595#M4459935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-29T11:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create new ticket from Fragments</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880596#M4459936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you pass the date fields in oData date format. The screenshot shows they are getting passed as string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For test purpose use new Date() function to create the dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Esha Ailani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 11:40:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880596#M4459936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-29T11:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create new ticket from Fragments</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880597#M4459937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will be using formatter() to display the dates properly. Apart from the date should I be doing anything additional.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 11:44:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880597#M4459937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-29T11:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create new ticket from Fragments</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880598#M4459938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Entry not be array.&lt;/P&gt;&lt;P&gt;Use entry[0] directly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 11:48:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880598#M4459938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-29T11:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create new ticket from Fragments</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880599#M4459939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yalcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still the error persists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 13:01:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880599#M4459939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-29T13:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create new ticket from Fragments</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880600#M4459940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please send controller all code and also add picture of entry values and also /iwfnd/error_log picture.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 13:13:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880600#M4459940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-29T13:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create new ticket from Fragments</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880601#M4459941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the controller code(IbaseDetail_controller.txt) with this message.&lt;/P&gt;&lt;P&gt;Also attaching the image for entry and &lt;SPAN style="color: #333333; font-size: 12px;"&gt;/iwfnd/error_log below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/1045707" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Srinivasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 13:27:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880601#M4459941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-29T13:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create new ticket from Fragments</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880602#M4459942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The format of the data that is passed should match the format the service is expecting it.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;So check the metadata for the service, all the properties should have the correct format. Strings should be passed as Strings, interger as interger and date as dates.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Please use this for the date fields for testing&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;oEntry.WarrantyFrom = new Date();&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;oEntry.WarrantyTo = new Date();&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Also remove the oEntry[0] and just keep as oEntry in the create call(if oEntry is not an array).&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If error exists, share the metadata also.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Esha Ailani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 13:44:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880602#M4459942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-29T13:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create new ticket from Fragments</title>
      <link>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880603#M4459943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Change /ServiceRequestCollection to &lt;SPAN style="font-size: 13.3333px;"&gt;/ServiceRequestCollectionSet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 13:53:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-new-ticket-from-fragments/qaa-p/11880603#M4459943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-29T13:53:48Z</dc:date>
    </item>
  </channel>
</rss>

