<?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: ENCODING  XML in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577993#M22805</link>
    <description>&lt;P&gt;Sorry, I can't help anymore as I still don't understand where/when your problem is exactly.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2017 18:08:31 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2017-10-24T18:08:31Z</dc:date>
    <item>
      <title>ENCODING  XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577977#M22789</link>
      <description>&lt;P&gt;I am generating xml file from 'CALL TRANSFORMATION' and it is generating with 'UTF-16' encoding method but to transfer this file to FTP server , When i Convert String to XString using 'SCMS_STRING _TO_XSTRING' then this function module converting data in 'UTF-8'and adding a special character in start of string .&lt;/P&gt;
  &lt;P&gt;I required data in 'UTF-16', So Please help&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 06:44:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577977#M22789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-10-23T06:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: ENCODING  XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577978#M22790</link>
      <description>&lt;P&gt;No, SCMS_STRING _TO_XSTRING does not add "a special character in start of string" (I would call it a "BOM" as it's about UTF but here it seems to be a different thing), or is there a bug in a given ABAP release. Which one are you using?&lt;/P&gt;
  &lt;P&gt;Which transformation are you using? ID or a custom one?&lt;/P&gt;
  &lt;P&gt;Could you tell again if you want UTF-8 or UTF-16 in your ABAP program? Which encoding or mime type are you using while calling SCMS_STRING_TO_XSTRING?&lt;/P&gt;
  &lt;P&gt;Moreover, if you generate the file in your abap program with the right target code page, make sure you transfer in BIN mode.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 07:00:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577978#M22790</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-10-23T07:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: ENCODING  XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577979#M22791</link>
      <description>&lt;P&gt;(1)&lt;STRONG&gt; I am using below mention code to generate XML.&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;APPEND WA_XML TO IT_XMLF.&lt;BR /&gt; CLEAR WA_XML.&lt;BR /&gt; DATA:L_DOCUMENT TYPE REF TO IF_IXML_DOCUMENT.&lt;BR /&gt; CALL TRANSFORMATION ('ID')&lt;BR /&gt; SOURCE TAB = IT_XMLF[]&lt;BR /&gt; RESULT XML XML_OUT.&lt;/P&gt;
  &lt;P&gt;(2) &lt;STRONG&gt;When i am using below mention code when calling 'SCMS_STRING_TO_XSTRING' &lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;CALL FUNCTION 'SCMS_STRING_TO_XSTRING'&lt;BR /&gt; EXPORTING&lt;BR /&gt; TEXT = xml_out2&lt;BR /&gt;* MIMETYPE = ' '&lt;BR /&gt;* ENCODING =&lt;BR /&gt; IMPORTING&lt;BR /&gt; BUFFER = xstring1&lt;BR /&gt;* EXCEPTIONS&lt;BR /&gt;* FAILED = 1&lt;BR /&gt;* OTHERS = 2&lt;BR /&gt; .&lt;/P&gt;
  &lt;P&gt;Here i am not passing mime type and encoding because i required data in UTF-16 and after 'CALL TRANSFORMATION' xml data in UTF-16 also.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt; For target Page is below mention screen shot.&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;
  &lt;P&gt;This issue is coming after GST implementation and before GST this code was working fine.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 07:39:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577979#M22791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-10-23T07:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: ENCODING  XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577980#M22792</link>
      <description>&lt;P&gt;Why do you transform to string and not to xstring? Why are you using the undocumented function module SCMS_STRING_TO_XSTRING which is part of a special framework and not the general system method CL_ABAP_CODEPAGE=&amp;gt;CONVERT_TO?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 08:11:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577980#M22792</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-10-23T08:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: ENCODING  XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577981#M22793</link>
      <description>&lt;P&gt;As you use a string variable after RESULT XML, it's automatically encoded in UTF-16 in the string.&lt;/P&gt;
  &lt;P&gt;SCMS_STRING_TO_XSTRING without mimetype/encoding converts the string variable into an xstring variable in UTF-8 without leading bytes.&lt;/P&gt;
  &lt;P&gt;You can be sure of that by debugging and displaying the xstring with the Embedded code page converter (enter the code page 4110 for UTF-8).&lt;/P&gt;
  &lt;P&gt;So, the problem is after SCMS_STRING_TO_XSTRING.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 14:29:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577981#M22793</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-10-23T14:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: ENCODING  XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577982#M22794</link>
      <description>&lt;P&gt;I checkd Codepage through Debugging SCMS_STRING_TO_XSTRING which is processing is 4110.&lt;/P&gt;
  &lt;P&gt;After SCMS_STRING_TO_XSTRING i am using below mention code to transfer file to ftp server.&lt;/P&gt;
  &lt;P&gt;CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'&lt;BR /&gt; EXPORTING&lt;BR /&gt; buffer = xstring1&lt;BR /&gt; IMPORTING&lt;BR /&gt; output_length = len&lt;BR /&gt; TABLES&lt;BR /&gt; binary_tab = it_str[].&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;And after converting XSTRING to Binary i am transferring file to FTP Server.&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;CALL FUNCTION 'FTP_R3_TO_SERVER'&lt;BR /&gt; EXPORTING&lt;BR /&gt; HANDLE = W_HDL&lt;BR /&gt; FNAME = FILE_NAME1 "file path of destination system&lt;BR /&gt; BLOB_LENGTH = len&lt;BR /&gt;* CHARACTER_MODE = MODE&lt;BR /&gt; TABLES&lt;BR /&gt; blob = IT_STR[]&lt;BR /&gt;* TEXT = IT_STR[]&lt;BR /&gt;** TEXT = lt_xml_table[]&lt;BR /&gt; EXCEPTIONS&lt;BR /&gt; TCPIP_ERROR = 1&lt;BR /&gt; COMMAND_ERROR = 2&lt;BR /&gt; DATA_ERROR = 3&lt;BR /&gt; OTHERS = 4.&lt;BR /&gt;&lt;BR /&gt; .&lt;BR /&gt; IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;BR /&gt;* Implement suitable error handling here&lt;BR /&gt; ENDIF.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 04:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577982#M22794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-10-24T04:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: ENCODING  XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577983#M22795</link>
      <description>&lt;P&gt;I mean, just check the XSTRING1 value after SCMS_STRING_TO_XSTRING, that the "Translation" is equal to your original text:&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/attachments/78760-mw3rl.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 05:49:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577983#M22795</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-10-24T05:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: ENCODING  XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577984#M22796</link>
      <description>&lt;P&gt;I checked and find that Translation is equal to original text.&lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 06:08:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577984#M22796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-10-24T06:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: ENCODING  XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577985#M22797</link>
      <description>If the issue is with FTP, the only thing strange maybe is IT_STR, does its name mean that you defined it as a table of STRing of characters? I doubt it will solve because anyway you did the transfer in binary mode (character_mode not passed to 'X') but try with a table of bytes (data it_str type table of X255 for instance).
  &lt;P&gt;Or the issue is about people telling you that the file is wrong. How did they check? Did they copy the file in text mode?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 06:52:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577985#M22797</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-10-24T06:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: ENCODING  XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577986#M22798</link>
      <description>&lt;P&gt;How can i check that issue with FTP server?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 07:17:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577986#M22798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-10-24T07:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: ENCODING  XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577987#M22799</link>
      <description>&lt;P&gt;When i am place the file on ftp server without converting &lt;STRONG&gt;SCMS_STRING_TO_XSTRING&lt;/STRONG&gt; and &lt;STRONG&gt;SCMS_XSTRING_TO_BINARY &lt;/STRONG&gt;is working fine and data in UTF-16 .Use code is mention below.&lt;/P&gt;
  &lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;BR /&gt; EXPORTING&lt;BR /&gt; FILETYPE = 'BIN'&lt;BR /&gt; FILENAME = FILENAME"'C:\Users\VINOD\Desktop\ASN'&lt;BR /&gt; TABLES&lt;BR /&gt; DATA_TAB = IT_STR.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 07:52:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577987#M22799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-10-24T07:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: ENCODING  XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577988#M22800</link>
      <description>&lt;P&gt;I any possibility to change encoding this below mention step.&lt;/P&gt;
  &lt;P&gt;CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'&lt;BR /&gt; EXPORTING&lt;BR /&gt; buffer = xstring1&lt;BR /&gt; IMPORTING&lt;BR /&gt; output_length = len&lt;BR /&gt; TABLES&lt;BR /&gt; binary_tab = it_str[].&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 09:47:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577988#M22800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-10-24T09:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: ENCODING  XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577989#M22801</link>
      <description>&lt;P&gt;?&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes" ?&amp;gt;&amp;lt;EDIFACT&amp;gt;&amp;lt;UNB&amp;gt;&amp;lt;UNB01&amp;gt;&amp;lt;UNB0101&amp;gt;UNOB&amp;lt;/UNB0101&amp;gt;&amp;lt;UNB0102&amp;gt;2&amp;lt;/UNB0102&amp;gt;&amp;lt;/UNB01&amp;gt;&amp;lt;UNB02&amp;gt;&amp;lt;UNB0201&amp;gt;0000100188&amp;lt;/UNB0201&amp;gt;&amp;lt;/UNB02&amp;gt;&amp;lt;UNB03&amp;gt;&amp;lt;UNB0301&amp;gt;HMCL&amp;lt;/UNB0301&amp;gt;&amp;lt;/UNB03&amp;gt;&amp;lt;UNB04&amp;gt;&amp;lt;UNB0401&amp;gt;171014&amp;lt;/UNB0401&amp;gt;&amp;lt;UNB0402&amp;gt;1141&amp;lt;/UNB0402&amp;gt;&amp;lt;/UNB04&amp;gt;&amp;lt;UNB05&amp;gt;1101001772&amp;lt;/UNB05&amp;gt;&amp;lt;UNB07&amp;gt;INVOIC&amp;lt;/UNB07&amp;gt;&amp;lt;/UNB&amp;gt;&amp;lt;/EDIFACT&amp;gt;&lt;/P&gt;
  &lt;P&gt;In this &lt;STRONG&gt;? &lt;/STRONG&gt;is adding in start of file due to which file is not opening &lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 11:01:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577989#M22801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-10-24T11:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: ENCODING  XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577990#M22802</link>
      <description>&lt;P&gt;Yes, of course it's invalid. Wasn't it the initial question? What did produce that please?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 12:17:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577990#M22802</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-10-24T12:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: ENCODING  XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577991#M22803</link>
      <description>&lt;P&gt;I am generating XML file with whole process and below is the output. &lt;/P&gt;
  &lt;P&gt;?&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes" ?&amp;gt;&amp;lt;EDIFACT&amp;gt;&amp;lt;UNB&amp;gt;&amp;lt;UNB01&amp;gt;&amp;lt;UNB0101&amp;gt;UNOB&amp;lt;/UNB0101&amp;gt;&amp;lt;UNB0102&amp;gt;2&amp;lt;/UNB0102&amp;gt;&amp;lt;/UNB01&amp;gt;&amp;lt;UNB02&amp;gt;&amp;lt;UNB0201&amp;gt;0000100188&amp;lt;/UNB0201&amp;gt;&amp;lt;/UNB02&amp;gt;&amp;lt;UNB03&amp;gt;&amp;lt;UNB0301&amp;gt;HMCL&amp;lt;/UNB0301&amp;gt;&amp;lt;/UNB03&amp;gt;&amp;lt;UNB04&amp;gt;&amp;lt;UNB0401&amp;gt;171014&amp;lt;/UNB0401&amp;gt;&amp;lt;UNB0402&amp;gt;1141&amp;lt;/UNB0402&amp;gt;&amp;lt;/UNB04&amp;gt;&amp;lt;UNB05&amp;gt;1101001772&amp;lt;/UNB05&amp;gt;&amp;lt;UNB07&amp;gt;INVOIC&amp;lt;/UNB07&amp;gt;&amp;lt;/UNB&amp;gt;&amp;lt;/EDIFACT&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 12:31:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577991#M22803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-10-24T12:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: ENCODING  XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577992#M22804</link>
      <description>&lt;P&gt;Why don't you transform into an object of CL_SXML_STRING_WRITER, created with encoding UTF-16, and get from there an XSTRING?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 13:57:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577992#M22804</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-10-24T13:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: ENCODING  XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577993#M22805</link>
      <description>&lt;P&gt;Sorry, I can't help anymore as I still don't understand where/when your problem is exactly.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 18:08:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577993#M22805</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-10-24T18:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: ENCODING  XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577994#M22806</link>
      <description>&lt;P&gt;This issue is coming with only one customer but same FMs and program are working properly for different customer.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 07:22:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encoding-xml/m-p/577994#M22806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-10-25T07:22:43Z</dc:date>
    </item>
  </channel>
</rss>

