<?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: Select with constants in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-constants/m-p/1297579#M157342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suresh.... there are several ways to solve my issue and I've chosen one.  You've answered my question and I won't bore you with the details of what I'm trying to do.  It was more curiosity than anything.  Basically I knew what I was trying to do could be done in standard ANSII SQL but wasn't sure if and how ABAP supported it.  I had tried various methods but none worked.  Last resort was to post the question here.  Thanks again for your follow-up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 May 2006 23:12:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-16T23:12:14Z</dc:date>
    <item>
      <title>Select with constants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-constants/m-p/1297575#M157338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SQL I can use a constant in my selection parameters.  Is it possible to do this in ABAP as well?  For instance is there a similar way to do the following in ABAP (obviously the following will not compile just an example of what I'm trying to do)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of g_itab occurs 0,&lt;/P&gt;&lt;P&gt;        order_no like vbap-vbeln,&lt;/P&gt;&lt;P&gt;        line_no  like vbap-posnr.&lt;/P&gt;&lt;P&gt;data: end of g_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbeln '000010' into table g_itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 22:11:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-constants/m-p/1297575#M157338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T22:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Select with constants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-constants/m-p/1297576#M157339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shaun,&lt;/P&gt;&lt;P&gt;No.. you cannot use constants in the field list..You can revise it as follows..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select vbeln posnr into table g_tab
       from vbap
       where posnr eq '000010'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 22:37:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-constants/m-p/1297576#M157339</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-05-16T22:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Select with constants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-constants/m-p/1297577#M157340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply  Suresh.  I have a way around it but it requires an additional step that I was hoping to avoid.  The example you provide below changes actually what I'm trying to do so it wouldn't work.  Hopefully SAP supports this in the future.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 22:41:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-constants/m-p/1297577#M157340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T22:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Select with constants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-constants/m-p/1297578#M157341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what exactly are you trying to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 22:44:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-constants/m-p/1297578#M157341</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-05-16T22:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Select with constants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-constants/m-p/1297579#M157342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suresh.... there are several ways to solve my issue and I've chosen one.  You've answered my question and I won't bore you with the details of what I'm trying to do.  It was more curiosity than anything.  Basically I knew what I was trying to do could be done in standard ANSII SQL but wasn't sure if and how ABAP supported it.  I had tried various methods but none worked.  Last resort was to post the question here.  Thanks again for your follow-up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 23:12:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-constants/m-p/1297579#M157342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T23:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Select with constants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-constants/m-p/1297580#M157343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you could do this in native sql.&lt;/P&gt;&lt;P&gt;exec sql.&lt;/P&gt;&lt;P&gt;select blah '0001' from xyz etc.&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg,&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF wa,                    &lt;/P&gt;&lt;P&gt;        connid   TYPE spfli-connid,   &lt;/P&gt;&lt;P&gt;        cityfrom TYPE spfli-cityfrom, &lt;/P&gt;&lt;P&gt;        cityto   TYPE spfli-cityto,   &lt;/P&gt;&lt;P&gt;      END OF wa.                      &lt;/P&gt;&lt;P&gt;                                      &lt;/P&gt;&lt;P&gt;DATA c1 TYPE spfli-carrid VALUE 'LH'. &lt;/P&gt;&lt;P&gt;                                      &lt;/P&gt;&lt;P&gt;EXEC SQL.                             &lt;/P&gt;&lt;P&gt;  SELECT '0001', cityfrom, cityto     &lt;/P&gt;&lt;P&gt;  INTO   :wa                          &lt;/P&gt;&lt;P&gt;  FROM   spfli                        &lt;/P&gt;&lt;P&gt;  WHERE  carrid = :c1                 &lt;/P&gt;&lt;P&gt;ENDEXEC.                                                                                &lt;/P&gt;&lt;P&gt;WRITE: / wa-connid, wa-cityfrom, wa-cityto.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, Shaun the details won't bore us... your problem and solution may help others with similar issues, please share it if you can.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 23:16:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-constants/m-p/1297580#M157343</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-05-16T23:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Select with constants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-constants/m-p/1297581#M157344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you explored the option of using native SQL in ABAP ie EXEC..ENDEXEC stuff?&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;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 23:16:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-constants/m-p/1297581#M157344</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-05-16T23:16:38Z</dc:date>
    </item>
  </channel>
</rss>

