<?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: Help Required on Select in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-select/m-p/1602882#M270681</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; As you are passing the primary key to the table EQUI, you can use SELECT SINGLE instead of SELECT and ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &amp;lt;b&amp;gt;SINGLE&amp;lt;/b&amp;gt; EQUNR &lt;/P&gt;&lt;P&gt;              EQTYP&lt;/P&gt;&lt;P&gt;              from EQUI &lt;/P&gt;&lt;P&gt;              into&amp;lt;b&amp;gt; (itab-equnr,&lt;/P&gt;&lt;P&gt;                    itab-eqtyp )&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;             where equnr = '1234' and&lt;/P&gt;&lt;P&gt;                    eqtyp IN ( 'A','D','G','H','I','J'&lt;/P&gt;&lt;P&gt;,'K','L').&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*endselect. &amp;lt;--This is NOT Required.&lt;/P&gt;&lt;P&gt;APPEND ITAB. &amp;lt;--Required,to update the body of ITAB&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are giving individual fields in SELECT ,you have to give the fields in INTO clause. check the above code.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srikanth&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and one more info to you.&lt;/P&gt;&lt;P&gt;if you are sending value as '1234' to this SELECT it will not fetch you the values because its using conversion routine.so first call that conversion routine and then send that value to this SELECT.then only you will get the records.&lt;/P&gt;&lt;P&gt;I guess you wont get values with that SELECT statement.&lt;/P&gt;&lt;P&gt;if i am correc,you can use the conversion exit,&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_ALPHA_INPUT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so what you can do is,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : V_EQUNR TYPE EQUI-EQUNR.
V_EQUNR = '1234'.
   &amp;lt;b&amp;gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
         EXPORTING
              INPUT  = V_EQUNR
         IMPORTING
              OUTPUT = V_EQUNR.&amp;lt;/b&amp;gt;Here you will get value to V_EQUNR with leading zeros.
like '000000000000001234'.
then pass this V_EQUNR field to the SELECT.

SELECT &amp;lt;b&amp;gt;SINGLE&amp;lt;/b&amp;gt; EQUNR 
              EQTYP
              from EQUI 
              into&amp;lt;b&amp;gt; (itab-equnr,
                    itab-eqtyp )&amp;lt;/b&amp;gt; 
             where equnr = '1234' and
                    eqtyp IN ( 'A','D','G','H','I','J'
,'K','L').&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srikanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Kidambi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Sep 2006 10:24:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-22T10:24:38Z</dc:date>
    <item>
      <title>Help Required on Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-select/m-p/1602877#M270676</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;&lt;/P&gt;&lt;P&gt;Need some help for the belwo select statement.&lt;/P&gt;&lt;P&gt;I need to pick some records based on the condition...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select EQUNR and EQTYP from EQUI into itab&lt;/P&gt;&lt;P&gt;       where equnr = '1234' and&lt;/P&gt;&lt;P&gt;       eqtyp = 'A' or 'D' or 'G' or 'H' or 'I' or 'J'  &lt;/P&gt;&lt;P&gt;                or 'K' or 'L'.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this statement correct. How to make the condition for EQTYP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 10:07:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-select/m-p/1602877#M270676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-22T10:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help Required on Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-select/m-p/1602878#M270677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT EQUNR EQTYP into table itab&lt;/P&gt;&lt;P&gt;from equi&lt;/P&gt;&lt;P&gt;where equnr = '1234' and&lt;/P&gt;&lt;P&gt;eqtyp in ('A','D','G','H','I','J','K','L').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;U can even use RANGE for the above..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranges : r_type for equi-eqtyp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_type-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_type-option = 'EQ'.&lt;/P&gt;&lt;P&gt;r_type-low = 'A'.&lt;/P&gt;&lt;P&gt;append r_type.&lt;/P&gt;&lt;P&gt;r_type-low = 'D'.&lt;/P&gt;&lt;P&gt;append r_type.&lt;/P&gt;&lt;P&gt;r_type-option = 'BT'.&lt;/P&gt;&lt;P&gt;r_type-low = 'G'.&lt;/P&gt;&lt;P&gt;r_type-high = 'K'.&lt;/P&gt;&lt;P&gt;append r_type.&lt;/P&gt;&lt;P&gt;SELECT EQUNR EQTYP into table itab&lt;/P&gt;&lt;P&gt;from equi&lt;/P&gt;&lt;P&gt;where equnr = '1234' and&lt;/P&gt;&lt;P&gt;eqtyp in r_type.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;&amp;lt;i&amp;gt;Please award points for all helpful answers&amp;lt;/i&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Anurag Bankley&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 10:09:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-select/m-p/1602878#M270677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-22T10:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help Required on Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-select/m-p/1602879#M270678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select EQUNR EQTYP from EQUI into table itab&lt;/P&gt;&lt;P&gt;where equnr = '1234' and&lt;/P&gt;&lt;P&gt;eqtyp in ('A','D','G','H','I','J','K','L').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 10:13:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-select/m-p/1602879#M270678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-22T10:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help Required on Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-select/m-p/1602880#M270679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try this &lt;/P&gt;&lt;P&gt;SELECT EQUNR EQTYP into table itab&lt;/P&gt;&lt;P&gt;from EQUI&lt;/P&gt;&lt;P&gt;where EQNR eq '1234' and&lt;/P&gt;&lt;P&gt;EQTYP = 'A' or&lt;/P&gt;&lt;P&gt;EQTYP = 'D' or&lt;/P&gt;&lt;P&gt;EQTYP = 'G' or&lt;/P&gt;&lt;P&gt;EQTYP = 'H' or &lt;/P&gt;&lt;P&gt;EQTYP = 'I' or&lt;/P&gt;&lt;P&gt;EQTYP = 'J' or&lt;/P&gt;&lt;P&gt;EQTYP = 'K' or&lt;/P&gt;&lt;P&gt;EQTYP = 'L' &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 10:15:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-select/m-p/1602880#M270679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-22T10:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help Required on Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-select/m-p/1602881#M270680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ranges : r_eqtyp like equi-eqtyp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_eqtyp-low = 'A'.&lt;/P&gt;&lt;P&gt;r_eqtyp-option = 'EQ'.&lt;/P&gt;&lt;P&gt;append r_eqtyp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_eqtyp-low = 'D'.&lt;/P&gt;&lt;P&gt;append r_eqtyp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_eqtyp-low = 'G'.&lt;/P&gt;&lt;P&gt;append r_eqtyp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select equnr&lt;/P&gt;&lt;P&gt;       eqtyp&lt;/P&gt;&lt;P&gt;   from equi&lt;/P&gt;&lt;P&gt;   where equnr = '1234'&lt;/P&gt;&lt;P&gt;     and eqtyp in r_eqtyp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Anu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 10:20:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-select/m-p/1602881#M270680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-22T10:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help Required on Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-select/m-p/1602882#M270681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; As you are passing the primary key to the table EQUI, you can use SELECT SINGLE instead of SELECT and ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &amp;lt;b&amp;gt;SINGLE&amp;lt;/b&amp;gt; EQUNR &lt;/P&gt;&lt;P&gt;              EQTYP&lt;/P&gt;&lt;P&gt;              from EQUI &lt;/P&gt;&lt;P&gt;              into&amp;lt;b&amp;gt; (itab-equnr,&lt;/P&gt;&lt;P&gt;                    itab-eqtyp )&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;             where equnr = '1234' and&lt;/P&gt;&lt;P&gt;                    eqtyp IN ( 'A','D','G','H','I','J'&lt;/P&gt;&lt;P&gt;,'K','L').&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*endselect. &amp;lt;--This is NOT Required.&lt;/P&gt;&lt;P&gt;APPEND ITAB. &amp;lt;--Required,to update the body of ITAB&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are giving individual fields in SELECT ,you have to give the fields in INTO clause. check the above code.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srikanth&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and one more info to you.&lt;/P&gt;&lt;P&gt;if you are sending value as '1234' to this SELECT it will not fetch you the values because its using conversion routine.so first call that conversion routine and then send that value to this SELECT.then only you will get the records.&lt;/P&gt;&lt;P&gt;I guess you wont get values with that SELECT statement.&lt;/P&gt;&lt;P&gt;if i am correc,you can use the conversion exit,&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_ALPHA_INPUT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so what you can do is,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : V_EQUNR TYPE EQUI-EQUNR.
V_EQUNR = '1234'.
   &amp;lt;b&amp;gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
         EXPORTING
              INPUT  = V_EQUNR
         IMPORTING
              OUTPUT = V_EQUNR.&amp;lt;/b&amp;gt;Here you will get value to V_EQUNR with leading zeros.
like '000000000000001234'.
then pass this V_EQUNR field to the SELECT.

SELECT &amp;lt;b&amp;gt;SINGLE&amp;lt;/b&amp;gt; EQUNR 
              EQTYP
              from EQUI 
              into&amp;lt;b&amp;gt; (itab-equnr,
                    itab-eqtyp )&amp;lt;/b&amp;gt; 
             where equnr = '1234' and
                    eqtyp IN ( 'A','D','G','H','I','J'
,'K','L').&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srikanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Kidambi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 10:24:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-select/m-p/1602882#M270681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-22T10:24:38Z</dc:date>
    </item>
  </channel>
</rss>

