<?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 single problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-problem/m-p/2151279#M454225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We moved following include program from dev to prod. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: CABN.&lt;/P&gt;&lt;P&gt;&amp;#133;&amp;#133;..&lt;/P&gt;&lt;P&gt;          SELECT SINGLE * FROM CABN  WHERE&lt;/P&gt;&lt;P&gt;                                       atinn = cabn-atinn AND&lt;/P&gt;&lt;P&gt;                                       klart = '001' AND&lt;/P&gt;&lt;P&gt;                                       objek = i_biw_mara_s-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was working fine in dev but it failed in prd probably because this table was already declared in prd but not dev (sync issue). It gave this this error: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program SAPLXRSA, Include ZBWF00007: Syntax error in line 000020 &lt;/P&gt;&lt;P&gt; 'CABN' has already been declared.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then we commented the tables section and moved the transport again. This time it gave the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The INTO clause is missing at SELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then we put into&amp;#146;s in the code as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*			TABLES: CABN.&lt;/P&gt;&lt;P&gt;&amp;#133;&amp;#133;..&lt;/P&gt;&lt;P&gt;          SELECT SINGLE * FROM CABN into CABN WHERE&lt;/P&gt;&lt;P&gt;                                       atinn = cabn-atinn AND&lt;/P&gt;&lt;P&gt;                                       klart = '001' AND&lt;/P&gt;&lt;P&gt;                                       objek = i_biw_mara_s-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then it gave the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field "CABN" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions for how to fix this problem is greatly appreciated..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 07 Apr 2007 14:36:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-07T14:36:31Z</dc:date>
    <item>
      <title>select single problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-problem/m-p/2151279#M454225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We moved following include program from dev to prod. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: CABN.&lt;/P&gt;&lt;P&gt;&amp;#133;&amp;#133;..&lt;/P&gt;&lt;P&gt;          SELECT SINGLE * FROM CABN  WHERE&lt;/P&gt;&lt;P&gt;                                       atinn = cabn-atinn AND&lt;/P&gt;&lt;P&gt;                                       klart = '001' AND&lt;/P&gt;&lt;P&gt;                                       objek = i_biw_mara_s-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was working fine in dev but it failed in prd probably because this table was already declared in prd but not dev (sync issue). It gave this this error: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program SAPLXRSA, Include ZBWF00007: Syntax error in line 000020 &lt;/P&gt;&lt;P&gt; 'CABN' has already been declared.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then we commented the tables section and moved the transport again. This time it gave the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The INTO clause is missing at SELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then we put into&amp;#146;s in the code as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*			TABLES: CABN.&lt;/P&gt;&lt;P&gt;&amp;#133;&amp;#133;..&lt;/P&gt;&lt;P&gt;          SELECT SINGLE * FROM CABN into CABN WHERE&lt;/P&gt;&lt;P&gt;                                       atinn = cabn-atinn AND&lt;/P&gt;&lt;P&gt;                                       klart = '001' AND&lt;/P&gt;&lt;P&gt;                                       objek = i_biw_mara_s-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then it gave the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field "CABN" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions for how to fix this problem is greatly appreciated..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2007 14:36:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-problem/m-p/2151279#M454225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-07T14:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: select single problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-problem/m-p/2151280#M454226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declaration TABLES: CABN might have been already declared in global data declaration include. Goto SE80, comment out this statement in your z include and activate all the includes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Before moving the transport to PROD, do the consistency check in SE09 of your transport. This avoids failure of transport everytime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK. Try ACTIVATING IT ANYWAY. I really encountered this problem earlier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SKJ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        SKJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2007 14:45:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-problem/m-p/2151280#M454226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-07T14:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: select single problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-problem/m-p/2151281#M454227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi with the code you have written its mandatory that u need to comment out the tables declaration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * FROM vbak into vbak where vbeln is NOT NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I dont declare VBAK it reports an error, I guess when you use the select single * you need to have the tables declared&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont forget to award points if found helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2007 14:55:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-problem/m-p/2151281#M454227</guid>
      <dc:creator>rahulkavuri</dc:creator>
      <dc:date>2007-04-07T14:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: select single problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-problem/m-p/2151282#M454228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I said in my message, I already commented out it but I am still having errors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2007 15:00:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-problem/m-p/2151282#M454228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-07T15:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: select single problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-problem/m-p/2151283#M454229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did this but still having errors..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2007 15:02:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-problem/m-p/2151283#M454229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-07T15:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: select single problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-problem/m-p/2151284#M454230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please use a work area.  Also, I'm a little confused here,  you are selecting from CABN but you are also using CABN-ATINN in your WHERE clause.   Something is not right here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: wa_Cabn type cabn.

clear wa_cabn.
SELECT SINGLE * FROM CABN into WA_CABN
             WHERE atinn = cabn-atinn 
                  AND klart = '001'
                 AND  objek = i_biw_mara_s-matnr.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich HEilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2007 15:28:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-problem/m-p/2151284#M454230</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-07T15:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: select single problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-problem/m-p/2151285#M454231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorry, I copied wrong line.. It was going to be like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          SELECT SINGLE * FROM cabn into cabn  WHERE&lt;/P&gt;&lt;P&gt;                                       atnam = 'LOW_SOLIDS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer. I'll try this. Assigned points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2007 15:36:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-problem/m-p/2151285#M454231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-07T15:36:43Z</dc:date>
    </item>
  </channel>
</rss>

