<?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: Runtime error in SELECT statement? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-select-statement/m-p/10309370#M1834583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have used select end select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;select VBELN ERDAT ERNAM from VBAK into ZMIKESALEDORDER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;endselect.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;and no where clause, I am not understanding your requirements, your query trying to fetch all records.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;and what is the fields from this table Z&lt;SPAN style="color: #333333; font-size: 12px;"&gt;ESALEDORDER(may be diff structure from VBAK)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Please post your clear requirement.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Vadamalai A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 May 2014 17:24:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-05-27T17:24:36Z</dc:date>
    <item>
      <title>Runtime error in SELECT statement?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-select-statement/m-p/10309367#M1834580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keep getting this error and cannot figure out how to fix it. any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code i have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;REPORT Z_SALESORDERMIKE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: ZMIKESALEDORDER, VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: w_VBELN like VBAK-VBELN, w_ERDAT like VBAK-ERDAT, w_ERNAM like VBAK-ERNAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA wa_ZMIKESALEDORDER type VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT VBAK from wa_ZMIKESALEDORDER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: SALESDOC like w_VBELN,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATECRTD like w_ERDAT,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CRTDBY like w_ERNAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;top-of-page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select VBELN ERDAT ERNAM from VBAK into ZMIKESALEDORDER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON SALESDOC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SALESDOC = w_VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: w_VBELN, w_ERDAT, w_ERNAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON DATECRTD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF DATECRTD = w_ERDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: w_VBELN, w_ERDAT, w_ERNAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON CRTDBY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF CRTDBY = w_ERNAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: w_VBELN, w_ERDAT, w_ERNAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-page.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/461322" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 16:41:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-select-statement/m-p/10309367#M1834580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-27T16:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error in SELECT statement?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-select-statement/m-p/10309368#M1834581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Select query syntax need to be changed. &lt;/P&gt;&lt;P&gt;Type SELECT in the abap editor and select the Keyword and press F1 to get the syntax and useful information.&lt;/P&gt;&lt;P&gt;Check sap help documentation for more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AyyamPerumal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 17:16:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-select-statement/m-p/10309368#M1834581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-27T17:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error in SELECT statement?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-select-statement/m-p/10309369#M1834582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ayyam,&lt;/P&gt;&lt;P&gt;Any idea what it needs to be changed to?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 17:23:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-select-statement/m-p/10309369#M1834582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-27T17:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error in SELECT statement?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-select-statement/m-p/10309370#M1834583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have used select end select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;select VBELN ERDAT ERNAM from VBAK into ZMIKESALEDORDER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;endselect.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;and no where clause, I am not understanding your requirements, your query trying to fetch all records.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;and what is the fields from this table Z&lt;SPAN style="color: #333333; font-size: 12px;"&gt;ESALEDORDER(may be diff structure from VBAK)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Please post your clear requirement.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Vadamalai A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 17:24:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-select-statement/m-p/10309370#M1834583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-27T17:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error in SELECT statement?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-select-statement/m-p/10309371#M1834584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Mike,&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please elaborate on what you are trying to bring out from this report?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you are trying to write a single line as no loop is used for the data, use SELECT SINGLE statement like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE VBELN ERDAT ERNAM from VBAK&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; into (W_VBELN,W_ERDAT,W_ERNAM)&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE VBELN = SALESDOC AND ERDAT = DATECRTD AND ERNAM = CRTDBY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still i am not sure what your requirement is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AyyamPerumal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 17:38:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-select-statement/m-p/10309371#M1834584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-27T17:38:13Z</dc:date>
    </item>
  </channel>
</rss>

