<?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: ABAP Error Select Comma without preceding colon (after SELECT ?) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-error-select-comma-without-preceding-colon-after-select/m-p/751143#M36139</link>
    <description>&lt;P&gt;As an historical ABAP aside, the language allows "chaining" of ABAP statements using a colon after the keyword and commas separating the target fields or phrases.  Examples include:&lt;/P&gt;&lt;P&gt;WRITE: sflight-carrid, sflight-connid, sflight-fldate.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;ADD 1 TO: var1, var2, var3.&lt;/P&gt;&lt;P&gt;The "comma without preceding colon" is the standard syntax error that would most commonly be encountered when the commas had been put in place, but the colon had been omitted; i.e., a typo &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  &lt;/P&gt;&lt;P&gt;Commas have been allowed in SELECT statements in older versions, but only within parentheses, such as:&lt;/P&gt;&lt;P&gt;SELECT (carrid, connid, fldate) FROM sflight INTO.........&lt;/P&gt;&lt;P&gt;I would suspect that the syntax checker (being backward-compatible) is finding the commas and fails when looking for the colon that is related to the "chain" statement that the commas imply after first looking for the parentheses and not finding them.&lt;/P&gt;&lt;P&gt;But that is just a guess.......&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Loyd Enochs (who taught ABAP from version 3.0d to 4.6c)&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jan 2019 15:44:21 GMT</pubDate>
    <dc:creator>loyd_enochs3</dc:creator>
    <dc:date>2019-01-02T15:44:21Z</dc:date>
    <item>
      <title>ABAP Error Select Comma without preceding colon (after SELECT ?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-error-select-comma-without-preceding-colon-after-select/m-p/751140#M36136</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt;I try to learn ABAP because I have got a small program to build.&lt;/P&gt;
  &lt;P&gt;I bought a book inside when they write a Select instruction:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;Select Col1, Col2, Col3 FROM MyTable Into  @MyVariable.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I don't why I have got this message : Select Comma without preceding colon (after SELECT ?)&lt;/P&gt;
  &lt;P&gt;But if I write without Comma and '@', it is working like&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;Select Col1 Col2 Col3 FROM MyTable Into MyVariable.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I don't know Why? And It is a problem because after I have less possibilty?&lt;/P&gt;
  &lt;P&gt;Thanks for your response.&lt;/P&gt;
  &lt;P&gt;Kind Regard,&lt;/P&gt;
  &lt;P&gt;Allan&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 14:31:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-error-select-comma-without-preceding-colon-after-select/m-p/751140#M36136</guid>
      <dc:creator>former_member601586</dc:creator>
      <dc:date>2019-01-02T14:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Error Select Comma without preceding colon (after SELECT ?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-error-select-comma-without-preceding-colon-after-select/m-p/751141#M36137</link>
      <description>&lt;P&gt;Hi Allan,&lt;/P&gt;&lt;P&gt;There is something called strict mode in abap, which will be applied to all open SQL statements if certain conditions matches.&lt;/P&gt;&lt;P&gt;So in your case, the first select query columns are seperated by the comma, for which the strict mode is automatically added and you need to use @ ..&lt;/P&gt;&lt;P&gt;But in your 2nd select, there are no commas and therefore the strict mode is not applied.. so you don't need to use @ &lt;/P&gt;&lt;P&gt;For more information, see the help below.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abenopensql_strict_mode_740_sp05.htm" target="test_blank"&gt;https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abenopensql_strict_mode_740_sp05.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 15:11:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-error-select-comma-without-preceding-colon-after-select/m-p/751141#M36137</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2019-01-02T15:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Error Select Comma without preceding colon (after SELECT ?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-error-select-comma-without-preceding-colon-after-select/m-p/751142#M36138</link>
      <description>&lt;P&gt;(so Allan has an error in the first select because he uses an ABAP version before 7.40 SP 5)&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 15:22:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-error-select-comma-without-preceding-colon-after-select/m-p/751142#M36138</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-01-02T15:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Error Select Comma without preceding colon (after SELECT ?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-error-select-comma-without-preceding-colon-after-select/m-p/751143#M36139</link>
      <description>&lt;P&gt;As an historical ABAP aside, the language allows "chaining" of ABAP statements using a colon after the keyword and commas separating the target fields or phrases.  Examples include:&lt;/P&gt;&lt;P&gt;WRITE: sflight-carrid, sflight-connid, sflight-fldate.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;ADD 1 TO: var1, var2, var3.&lt;/P&gt;&lt;P&gt;The "comma without preceding colon" is the standard syntax error that would most commonly be encountered when the commas had been put in place, but the colon had been omitted; i.e., a typo &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  &lt;/P&gt;&lt;P&gt;Commas have been allowed in SELECT statements in older versions, but only within parentheses, such as:&lt;/P&gt;&lt;P&gt;SELECT (carrid, connid, fldate) FROM sflight INTO.........&lt;/P&gt;&lt;P&gt;I would suspect that the syntax checker (being backward-compatible) is finding the commas and fails when looking for the colon that is related to the "chain" statement that the commas imply after first looking for the parentheses and not finding them.&lt;/P&gt;&lt;P&gt;But that is just a guess.......&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Loyd Enochs (who taught ABAP from version 3.0d to 4.6c)&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 15:44:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-error-select-comma-without-preceding-colon-after-select/m-p/751143#M36139</guid>
      <dc:creator>loyd_enochs3</dc:creator>
      <dc:date>2019-01-02T15:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Error Select Comma without preceding colon (after SELECT ?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-error-select-comma-without-preceding-colon-after-select/m-p/751144#M36140</link>
      <description>&lt;P&gt;@ &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; I just realised after checking your comment that I answered him incorrectly, instead of telling the issue I told him the difference &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; thanks for the correction. But atleast the help mentioned that it is supported from the version 7.4 sp5 &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; : D&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 15:52:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-error-select-comma-without-preceding-colon-after-select/m-p/751144#M36140</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2019-01-02T15:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Error Select Comma without preceding colon (after SELECT ?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-error-select-comma-without-preceding-colon-after-select/m-p/751145#M36141</link>
      <description>&lt;SPAN class="mention-scrubbed"&gt;loyd.enochs3&lt;/SPAN&gt; Thanks for sharing the information.. it makes a lot of sense now.</description>
      <pubDate>Wed, 02 Jan 2019 15:55:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-error-select-comma-without-preceding-colon-after-select/m-p/751145#M36141</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2019-01-02T15:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Error Select Comma without preceding colon (after SELECT ?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-error-select-comma-without-preceding-colon-after-select/m-p/751146#M36142</link>
      <description>&lt;P&gt;Hi Maesh,&lt;/P&gt;&lt;P&gt;Thank you very much for your answer. It's really help me.&lt;/P&gt;&lt;P&gt;Best Regard, &lt;/P&gt;&lt;P&gt;Allan&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 08:47:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-error-select-comma-without-preceding-colon-after-select/m-p/751146#M36142</guid>
      <dc:creator>former_member601586</dc:creator>
      <dc:date>2019-01-03T08:47:00Z</dc:date>
    </item>
  </channel>
</rss>

