<?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: How to convert table? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-table/m-p/2867857#M672793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check FM - CHAR_HEX_CONVERSION &lt;/P&gt;&lt;P&gt;Also check this code -&lt;/P&gt;&lt;P&gt;Consider the following code snippet - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : char type c,&lt;/P&gt;&lt;P&gt;       hexa type x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, both these variables are of 1 byte each. However, they store different kinds of data, so we have - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hexa = '41'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;write : hexa to char.&lt;/P&gt;&lt;P&gt;write: char , hexa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hexa is going to store the hexadecimal number 41. (the decimal equivalent is 65). The first write statement does the automatic type conversion. so we get the 65th ASCII character in the character variable (which is the capital A).&lt;/P&gt;&lt;P&gt;~As found in forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2007 08:46:25 GMT</pubDate>
    <dc:creator>amit_khare</dc:creator>
    <dc:date>2007-09-27T08:46:25Z</dc:date>
    <item>
      <title>How to convert table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-table/m-p/2867855#M672791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have following problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********************************&lt;/P&gt;&lt;P&gt;types: begin of XML_LINE,&lt;/P&gt;&lt;P&gt; DATA(256) type x,&lt;/P&gt;&lt;P&gt;end of XML_LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of XML_LINE2,&lt;/P&gt;&lt;P&gt; all(1000) TYPE c,&lt;/P&gt;&lt;P&gt;end of XML_LINE2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: XML_TABLE type table of XML_LINE.&lt;/P&gt;&lt;P&gt;data: XML_TABLE2 type table of XML_LINE2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XML_TABLE2 has records in it. Those records i'd like to "convert" to xml_table. (From C to X)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give me a hint?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance, best regards&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 08:37:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-table/m-p/2867855#M672791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T08:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-table/m-p/2867856#M672792</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;use 'SAP_CONVERT_TO_XML_FORMAT'......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to convert internal table to xml format you could use CALL TRANSFORMATION key word&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: xml_out type string .&lt;/P&gt;&lt;P&gt;call transformation (`ID`)&lt;/P&gt;&lt;P&gt;              source output = youritab&lt;/P&gt;&lt;P&gt;              result xml xml_out. &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;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 08:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-table/m-p/2867856#M672792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T08:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-table/m-p/2867857#M672793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check FM - CHAR_HEX_CONVERSION &lt;/P&gt;&lt;P&gt;Also check this code -&lt;/P&gt;&lt;P&gt;Consider the following code snippet - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : char type c,&lt;/P&gt;&lt;P&gt;       hexa type x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, both these variables are of 1 byte each. However, they store different kinds of data, so we have - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hexa = '41'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;write : hexa to char.&lt;/P&gt;&lt;P&gt;write: char , hexa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hexa is going to store the hexadecimal number 41. (the decimal equivalent is 65). The first write statement does the automatic type conversion. so we get the 65th ASCII character in the character variable (which is the capital A).&lt;/P&gt;&lt;P&gt;~As found in forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 08:46:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-table/m-p/2867857#M672793</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-09-27T08:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-table/m-p/2867858#M672794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is i want to convert from char to hexa:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i want to do this as you decribed it (write char to hexa. ),&lt;/P&gt;&lt;P&gt;i get following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hexa must be of type C,N,D or T&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance, best regards&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 09:29:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-table/m-p/2867858#M672794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T09:29:00Z</dc:date>
    </item>
  </channel>
</rss>

