<?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 querie in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109105#M105675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aima,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use dynamic where clasue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;To specify a condition dynamically, use: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ... WHERE (&amp;lt;itab&amp;gt;) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &amp;lt;itab&amp;gt; is an internal table with line type C and maximum length 72 characters. All of the conditions listed above except for selection tables, can be written into the lines of &amp;lt;itab&amp;gt;. However, you may only use literals, and not the names of data objects. The internal table can also be left empty. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you only want to specify a part of the condition dynamically, use: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ... WHERE &amp;lt;cond&amp;gt; AND (&amp;lt;itab&amp;gt;) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot link a static and a dynamic condition using OR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may only use dynamic conditions in the WHERE clause of the SELECT statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Nov 2005 14:35:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-14T14:35:02Z</dc:date>
    <item>
      <title>SELECT querie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109096#M105666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everybody,&lt;/P&gt;&lt;P&gt;             I would like know the select querie to be passed when we have more then one option.&lt;/P&gt;&lt;P&gt;That is i have 5 database table fields displayed on my screen and based on the values passed in any of the five fields, i need to pass  the select querie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used AND operator but did not work as it requiries all the five field data ,&lt;/P&gt;&lt;P&gt;I have also tried OR but it takes all the entries in the dbase table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Aima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 14:24:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109096#M105666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T14:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT querie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109097#M105667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post the code for the select statement and your selection screen.  Are you using an inner join?&lt;/P&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>Mon, 14 Nov 2005 14:25:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109097#M105667</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-14T14:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT querie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109098#M105668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you have fields 1, 2 ,3 ,4,5 in ur selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If they are select options,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select fd1 fd2 fd3 fd4 fd5 from mara into itab&lt;/P&gt;&lt;P&gt;            where fd1 IN mara-fd1 and&lt;/P&gt;&lt;P&gt;                  fd2 IN mara-fd2 and&lt;/P&gt;&lt;P&gt;                  .....&lt;/P&gt;&lt;P&gt;                  fd5 IN mara-fd5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If they are Parameters replace the 'IN' in where clause with '='.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 14:30:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109098#M105668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T14:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT querie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109099#M105669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;your problem is that you want a different condition in the select statment?&lt;/P&gt;&lt;P&gt;if yes you can use a dynamical condition.&lt;/P&gt;&lt;P&gt;you can use something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara into t_mara&lt;/P&gt;&lt;P&gt;where (tab_condition).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where you have build tab_condition in this way:&lt;/P&gt;&lt;P&gt;tab_condition-line 'matnr = 00000012'.&lt;/P&gt;&lt;P&gt;append tab_condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;enzo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 14:30:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109099#M105669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T14:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT querie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109100#M105670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM zx INTO TABLE itab_x_302 WHERE pernr EQ&lt;/P&gt;&lt;P&gt;zx-pernr AND orgeh EQ zx-orgeh AND pnr EQ&lt;/P&gt;&lt;P&gt;zpetsy_interflex-pnr AND ksl EQ zx-ksl AND lktl&lt;/P&gt;&lt;P&gt;EQ zx-lktl AND lfr EQ zx-lfr AND sa1 EQ zx-sa1 AND sa2 EQ zx-sa2.&lt;/P&gt;&lt;P&gt;i am fetching only from single table.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 14:31:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109100#M105670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T14:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT querie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109101#M105671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should use them all as ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ranges: r1 for field1,
        r2 for field2,
        r3 for field3,
        r4 for field4,
        r5 for field5.

if not field1 is initial.
  r1-sign = 'I'.
  r1-option = 'EQ'.
  r1-low = field1.
endif.

if not field2 is initial.
  r2-sign = 'I'.
  r2-option = 'EQ'.
  r2-low = field2.
endif.

and so on...

SELECT * from DBTAB where field1 in r1
                      and field2 in r2
                      and field3 in r3
                      and field4 in r4
                      and field5 in r5.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 14:31:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109101#M105671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T14:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT querie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109102#M105672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aima, I get you clearly then you need that all the time you use where clause for a select are not fixed and it depends on the screen fields populated with value ..right...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case you have to use DYNAMIC SELECT WITH DYNAMIC WHERE CLAUSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like as you write the whereh clause , you have to form a string  e.g. &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ITAB-DATA = 'BUKRS = v_bukrs' .&lt;/P&gt;&lt;P&gt;APPEND ITAB&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YOU WILL FILL THIS STRING ONLY IF V_BUKRS HAS VALUE..ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THEN USE SELECT LIKE...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM xxx&lt;/P&gt;&lt;P&gt;WHERE (ITAB).&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***where this ITAB is the internal table which will hold the dynamic where clause&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 14:33:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109102#M105672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T14:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT querie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109103#M105673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raju,&lt;/P&gt;&lt;P&gt;         i am working with screens and as i have pasted the code below i have used AND but does'nt work as i requires all the field data .&lt;/P&gt;&lt;P&gt;if i am using OR then it is selecting all the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 14:34:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109103#M105673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T14:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT querie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109104#M105674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U are doing good job. My understanding is U are entering  table name and fields and operator also. When U are using AND or OR operator U need to check it which operator exiting in filed content and accordingly execute separate block of code. I think it may give an idea to proceed further. If not pls. paste your code and write your objective very clearly then I will reply with code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enjoy SAP.&lt;/P&gt;&lt;P&gt;K.R.Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 14:34:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109104#M105674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T14:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT querie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109105#M105675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aima,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use dynamic where clasue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;To specify a condition dynamically, use: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ... WHERE (&amp;lt;itab&amp;gt;) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &amp;lt;itab&amp;gt; is an internal table with line type C and maximum length 72 characters. All of the conditions listed above except for selection tables, can be written into the lines of &amp;lt;itab&amp;gt;. However, you may only use literals, and not the names of data objects. The internal table can also be left empty. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you only want to specify a part of the condition dynamically, use: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ... WHERE &amp;lt;cond&amp;gt; AND (&amp;lt;itab&amp;gt;) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot link a static and a dynamic condition using OR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may only use dynamic conditions in the WHERE clause of the SELECT statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 14:35:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109105#M105675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T14:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT querie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109106#M105676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aima,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If u have 5 Selection Screen like z1, z2, z3, z4 and z5. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the SELECT stmt would like : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;SELECT * FROM zx INTO TABLE itab_x_302 &lt;/P&gt;&lt;P&gt;      WHERE pernr EQ z1 &lt;/P&gt;&lt;P&gt;       AND orgeh  EQ z2&lt;/P&gt;&lt;P&gt;       AND pnr    EQ z3&lt;/P&gt;&lt;P&gt;       AND ksl EQ    z4&lt;/P&gt;&lt;P&gt;       AND lktl EQ z5 &lt;/P&gt;&lt;P&gt;       AND lfr EQ z6 &lt;/P&gt;&lt;P&gt;       AND sa1 EQ z7 &lt;/P&gt;&lt;P&gt;      AND sa2 EQ z8.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U cannot have the Where Condition  Like this!!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE pernr EQ&lt;/P&gt;&lt;P&gt;zx-pernr AND orgeh EQ zx-orgeh AND pnr EQ&lt;/P&gt;&lt;P&gt;zpetsy_interflex-pnr AND ksl EQ zx-ksl AND lktl&lt;/P&gt;&lt;P&gt;EQ zx-lktl AND lfr EQ zx-lfr AND sa1 EQ zx-sa1 AND sa2 EQ zx-sa2.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Kam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 14:35:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109106#M105676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T14:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT querie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109107#M105677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT * FROM zx INTO TABLE itab_x_302 &lt;/P&gt;&lt;P&gt;         WHERE pernr EQ zx-pernr AND &lt;/P&gt;&lt;P&gt;               orgeh EQ zx-orgeh AND &lt;/P&gt;&lt;P&gt;               pnr EQ zpetsy_interflex-pnr AND &lt;/P&gt;&lt;P&gt;               ksl EQ zx-ksl AND &lt;/P&gt;&lt;P&gt;               lktl EQ zx-lktl AND &lt;/P&gt;&lt;P&gt;               lfr EQ zx-lfr AND &lt;/P&gt;&lt;P&gt;               sa1 EQ zx-sa1 AND &lt;/P&gt;&lt;P&gt;               sa2 EQ zx-sa2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is zpetsy_interflex-pnr a selection screen field ?? If so then everything should work fine. Let us know whetehr all these fields are parameters or select options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 14:35:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109107#M105677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T14:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT querie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109108#M105678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want data based on all those fields in the selection screen then you have to use AND only and see below example for joining 5 tasbles.&lt;/P&gt;&lt;P&gt;  select vbak&lt;SUB&gt;vbeln  vbak&lt;/SUB&gt;erdat&lt;/P&gt;&lt;P&gt;     from vbak &lt;/P&gt;&lt;P&gt;       inner join vbap on vbap&lt;SUB&gt;vbeln = vbak&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;       inner join vbrk on vbrk&lt;SUB&gt;vbeln = vbrk&lt;/SUB&gt;reference field&lt;/P&gt;&lt;P&gt;       inner join vbrp on vbrp&lt;SUB&gt;vbeln = vbrk&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;       inner join mara on mara&lt;SUB&gt;matnr = vbap&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;       inner join marm on marm&lt;SUB&gt;matnr = vbap&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;     where vbak~vbeln in s_vbeln and&lt;/P&gt;&lt;P&gt;           mata~matnr in s_matnr and&lt;/P&gt;&lt;P&gt;              ...&lt;/P&gt;&lt;P&gt;              ,,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 14:36:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109108#M105678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T14:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT querie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109109#M105679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi aima,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Like already mentioned use dynamic where conditions.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  First check  whenther the field empty or not insert to dynmic tab.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;if not zx-pernr is initial.&lt;/P&gt;&lt;P&gt;  concatnate 'pernr' '=' zx-pernr into &lt;/P&gt;&lt;P&gt;        tab_condition-line separated by space.&lt;/P&gt;&lt;P&gt;   append tab_condition.&lt;/P&gt;&lt;P&gt;endif.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Here zx-pernr is the name of your screen field.&lt;/P&gt;&lt;P&gt;like that check all the screen fields and populate to  tab_condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from zx into itab&lt;/P&gt;&lt;P&gt;where (tab_condition).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Siri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srilatha T&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srilatha T&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 14:39:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109109#M105679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T14:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT querie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109110#M105680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is zpetsy_interflex-pnr a selection screen field ?? &lt;/P&gt;&lt;P&gt;yes it is a selection screen field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 14:39:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109110#M105680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T14:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT querie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109111#M105681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ALso check sy-subrc after ur select statement !! There might be data for your condition  . I think ur selct works fine since you say data is fetched for OR condition. I think there is no data for ur AND condition.&lt;/P&gt;&lt;P&gt;Check the table. &lt;/P&gt;&lt;P&gt;Since you have given EQ i assume they are parameters, change them to select options and then chnage the EQ codition to IN condition in the where clause.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 14:39:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109111#M105681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T14:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT querie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109112#M105682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reddy,&lt;/P&gt;&lt;P&gt;          Firstly i would like to make it clear that i am not working with Select-options or Parameters.&lt;/P&gt;&lt;P&gt;These fields are taken from dictionary as i am working in se51 getting the fields from dic .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; secondly i have more than 1 fields value to pass in select querie taking from zx-sa1 and so on&lt;/P&gt;&lt;P&gt;for example of i wanna get data based on one field&lt;/P&gt;&lt;P&gt;i pass &lt;/P&gt;&lt;P&gt;select * from xtab into itab where fld = scr-fld.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i have more flds based on which i have to select than wat is my select querie?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope i am clear with my objective&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 14:49:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109112#M105682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T14:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT querie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109113#M105683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you tried out the code snippet given by Srilatha? I think that's the best way to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 14:55:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109113#M105683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T14:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT querie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109114#M105684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt; i have tried the sol given by srilatha but i find  more complex , for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not zx-pernr is initial "&amp;lt;b&amp;gt;here i need to add my four fields which are intial.&amp;lt;/b&amp;gt;concatnate 'pernr' '=' zx-pernr into &lt;/P&gt;&lt;P&gt;tab_condition-line separated by space.&lt;/P&gt;&lt;P&gt;append tab_condition.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt; if work like this then i need check 15 or more conditions IS'nt it ?&lt;/P&gt;&lt;P&gt;if i am wrong the just guide me ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 15:18:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109114#M105684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T15:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT querie</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109115#M105685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this condition for all the screen fields( say u have 5 selection screen fields, then check this condition for those 5 fields along ) and populate to tab_condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2005 15:23:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querie/m-p/1109115#M105685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-14T15:23:35Z</dc:date>
    </item>
  </channel>
</rss>

