<?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: JSON-to-ABAP Deserialize in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/json-to-abap-deserialize/m-p/554279#M21115</link>
    <description>&lt;P&gt;"I want to deserialize the data to a structure and I understand that the return parameter of type ANY is a field symbol (?)"&lt;/P&gt;
  &lt;P&gt;I fear, you have to understand &lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abentyping.htm"&gt;typing of parameters&lt;/A&gt; and the &lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenabap_field_symbols.htm"&gt;concept of field symbols&lt;/A&gt; first.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Nov 2017 13:31:20 GMT</pubDate>
    <dc:creator>retired_member</dc:creator>
    <dc:date>2017-11-20T13:31:20Z</dc:date>
    <item>
      <title>JSON-to-ABAP Deserialize</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/json-to-abap-deserialize/m-p/554277#M21113</link>
      <description>&lt;P&gt;Dear experts,&lt;/P&gt;
  &lt;P&gt;I want to deserialize JSON data to ABAP structures. The ERP system is SAP_BASIS 700 and the following class methods are not available:&lt;/P&gt;
  &lt;UL&gt;
   &lt;LI&gt;/ui2/cl_json=&amp;gt;deserialize&lt;/LI&gt;
   &lt;LI&gt;cl_trex_json_deserializer&lt;BR /&gt;&lt;/LI&gt;
  &lt;/UL&gt;
  &lt;P&gt;So I am using the class cl_hrpayfr_json_deserializer which has a method DESERIALIZE that has input a variable of type string and returns a parameter of type ANY.&lt;/P&gt;
  &lt;P&gt;I want to deserialize the data to a structure and I understand that the return parameter of type ANY is a field symbol (?)&lt;/P&gt;
  &lt;P&gt;When I execute the code I get a runtime error of an unassigned field symbol although prior to calling the deserialize method I assign the target structure to the return parameter of type ANY.&lt;/P&gt;
  &lt;P&gt;Has anyone used the above method or used another method of deserializing?&lt;/P&gt;
  &lt;P&gt;Kind regards,&lt;/P&gt;
  &lt;P&gt;Konstantinos&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 11:26:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/json-to-abap-deserialize/m-p/554277#M21113</guid>
      <dc:creator>konstantinos_vassiliadis</dc:creator>
      <dc:date>2017-11-20T11:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: JSON-to-ABAP Deserialize</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/json-to-abap-deserialize/m-p/554278#M21114</link>
      <description>&lt;P&gt;No, of course you can't use a field symbol that you didn't assign first (ABAP basics).&lt;/P&gt;
  &lt;P&gt;Probably this parameter should be a complex structure data object corresponding to the input JSON (structure field names should probably be equal to the names in the JSON).&lt;/P&gt;
  &lt;P&gt;Maybe, instead of using this unreleased class cl_hrpayfr_json_deserializer (might be deleted in a future release, I don't have it in my ECC 6.0 EHP 7), you could use an open project, for instance &lt;A href="https://github.com/cesar-sap/abap_fm_json"&gt;https://github.com/cesar-sap/abap_fm_json&lt;/A&gt; . Of course, probably you will have to downport the code to ABAP 7.0.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 13:09:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/json-to-abap-deserialize/m-p/554278#M21114</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-11-20T13:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: JSON-to-ABAP Deserialize</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/json-to-abap-deserialize/m-p/554279#M21115</link>
      <description>&lt;P&gt;"I want to deserialize the data to a structure and I understand that the return parameter of type ANY is a field symbol (?)"&lt;/P&gt;
  &lt;P&gt;I fear, you have to understand &lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abentyping.htm"&gt;typing of parameters&lt;/A&gt; and the &lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenabap_field_symbols.htm"&gt;concept of field symbols&lt;/A&gt; first.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 13:31:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/json-to-abap-deserialize/m-p/554279#M21115</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-11-20T13:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: JSON-to-ABAP Deserialize</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/json-to-abap-deserialize/m-p/554280#M21116</link>
      <description>&lt;P&gt;I do have understanding but I do not understand how else to deserialize input JSON.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 13:57:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/json-to-abap-deserialize/m-p/554280#M21116</guid>
      <dc:creator>konstantinos_vassiliadis</dc:creator>
      <dc:date>2017-11-20T13:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: JSON-to-ABAP Deserialize</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/json-to-abap-deserialize/m-p/554281#M21117</link>
      <description>&lt;P&gt;"I do have understanding"&lt;/P&gt;
  &lt;P&gt;Then please debug to check where and why the exception occurs.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 14:41:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/json-to-abap-deserialize/m-p/554281#M21117</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-11-20T14:41:51Z</dc:date>
    </item>
  </channel>
</rss>

