<?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 Select statement cannot be done due to UNICODE flag error message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-cannot-be-done-due-to-unicode-flag-error-message/m-p/12546296#M2006498</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt;I am trying to do a selection statement that select two fields from the table KNVV. The selection is as below:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;  SELECT SINGLE podtg, podkz
      FROM knvv
      INTO (lv_podtg, lv_podkz)
       WHERE kunnr = vkdfs-kunnr
       AND vkorg = vkdfs-vkorg
       AND vtweg = vkdfs-vtweg
       AND spart = vkdfs-spart.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I get this error message as below:&lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;This SELECT statement uses additions that can only be used with Unicode flag enabled.&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt;I believe that the issue is happening due to the field podkz, as when I did the selection without it, it worked perfectly and this is also a field which the values are 'X' or empty.&lt;/P&gt;
  &lt;P&gt;Can you please give me a suggestion on how to fix this issue?&lt;/P&gt;
  &lt;P&gt;Thank you all in advance!&lt;/P&gt;</description>
    <pubDate>Thu, 21 Apr 2022 14:40:59 GMT</pubDate>
    <dc:creator>Raxph</dc:creator>
    <dc:date>2022-04-21T14:40:59Z</dc:date>
    <item>
      <title>Select statement cannot be done due to UNICODE flag error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-cannot-be-done-due-to-unicode-flag-error-message/m-p/12546296#M2006498</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt;I am trying to do a selection statement that select two fields from the table KNVV. The selection is as below:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;  SELECT SINGLE podtg, podkz
      FROM knvv
      INTO (lv_podtg, lv_podkz)
       WHERE kunnr = vkdfs-kunnr
       AND vkorg = vkdfs-vkorg
       AND vtweg = vkdfs-vtweg
       AND spart = vkdfs-spart.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I get this error message as below:&lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;This SELECT statement uses additions that can only be used with Unicode flag enabled.&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt;I believe that the issue is happening due to the field podkz, as when I did the selection without it, it worked perfectly and this is also a field which the values are 'X' or empty.&lt;/P&gt;
  &lt;P&gt;Can you please give me a suggestion on how to fix this issue?&lt;/P&gt;
  &lt;P&gt;Thank you all in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 14:40:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-cannot-be-done-due-to-unicode-flag-error-message/m-p/12546296#M2006498</guid>
      <dc:creator>Raxph</dc:creator>
      <dc:date>2022-04-21T14:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement cannot be done due to UNICODE flag error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-cannot-be-done-due-to-unicode-flag-error-message/m-p/12546297#M2006499</link>
      <description>&lt;P&gt;There is the old ABAP SQL syntax, and the new "strict" ABAP SQL syntax. The syntaxes cannot be mixed.&lt;/P&gt;&lt;P&gt;And the error messages are often not very clear.&lt;/P&gt;&lt;P&gt;Your 1st line is in new syntax because of the comma.&lt;/P&gt;&lt;P&gt;Your 5 last lines are in old syntax because ABAP variables are not preceded with arobase (see Host variables in ABAP documentation).&lt;/P&gt;&lt;P&gt;Either old syntax:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT SINGLE podtg podkz
      FROM knvv
      INTO (lv_podtg, lv_podkz)
       WHERE kunnr = vkdfs-kunnr
       AND vkorg = vkdfs-vkorg
       AND vtweg = vkdfs-vtweg
       AND spart = vkdfs-spart.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Or new syntax:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT SINGLE podtg, podkz
      FROM knvv
      INTO (@lv_podtg, @lv_podkz)
       WHERE kunnr = @vkdfs-kunnr
       AND vkorg = @vkdfs-vkorg
       AND vtweg = @vkdfs-vtweg
       AND spart = @vkdfs-spart.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Apr 2022 16:00:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-cannot-be-done-due-to-unicode-flag-error-message/m-p/12546297#M2006499</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-04-21T16:00:26Z</dc:date>
    </item>
  </channel>
</rss>

