<?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: Code Page Conversion From XML to SAP to save in database in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-page-conversion-from-xml-to-sap-to-save-in-database/m-p/6918052#M1483849</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to use the iXML library I'd suggest to check the online help, e.g. [iXML ABAP Objects Jumpstart|http://help.sap.com/saphelp_nw04/Helpdata/EN/86/8280ba12d511d5991b00508b6b8b11/frameset.htm]. You could also check out the Wiki, e.g. [XML to ABAP Internal Table Conversion|http://wiki.sdn.sap.com/wiki/display/Snippets/XML&lt;EM&gt;TO&lt;/EM&gt;ABAP&lt;EM&gt;INTERNAL&lt;/EM&gt;TABL+CONVERSION].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an alternative (or extension) to the iXML approach I also recommend to take a look at [CALL TRANSFORMATION|http://help.sap.com/abapdocu_70/en/ABAPCALL_TRANSFORMATION.htm].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't like either way, check out &lt;SPAN __jive_macro_name="thread" id="951159"&gt;&lt;/SPAN&gt;. In general I recommend doing a search on SDN using a term like &lt;EM&gt;XML to ABAP transformation&lt;/EM&gt;, which will give you lots of results. As you'd expect, lots of people had this problem before... &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Apr 2010 09:35:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-30T09:35:08Z</dc:date>
    <item>
      <title>Code Page Conversion From XML to SAP to save in database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-page-conversion-from-xml-to-sap-to-save-in-database/m-p/6918047#M1483844</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'm get the Below XML File.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;- &amp;lt;XML&amp;gt;
- &amp;lt;DataMapping&amp;gt;
  &amp;lt;Field Name="AssociatedBlueSheet" Destination="MH_Bluesheet" Type="boolean"&amp;gt;True&amp;lt;/Field&amp;gt; 
  &amp;lt;Field Name="CloseDate" Destination="CloseDate" Type="date"&amp;gt;2006%2E12%2E31&amp;lt;/Field&amp;gt; 
  &amp;lt;Field Name="BlueSheetUpdated" Destination="Timestamp" Type="date"&amp;gt;timestamp&amp;lt;/Field&amp;gt; 
  &amp;lt;Field Name="RedFlags" Destination="RedFlags" Type="memo"&amp;gt;r1%0D%0Ar2%0D%0A&amp;lt;/Field&amp;gt; 
  &amp;lt;Field Name="ManagersNotes" Destination="ManagersNotes" Type="memo"&amp;gt;Single%20Sales%20Objective%20%3A%20ss%0D%0A&amp;lt;/Field&amp;gt; 
  &amp;lt;Field Name="ManagersNotesExist" Destination="ManagersNotesFlag" Type="boolean"&amp;gt;True&amp;lt;/Field&amp;gt; 
  &amp;lt;Field Name="AdditionalNotesExist" Destination="OpportunityNotesFlag" Type="boolean"&amp;gt;True&amp;lt;/Field&amp;gt; 
- &amp;lt;Table Name="OpportunityContactRole" Destination="Influences"&amp;gt;
- &amp;lt;Row&amp;gt;
  &amp;lt;Field Name="ContactID" Type="STANDARD"&amp;gt;1&amp;lt;/Field&amp;gt; 
  &amp;lt;Field Name="RoleID" Type="STANDARD"&amp;gt;U&amp;lt;/Field&amp;gt; 
  &amp;lt;Field Name="RoleName" Type="STANDARD"&amp;gt;User&amp;lt;/Field&amp;gt; 
  &amp;lt;/Row&amp;gt;
- &amp;lt;Row&amp;gt;
  &amp;lt;Field Name="ContactID" Type="STANDARD"&amp;gt;1&amp;lt;/Field&amp;gt; 
  &amp;lt;Field Name="RoleID" Type="STANDARD"&amp;gt;T&amp;lt;/Field&amp;gt; 
  &amp;lt;Field Name="RoleName" Type="STANDARD"&amp;gt;Technical&amp;lt;/Field&amp;gt; 
  &amp;lt;/Row&amp;gt;
- &amp;lt;Row&amp;gt;
  &amp;lt;Field Name="ContactID" Type="STANDARD"&amp;gt;2&amp;lt;/Field&amp;gt; 
  &amp;lt;Field Name="RoleID" Type="STANDARD"&amp;gt;E&amp;lt;/Field&amp;gt; 
  &amp;lt;Field Name="RoleName" Type="STANDARD"&amp;gt;Economic&amp;lt;/Field&amp;gt; 
  &amp;lt;/Row&amp;gt;
  &amp;lt;/Table&amp;gt;
  &amp;lt;Field Name="PlaceInSalesFunnel" Destination="SalesFunnel" Type="string" /&amp;gt; 
  &amp;lt;Field Name="Strengths" Destination="Strengths" Type="memo"&amp;gt;s1%0D%0As2%0D%0Atest%0D%0A&amp;lt;/Field&amp;gt; 
  &amp;lt;/DataMapping&amp;gt;
  &amp;lt;/XML&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to Read the XML which is the UTF-8 format and also want to save the respective fields in the CRM .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem i'm facing is to conver the such values of field "s1%0D%0As2%0D%0Atest%0D%0A" to normal string or character so that i can update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me to achive this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 14:32:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-page-conversion-from-xml-to-sap-to-save-in-database/m-p/6918047#M1483844</guid>
      <dc:creator>former_member830415</dc:creator>
      <dc:date>2010-04-28T14:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Code Page Conversion From XML to SAP to save in database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-page-conversion-from-xml-to-sap-to-save-in-database/m-p/6918048#M1483845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this format %20%0D%0A etc. is abnormal in an XML. Such characters comes from URIs (web browsers), so the problem is in the web application where data is entered (it should use "unescape" command when form fields are retrieved). Could you explain the whole context please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 21:39:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-page-conversion-from-xml-to-sap-to-save-in-database/m-p/6918048#M1483845</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-04-28T21:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Code Page Conversion From XML to SAP to save in database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-page-conversion-from-xml-to-sap-to-save-in-database/m-p/6918049#M1483846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I second with what Rossi said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg the date should be coming in as "2006-12-31" and not as "2006%2E12%2E31".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else, there should be relevant conversion exit/routine that kicks-up to do conversions to valid formats in CRM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Phani R.Mullapudi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 22:13:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-page-conversion-from-xml-to-sap-to-save-in-database/m-p/6918049#M1483846</guid>
      <dc:creator>phanir_mullapudi</dc:creator>
      <dc:date>2010-04-28T22:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Code Page Conversion From XML to SAP to save in database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-page-conversion-from-xml-to-sap-to-save-in-database/m-p/6918050#M1483847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nilesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As pointed out already by the previous two posters your XML document looks a bit odd. The used [percent encoding|http://en.wikipedia.org/wiki/Percent-encoding] is also called URL encoding and that's basically where you find it (URL's and form content). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In XML documents you'd normally expect to see an &lt;EM&gt;XML declaration&lt;/EM&gt; (though not mandatory) of the form &lt;EM&gt;&amp;amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;amp;gt;&lt;/EM&gt; (i.e. specifying version and encoding, the latter could of course be different). Since this is absent in your document it might actually be that you have an XML document that's supposed to be in ASCII. However, in that case on would expect instead of the &lt;EM&gt;percent encoding&lt;/EM&gt; either usage of [entity definitions|http://www.w3.org/TR/2010/PR-xml-entity-names-20100211/] or character encodings starting with &lt;STRONG&gt;&amp;amp;#&lt;/STRONG&gt; as described in [Character and Entity References|http://www.w3.org/TR/2008/REC-xml-20081126/#sec-references].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyhow, if for some strange reason you're actually facing the same dilemma as most of us (no control over some other crappy application delivering data), check out method &lt;STRONG&gt;UNESCAPE_URL&lt;/STRONG&gt; in class &lt;STRONG&gt;CL_HTTP_UTILITY&lt;/STRONG&gt;. Usage is straightforward, just plug in the escaped/url-encoded text and you'll get the corresponding result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, harald&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.s.: Note that your date format seems off, e.g. your &lt;EM&gt;CloseDate&lt;/EM&gt; of &lt;EM&gt;2006%2E12%2E31&lt;/EM&gt; translates to &lt;EM&gt;2006.12.31&lt;/EM&gt; (because &lt;EM&gt;%2E&lt;/EM&gt; is a point and not a dash, which one would expect for a date, i.e. 2006-12-31).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 05:46:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-page-conversion-from-xml-to-sap-to-save-in-database/m-p/6918050#M1483847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-29T05:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Code Page Conversion From XML to SAP to save in database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-page-conversion-from-xml-to-sap-to-save-in-database/m-p/6918051#M1483848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Harald,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to do that with the solution you provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i was trying tor read the XML file and want to update this in the Database with respective field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was using the method find_from_path ( ) of the interface IF_IXML_ELEMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But not able to judge what shoud be the paramters to pass in the 'PATH' for the same XML to read the Value of Name = Associated Blue Sheet and Value = True.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same for Name = Closedate and Vaue = 2006%2E12%2E31 ( 2006.12.31).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Apr 2010 08:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-page-conversion-from-xml-to-sap-to-save-in-database/m-p/6918051#M1483848</guid>
      <dc:creator>former_member830415</dc:creator>
      <dc:date>2010-04-30T08:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Code Page Conversion From XML to SAP to save in database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-page-conversion-from-xml-to-sap-to-save-in-database/m-p/6918052#M1483849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to use the iXML library I'd suggest to check the online help, e.g. [iXML ABAP Objects Jumpstart|http://help.sap.com/saphelp_nw04/Helpdata/EN/86/8280ba12d511d5991b00508b6b8b11/frameset.htm]. You could also check out the Wiki, e.g. [XML to ABAP Internal Table Conversion|http://wiki.sdn.sap.com/wiki/display/Snippets/XML&lt;EM&gt;TO&lt;/EM&gt;ABAP&lt;EM&gt;INTERNAL&lt;/EM&gt;TABL+CONVERSION].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an alternative (or extension) to the iXML approach I also recommend to take a look at [CALL TRANSFORMATION|http://help.sap.com/abapdocu_70/en/ABAPCALL_TRANSFORMATION.htm].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't like either way, check out &lt;SPAN __jive_macro_name="thread" id="951159"&gt;&lt;/SPAN&gt;. In general I recommend doing a search on SDN using a term like &lt;EM&gt;XML to ABAP transformation&lt;/EM&gt;, which will give you lots of results. As you'd expect, lots of people had this problem before... &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Apr 2010 09:35:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-page-conversion-from-xml-to-sap-to-save-in-database/m-p/6918052#M1483849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-30T09:35:08Z</dc:date>
    </item>
  </channel>
</rss>

