Deep Insert in Json Format

Hi Team,
I am facing  issue in JSON format which i can achieve using XML format for Create Deep Insert.Can you please have a look and provide your inputs.
SP is 740 SP4
Here for below, Navigation name is Nav2ReqProducts.
I am getting error while passing XML stream, I already referred below link, not able to trace out, and also please give sample JSON data which has multiple inputs as deep insert
http://scn.sap.com/message/14659195#14659195
"d":{
"__metadata":{
"uri" : "http://XXXXXXX.XXXX.com:8000/sap/opu/odata/sap/ZGW_TIRES_CASE_DETAIL_SRV/CaseHeaderSet('')",
  "type" : "ZGW_TIRES_CASE_DETAIL_SRV.CaseHeader"},
"PhoneNumber":"405-595-9130",
"DeviceId":"TEST",
"IvCaseNumber":"8000000519",
"CallDate":"/Date(1407110400000)/",
"CallTime":"PT11H55M00S",
"ServiceNeeded":"Tire Replacement",
"Location":"N bound on i-235 East of ball park",
"Latitude":"0.000000000000",
"Longitude":"0.000000000000",
"VehType":"01",
"VehYear":"2010",
"VehMake":"MACK",
"VehColor":"GREEN",
"VehLicplate":"KJI900",
"VehUnitnum":"54",
"TrailerNumber":"35",
"MaddencoInvoice":"",
"PaymentMethod":"01",
"AccountNo":"23234",
"ReferenceNo":"",
"Technician":"FRED SMITH",
"LoyaltyCard":"",
"StoreDate":"/Date(1407110400000)/",
"StoreTime":"PT12H00M00S",
"ArrivDate":"/Date(1407110400000)/",
"ArrivTime":"PT14H02M15S",
"RollDate":null,
"RollTime":"PT00H00M00S",
"DepDate":null,
"DepTime":"PT00H00M00S",
"EtaDate":"/Date(1407110400000)/",
"EtaTime":"PT13H30M00S",
"ReturnDate":null,
"ReturnTime":"PT00H00M00S",
"AuthPhone":"",
"MobileSentDate":"/Date(1407283200000)/",
"MobileSentTime":"PT14H21M51S",
"Nav2ReqProducts":
"__metadata":{
"uri":"http://tcmod.XX.com/sap/opu/odata/sap/ZGW_TIRES_CASE_DETAIL_SRV/CaseReqProductsSet('0000000010')",
"type":"ZGW_TIRES_CASE_DETAIL_SRV.CaseReqProducts"},
"ItemNo":"0000000010",
"ProductId":"G27373",
"Description":"275/80R24.5 TR144 LRG TL",
"WheelPos":"02",
"TirePos":"02"}]}}
Thanks,
Vijay V

Hello Vijay,
I think error is because of date field.
Please do the following with some changes to payload and check :
1. Change ABAP type to DATE in ABAP Type Editor in service builder.
2. Regenerate objects.
3. Clear /n/iwfnd/cache_cleanup, /n/iwbep/cache_cleanup & smicm cache to be on safer side.
4. In a new session fire the service with the below payload.
         "PhoneNumber" : "405-595-9130",
         "DeviceId" : "TEST",
         "IvCaseNumber" : "8000000519",
         "CallDate" : "\/Date(1405382400000)\/",    
         "CallTime" : "PT08H00M00S",
         "ServiceNeeded" : "",
         "Location" : "loc1",
         "Latitude" : "293.320000000000",
         "Longitude" : "923.420000000000",
         "VehType" : "01",
         "VehYear" : "2004",
         "VehMake" : "TOYOTA",
         "VehColor" : "PINK",
         "VehLicplate" : "9B2127",
         "VehUnitnum" : "10923823",
         "TrailerNumber" : "",
         "MaddencoInvoice" : "AB1829APD",
         "PaymentMethod" : "04",
         "AccountNo" : "192AB39E23",
         "ReferenceNo" : "",
         "Technician" : "JEFF",
         "LoyaltyCard" : "",
         "StoreDate" : "\/Date(1405382400000)\/",
         "StoreTime" : "PT08H10M00S",
         "ArrivDate" : "\/Date(1405382400000)\/",
         "ArrivTime" : "PT08H28M00S",
         "RollDate" : "\/Date(1405382400000)\/",
         "RollTime" : "PT08H44M00S",
         "DepDate" : "\/Date(1405382400000)\/",
         "DepTime" : "PT08H17M00S",
         "EtaDate" : "\/Date(1405382400000)\/",
         "EtaTime" : "PT08H35M00S",
         "ReturnDate" : "\/Date(1405382400000)\/",
         "ReturnTime" : "PT08H59M00S",
         "AuthPhone" : "",
         "MobileSentDate" : "null",
         "MobileSentTime" : "PT00H00M00S",
         "Nav2ReqProducts":
               "ItemNo" : "0000000010",
               "ProductId" : "M00692",
               "Description" : "225/70R19.5 G XST4",
               "WheelPos" : "01",
               "TirePos" : "06"
         "Nav2RemProducts":
               "SvcItem" : "00",
               "FailureCause" : "",
               "RemovalTread" : "",
               "DeleteInd" : ""
Or
"PhoneNumber":"405-595-9130",
"DeviceId":"TEST",
"IvCaseNumber":"8000000519",
"CallDate":"2013-10-23T10:10:10",
"CallTime":"PT11H55M00S",
"ServiceNeeded":"Tire Replacement",
"Location":"N bound on i-235 East of ball park",
"Latitude":"0.000000000000",
"Longitude":"0.000000000000",
"VehType":"01",
"VehYear":"2010",
"VehMake":"MACK",
"VehColor":"GREEN",
"VehLicplate":"KJI900",
"VehUnitnum":"54",
"TrailerNumber":"35",
"MaddencoInvoice":"",
"PaymentMethod":"01",
"AccountNo":"23234",
"ReferenceNo":"",
"Technician":"FRED SMITH",
"LoyaltyCard":"",
"StoreDate":"2013-10-23T10:10:10",
"StoreTime":"PT12H00M00S",
"ArrivDate":"2013-10-23T10:10:10",
"ArrivTime":"PT14H02M15S",
"RollDate":"null",
"RollTime":"PT00H00M00S",
"DepDate":"null",
"DepTime":"PT00H00M00S",
"EtaDate":"2013-10-23T10:10:10",
"EtaTime":"PT13H30M00S",
"ReturnDate":"null",
"ReturnTime":"PT00H00M00S",
"AuthPhone":"",
"MobileSentDate":"2013-10-23T10:10:10",
"MobileSentTime":"PT14H21M51S",
"Nav2ReqProducts":
"ItemNo":"0000000010",
"ProductId":"G27373",
"Description":"275/80R24.5 TR144 LRG TL",
"WheelPos":"02",
"TirePos":"02"
both should work.
revert if any issues. we can check.
Regards,
Ashwin

Similar Messages

  • JSON deep insert returns atom/xml

    Dear,
    When I test a json deep insert (For eaxmple:a POST on /sap/opu/odata/sap/<Gateway_service>/<GW_Data>Set in the GW Client then it returns the result in atom/xml....
    If i add ?$format=json to the call i receive following error:
    The Data Services Request contains SystemQueryOptions that are not allowed for this Request Type
    Is there a way to get the response in json for a POST deep insert/create?
    Thanks in advance!
    Kind Regards,
    Robin

    Hi Robin,
    This error is coming from method PROCESS_ENTITY_SET (/IWCOR/CL_DS_PROC_DISPATCHER)
    Below system query options are not allowed for POST.
    " system query option are not allowed
             IF io_uri->expand IS NOT INITIAL OR
                io_uri->select IS NOT INITIAL OR
                io_uri->filter IS BOUND OR
                io_uri->orderby IS BOUND OR
                io_uri->skip IS NOT INITIAL OR
                io_uri->top IS NOT INITIAL OR
                io_uri->skiptoken IS NOT INITIAL OR
                io_uri->inlinecount IS NOT INITIAL OR
                io_uri->format IS NOT INITIAL.
               RAISE EXCEPTION TYPE /IWCOR/cx_DS_proc_error
                 EXPORTING
                   textid = /IWCOR/cx_DS_proc_error=>invalid_system_query_option.
    ENDIF.
    May be using batch call you can get response in JSON format. I mean using batch method, 1st give call to POST and then to GET which allows $format.
    again on client side (may be ui5), you can easily convert response in json format with available APIs.
    Regards,
    Chandra

  • SSRS Atom feed as JSON format

    Is there anyway to get tablix data in JSON format from Atom Feed generated by an SSRS report?
    Tried HTTP header Accept:application/json, but didn't work. the server still returns XML.

    No, Reporting Service offers only an Atom feed, no other data services.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • In ActionScript 2.0 , How can I send HTTP request and get the response in JSON format.

    I am using ActionScript 2.0 for my app development. I have checked XML and LoadVars class. These classes by default send/receive data either in XML or name/value pair format. I want to send data in JSON format and receive the response in JSON format. How can I achieve this behavior using AS2.0. I have noticed that AS3.0 has the capabilities to do so. My client platform doesn't support AS3.0. Can anybody suggest a way to achieve this?
    Thanks in Advance.

    Atlast I am able to find the solution for this problem. In the end solutioin is very simple.
    Following steps will help in sending request in JSON format.
    1. extend LoadVars class
    2. override toString method. (It should return JSON format )
    3. Use subclass to send the request.

  • Rest method that can support request/responce in both xml and json formats

    Hi,
    I want  to create rest method that can support request/responce in both xml and json formats.
    I am trying in bellow way, but its not working getting error.
    any idea on this?
    Code in IService.cs :
    [OperationContract]       
    [WebGet(UriTemplate = "/Login/{UserID}/{Password}")]
    Responce Login(string UserID, string Password);
    Code in Service.cs :
    public Responce Login(string UserID, string Password)
                try
                    objResponce = new Responce();
                    objResponce.MessageType = Responce.ResponceType.Warning.ToString();
                    string Con = GetConnectionString(UserID, Password);  //Method to check valid user or not
                    if (Con.Trim().Length != 0)            
                        objResponce.Message = "you have logged in Successfully";                   
                    else
                        objResponce.Message = "Please Enter Valid UserID,Password";                
                catch (Exception ex)
                    through ex;             
                return objResponce;
    My Config settings :
    <services>
          <service name="OnePointAPI.OnePointAPIService">
               <endpoint address="JSON" binding="webHttpBinding" contract="OnePointAPI.IOnePointAPIService" behaviorConfiguration="webJSON" ></endpoint>
               <endpoint address="XML" binding="basicHttpBinding" contract="OnePointAPI.IOnePointAPIService" behaviorConfiguration="webXML" ></endpoint>     
          </service>   
     </services>
     <behaviors>
          <serviceBehaviors>
            <behavior>
              <!-- To avoid disclosing metadata information, set the values below to false before deployment -->
              <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
              <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
              <serviceDebug includeExceptionDetailInFaults="false"/>
            </behavior>
          </serviceBehaviors>
          <endpointBehaviors>
            <behavior name="webJSON">
              <webHttp defaultOutgoingResponseFormat="Json"/>
            </behavior>
            <behavior name="webXML">
              <webHttp defaultOutgoingResponseFormat="Xml" />
            </behavior>
          </endpointBehaviors>
     </behaviors>  
    Anwar Shaik

    In several days (in the 19th) i will lecture at
    SQLSaturday #360 and my last demo (hopefully I will have the time) is
    Full implementation of JSON, I will show several function using JSON serializer and deserializer, and as mentioned full implementation including fast
    indexes on JSON column (finding specific Node in 10 million rows
    in less then a second). If you want to wait, then I will publish it latter probably, or you can come the lecture if you want :-)
    * I am using Json.NET framework, by the way.
    regarding your question, all you need is to find a nice serializer/deserializer framework (you can use
    Json.NET framework) in order to do what you are looking for (if I understand what you asked)
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • Convert XML to JSON format

    Hi all,
    I need to do a POC on converting XML format to JSON format,i found that there is rest adapter which we can achieve this  ,
    but i couldn't find the adapter in the list of adapters ,how to download this adapter from sap market place and also is there any alternative way of achieving this.

    Hi Vidya Sagar,
    REST Adapter is not available for free like SOAP, FTP, SFTP etc Adapters. You need to purchase it from third party vendors like Advantco. You can visit the link below for more information:
    REST Adapter for SAP NW PI | Advantco SAP NetWeaver Solutions
    https://www.advantco.com/misc/Gateway%20or%20Progress%20Integration.pdf
    Alternate way to convert XML to JSON and viceversa is use of open source technology - Apache Camel. You can download the Apache Camel from the link below:
    Apache Camel: Camel 2.13.2 Release
    Also you can refer to tutorials and examples available on the site - Apache Camel: Tutorials for the implementation.
    Regards,
    Shreyansh Shah

  • JSON format for stopping a job

    Hi,
    Does anyone know where I can find the information of the json format to stop a job?
    Thanks
    Charles

    Hi,
    to stop a shop with C# or Windows PowerShell is described here:
    http://msdn.microsoft.com/en-us/library/hh921668.aspx
    Perhaps someone can translate it to JavaScript?
    Regards,
    Stefan
    www.sc-orchestrator.eu ,
    Blog sc-orchestrator.eu

  • Issue with exposing the created unicodes-views in to odata in JSON format

    JSON Format not displaying the Unicode’s properly but other formats displaying properly. Please check the screenshot for more info.
    Can you please provide your input is it is an issue from JSON side?
    Thanks in advance
    BR,
    Gowrisankar

    It's really frustrating to develop the form by making referenced Entity Object as Non Updatable. My entire form layout got messed up.
    I am not sure who came up with the requirement of displaying the component as label if the data presented in the compoment is read only. This is definitely pushing us to deviate from the development guide lines specified in the developer guide. One other point is, if the information is rendered as label it severely effect the layout of the form if we go to ADF declarative security on the entity objects.
    In the current scenario (Example scenario with Emp and Dept) I can not display the department details in the Employee form as expected (minimum expectation by any user) by the user (Display the information as inputtext/date).
    Can Some one help me in addressing the issue.
    Thanks and Regards,
    S R Prasad
    Edited by: Prasad Challagundla on Dec 17, 2009 1:44 PM

  • PL/SQL Web Services - JAX-RPC returning in JSON format

    Hello all,
    I have been searching on the web, inclusively on this forum, for a way of returning data in a JSON format from a PL/SQL web service.
    The threads that I have found about this issue are still unanswered.
    Does anyone know if it is possible to create a JAX-RPC web service which returns in JSON format ?
    Regards,
    Pedro

    Hi,
    JAX-RPX services are SOAP services and thus return XML. You want to use REST instead
    Frank

  • How to access search service api to get results in JSON format?

    How to access search service api to get results in JSON format in asp.net web application outside SharePoint farm. It should be an app or SharePoint hosted.
    I have tried the same with the help of "http://dotnetmafia.com/blogs/dotnettipoftheday/archive/2013/04/09/how-to-query-sharepoint-2013-using-rest-and-javascript.aspx".
    function onQuerySuccess(data) {
        var results = data.d.query.PrimaryQueryResult.RelevantResults.Table.Rows.results;
        $("#resultsDiv").append('<table>');
        $.each(results, function () {
            $("#resultsDiv").append('<tr>');
            $.each(this.Cells.results, function () {
                $("#resultsDiv").append('<td>' + this.Value + '</td>');
            $("#resultsDiv").append('</tr>');
        $("#resultsDiv").append('</table>');
    But we are getting data.d as undefined.
    I have checked and verify that I am getting success and data in XML format not in JSON. As I expected the JSON. Although I have specified the "JSON" in headers " headers:
    { "Accept": "application/json;
    odata=verbose" } ". 
    Thanks

    Hi,
    Per my understanding, you might want to access search service REST API and get results in JSON format using jQuery.
    The code you use is working in a SharePoint Hosted App project, to compose a working code snippet easier, you can take the demo below for a try:
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script type="text/javascript">
    _spBodyOnLoadFunctionNames.push("ready");
    function ready()
    var spAppWebUrl = _spPageContextInfo.webAbsoluteUrl;
    var queryUrl = spAppWebUrl + "/_api/search/query?querytext='book'";
    $.ajax({
    url: queryUrl,
    method: "GET",
    headers: { "Accept": "application/json; odata=verbose" },
    success: function (data) {
    console.log(data);
    var results = data.d.query.PrimaryQueryResult.RelevantResults.Table.Rows.results;
    $.each(results, function () {
    $.each(this.Cells.results, function () {
    console.log(this.Key+"--"+this.Value);
    error: function (data) {
    console.log(data);
    </script>
    Add the code into a page of your site, it will retrieve JSON format data and print the search result in the console of browser.
    More information about how to work with SharePoint Hosted App:
    https://msdn.microsoft.com/en-us/library/office/fp142379.aspx
    If you want to call the search service REST API in a remote environment, authentication is required to be taken into consideration, the link below with a working demo
    would be helpful:
    https://pholpar.wordpress.com/2013/05/11/accessing-office-365-sharepoint-sites-using-rest-from-a-local-html-javascript-host/
    Best regards
    Patrick Liang
    TechNet Community Support

  • Generate a Shared Component LIST in XML or JSON format

    Greetings...
    I am using the LIST functionality within the Shared Component area of our application in order to maintain a menu/navigation list. I'm utilizing all of the features of the LIST Shared Component -- links, authorizations, conditions, comments, etc. This list will appear on every page, so I'm putting it on page zero.
    I'd like to get this list in an XML, JSON, or some format so I can manipulate it in javascript to display it. I guess another way to put it is that the template options for a LIST template seem to be very detailed and specific (which is great in general) and I am looking to just get the data out and display it myself.
    I can easily enough write a SQL query to produce the hierarchy proper hierarchy of the list, but I would be circumventing the method ApEx uses to implement all of the conditions and authorizations on the entries. I see there are APIs for both generating the list and also checking conditions, but neither of them are accessible to my custom schema and I wasn't sure if I should even attempt to reproduce them.
    Basically, I'd like to use the built-in functionality of the LIST Shared Component, but use my own display methods.
    Shane.

    http://htmldb.oracle.com/pls/otn/f?p=20297:14

  • Provide XML or json format API

    I love Curah!, it's simple and clean service. Wouldn't it be great if it serve curated contents with json or xml format? I want to display my contents via my Windows Store App.

    Can you tell us a little more about how you would use a Curah! API?  Is the goal to display your own curations in a Windows Store App?  If so, would a curator-specific RSS feed meet your needs?  Or are you interested in other use cases too?
    Sorry for the late reply.
    It would be great to have REST interface not only fetching list of articles but also submitting new items. I'm building statistics learning app, so if Curah provides REST interface, I can mix and personalize contents list with
    YouTube video link, Wikipedia articles, etc in order to share to my colleagues.

  • Why can't I set the date and time insert to the format I want?

    I would like the date to be formatted in the short form on my docs.  However whenever I insert date and Time it always come out  at the long form i.e.
    Monday, 15 April 2013.
    Right clicking allows me to edit it but the next time I inset it the long form re-appears.
    I've tried to do it via the system preferences > language and text > region > customise  route but the same thing thing happens.  I choose the short form at the top of the choices but it still comes out in the long form on the docs.
    Only a minor point but it is irritating 'cos it should be simple (probably is 'cept I'm a bit slow).
    I'm running Mountain Lion 10.8.3
    Thanks
    W.

    Wilfred.   I found this in one of the More like this posts   >>>>>  opposite your first post.  It might apply if you are on Pages 08.   Insert Date/Time: Apple Support Communities
    I would never have thought of double or right clicking on the date itself.  I haven't tested it to see what formats exist.   One last suggestion, if we don't resolve it here, write a new post and put it in the iWork pages columns.   There you may meet up with the gurus in that persuasion.

  • Connecting webservice and retrieve the data in json format.

    Hi,
    I need to connect to web service using java and retrieve the data in the format of JSON.
    I'm pretty new to this kind of technology, so kindly inform me about the class which are to be used.
    Thanks in advance

    There isn't one class that will solve your problems. You need to use many classes, and it's not a trivial task.

  • Insert with date format

    Hi,
    I've a problem with an insert, I wont to insert a record with one date column that I extract from data_picker_item, like this:
    insert into backup_adm.tmp_job_runs@REP920DC_LNK values
    (:P3_OPCO,
    16642,
    to_char(to_date(:P3_TIMESTAMP,'DD/MM/YYYY hh24:mi')),
    to_date('05/11/09 18:34','dd/mm/yy hh24:mi'),4,-1,2,1);
    I.ve receive this error:
    ORA-01461: can bind a LONG value only for insert into a LONG column ORA-02063: preceding line from REP920DC_LNK

    ALWAYS use a column list of the columns being inserted in the INSERT statement.
    insert into backup_adm.tmp_job_runs@REP920DC_LNK
      (column1, column2, ...)
    values
      (value1, value2, ...)If doing this doesn't fix the problem, post a description of the table.

Maybe you are looking for

  • Function module for USD amount to TWD

    Hi, Any one send me function module for converting USD currency to TWD. Thanks, donald

  • What happened to the dialogues in Illustrator?

    In earlier versions of Illustrator, the text of an edittext-box in a dialog box was automatically selected and highlighted by edittext.active = true; Now in CS6 is only the cursor in text box - no highlighting more. How can I restore the "original st

  • Raising Exception in a fork

    Hi, I have a fork with three branches, all the three branches route the workitems to three different users responsible. if any of the three users are not found i need to a raise an exception in that branch and the other branches should continue its e

  • I CAN NOT find serial port init.vi

    In labview8.6 , I CAN NOT find serial port init.vi. Other lots of icon can be found..... 

  • Master page fields are reset on removal of  subform in the document

    Hi, I've got another problem here: In a form I've got a repeatable subform, each intance containing a "remove current instance"-Button and a "add instance"-Button below all the subform instances. This works fine, but every time I delete a subform ins