<?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 syntax error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/3839448#M923156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can anybody tell me why this SELECT doesn't run&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT cuobj stdpd maabc&lt;/P&gt;&lt;P&gt;      INTO marc-cuobj&lt;/P&gt;&lt;P&gt;           marc-stdpd&lt;/P&gt;&lt;P&gt;           marc-maabc&lt;/P&gt;&lt;P&gt;      FROM MARC&lt;/P&gt;&lt;P&gt;      UP TO 1 ROWS&lt;/P&gt;&lt;P&gt;      WHERE matnr = P_MATNR.&lt;/P&gt;&lt;P&gt;    ENDSELECT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 May 2008 08:22:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-20T08:22:37Z</dc:date>
    <item>
      <title>Select syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/3839448#M923156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can anybody tell me why this SELECT doesn't run&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT cuobj stdpd maabc&lt;/P&gt;&lt;P&gt;      INTO marc-cuobj&lt;/P&gt;&lt;P&gt;           marc-stdpd&lt;/P&gt;&lt;P&gt;           marc-maabc&lt;/P&gt;&lt;P&gt;      FROM MARC&lt;/P&gt;&lt;P&gt;      UP TO 1 ROWS&lt;/P&gt;&lt;P&gt;      WHERE matnr = P_MATNR.&lt;/P&gt;&lt;P&gt;    ENDSELECT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 08:22:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/3839448#M923156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T08:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Select syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/3839449#M923157</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;correct:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;INTO (marc-cuobj,&lt;/P&gt;&lt;P&gt;marc-stdpd,&lt;/P&gt;&lt;P&gt;marc-maabc)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 08:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/3839449#M923157</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-05-20T08:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/3839450#M923158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vahed,&lt;/P&gt;&lt;P&gt;check with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT cuobj stdpd maabc&lt;/P&gt;&lt;P&gt;INTO (marc-cuobj, marc-stdpd, marc-maabc)&lt;/P&gt;&lt;P&gt;FROM MARC&lt;/P&gt;&lt;P&gt;UP TO 1 ROWS&lt;/P&gt;&lt;P&gt;WHERE matnr = P_MATNR.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Also did u defined marc in tables???&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TABLES: marc.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if not then u have define or u have to take local variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Sugest to use select single.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Kumar Vemuru on May 20, 2008 1:58 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 08:27:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/3839450#M923158</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-05-20T08:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/3839451#M923159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT cuobj stdpd maabc&lt;/P&gt;&lt;P&gt;INTO (marc-cuobj,&lt;/P&gt;&lt;P&gt;marc-stdpd,&lt;/P&gt;&lt;P&gt;marc-maabc)&lt;/P&gt;&lt;P&gt;FROM MARC&lt;/P&gt;&lt;P&gt;UP TO 1 ROWS&lt;/P&gt;&lt;P&gt;WHERE matnr = P_MATNR.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are missing brackets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 08:27:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/3839451#M923159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T08:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Select syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/3839452#M923160</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;Create one internal table and put ur fields i.e. marc-cuobj       marc-stdpd       marc-maabc  into that internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then select the fields into an internal tabel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or u have to create the local variable and put the corresponding fields into that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT cuobj stdpd maabc&lt;/P&gt;&lt;P&gt;INTO ( lv_cuobj , lv_stdpd , lv_maabc)&lt;/P&gt;&lt;P&gt;FROM MARC&lt;/P&gt;&lt;P&gt;UP TO 1 ROWS&lt;/P&gt;&lt;P&gt;WHERE matnr = P_MATNR.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 08:28:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/3839452#M923160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T08:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Select syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/3839453#M923161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; You r extracting data from Standard DDIC table &lt;STRONG&gt;MARC&lt;/STRONG&gt; to Internal table MARC.&lt;/P&gt;&lt;P&gt;How can it b possible? Program will show error "redefining the table".  So change the internal table name and the program will run fine.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 08:31:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/3839453#M923161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T08:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Select syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/3839454#M923162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Why select single, as long as I know select up to 1 row is faster.&lt;/P&gt;&lt;P&gt;/Kamran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 08:33:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/3839454#M923162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T08:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Select syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/3839455#M923163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry.....required to b in brackets....it will run...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 08:35:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/3839455#M923163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T08:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Select syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/3839456#M923164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vahed,&lt;/P&gt;&lt;P&gt;I do agree that select up to 1 rows is faster. But only disadvantage is it will hit the data base twise. But with select single it will be once. So i feel its better not to create more network trafic for the sake of fastness of our report. What ever performance u gained in getting data will be lost in hitting the database twice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 08:38:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/3839456#M923164</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-05-20T08:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Select syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/3839457#M923165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is no internal table at all. I fetch the data in a memory and it works properly.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 15:27:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/3839457#M923165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T15:27:12Z</dc:date>
    </item>
  </channel>
</rss>

