<?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: Dynamis where Condition using select-options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamis-where-condition-using-select-options/m-p/2804522#M655234</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;see the highlighted part of my previous post.&lt;/P&gt;&lt;P&gt;it will check whether the select-options are filled or not also.&lt;/P&gt;&lt;P&gt;first i am assigning the value of select-option to a field-symbol and i am checking whether it is initial or not and then i am concatenating it to the where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Sep 2007 06:10:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-06T06:10:58Z</dc:date>
    <item>
      <title>Dynamis where Condition using select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamis-where-condition-using-select-options/m-p/2804514#M655226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to form a dynamic where clause using values entered on a selection screen. I want that if a new entry is added in the selection screen the where clause can also be modified dynamically without any change in coding. The only change required should be addition of select-option statement in the selection screen declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Anju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 05:21:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamis-where-condition-using-select-options/m-p/2804514#M655226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T05:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamis where Condition using select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamis-where-condition-using-select-options/m-p/2804515#M655227</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;you can use the &lt;/P&gt;&lt;P&gt;tables: mara.&lt;/P&gt;&lt;P&gt;select-options: s_matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara into table itab where matnr in s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options will have a structure like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sign &lt;/P&gt;&lt;P&gt;option&lt;/P&gt;&lt;P&gt;low &lt;/P&gt;&lt;P&gt;high&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will behave just like an internal table with header line&lt;/P&gt;&lt;P&gt;you can get the records with in those ranges or out of that range also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 05:27:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamis-where-condition-using-select-options/m-p/2804515#M655227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T05:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamis where Condition using select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamis-where-condition-using-select-options/m-p/2804516#M655228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anju,&lt;/P&gt;&lt;P&gt;    The values you enter in the selection screen would be directly reflected in the where clause once you aplly the following syntax as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: s_f1 for f1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select f1&lt;/P&gt;&lt;P&gt;          f2&lt;/P&gt;&lt;P&gt;          f3&lt;/P&gt;&lt;P&gt;         from DB-Table&lt;/P&gt;&lt;P&gt;         into Int-table&lt;/P&gt;&lt;P&gt;         where f1 IN s_f1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the above syntax will resolve your quiry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rama Murthy.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 05:36:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamis-where-condition-using-select-options/m-p/2804516#M655228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T05:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamis where Condition using select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamis-where-condition-using-select-options/m-p/2804517#M655229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel your question is regarding addition or removal of select-options on the screen...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and rest all should happed automatically, just like it happens in SE11 and SE16.. we can select the fields for selection screen and then the report comes accordingly.. right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Best Regards,&lt;/P&gt;&lt;P&gt;Vikas Bittera.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 05:40:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamis-where-condition-using-select-options/m-p/2804517#M655229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T05:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamis where Condition using select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamis-where-condition-using-select-options/m-p/2804518#M655230</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;Suppose ur code is like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: mara.&lt;/P&gt;&lt;P&gt;data: begin of itab,&lt;/P&gt;&lt;P&gt;          matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;          maktx like makt-maktx,&lt;/P&gt;&lt;P&gt;        end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start-of-selection.&lt;/P&gt;&lt;P&gt;   select-options: mat_no like mara-matnr.&lt;/P&gt;&lt;P&gt;end-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select mara&lt;SUB&gt;matnr makt&lt;/SUB&gt;maktx into corresponding fields of table itab&lt;/P&gt;&lt;P&gt;from mara inner join makt on mara&lt;SUB&gt;matnr = makt&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;where mara~matnr in mat_no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here when u run ur prog it will ask for the material no.&lt;/P&gt;&lt;P&gt;U will enter the material no. then it will dynamically affect the&lt;/P&gt;&lt;P&gt;coding which is already written.&lt;/P&gt;&lt;P&gt;The code will fetch the material no and its description form the &lt;/P&gt;&lt;P&gt;table mara and makt only for those material which u have fill in the&lt;/P&gt;&lt;P&gt;select option at run time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 05:44:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamis-where-condition-using-select-options/m-p/2804518#M655230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T05:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamis where Condition using select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamis-where-condition-using-select-options/m-p/2804519#M655231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;refer below example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L_COND_SYNTAX = 'd2&lt;SUB&gt;ext_status = l_status and d2&lt;/SUB&gt;ext_date ne c_intdate and '&lt;/P&gt;&lt;P&gt;&amp;amp; 'd2~ext_uploaded = space'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT D1&lt;SUB&gt;TKNUM D1&lt;/SUB&gt;SHTYP D1&lt;SUB&gt;TPLST D1&lt;/SUB&gt;ERNAM D1&lt;SUB&gt;ERDAT D1&lt;/SUB&gt;BFART&lt;/P&gt;&lt;P&gt;D1&lt;SUB&gt;VSART D1&lt;/SUB&gt;ROUTE D1&lt;SUB&gt;SIGNI D1&lt;/SUB&gt;EXTI1 D1~TPBEZ&lt;/P&gt;&lt;P&gt;D1&lt;SUB&gt;DATBG D1&lt;/SUB&gt;UATBG D1&lt;SUB&gt;TDLNR D2&lt;/SUB&gt;VBELN D2~POSNR&lt;/P&gt;&lt;P&gt;D2&lt;SUB&gt;EXT_FAILED D2&lt;/SUB&gt;EXT_COUNT D2&lt;SUB&gt;EXT_DATE D2&lt;/SUB&gt;EXT_TIME&lt;/P&gt;&lt;P&gt;D2&lt;SUB&gt;EXT_REP_DATE D2&lt;/SUB&gt;EXT_REP_TIME&lt;/P&gt;&lt;P&gt;D2&lt;SUB&gt;EXT_RES_DATE D2&lt;/SUB&gt;EXT_RES_TIME D2~EXT_ERR_TYPE&lt;/P&gt;&lt;P&gt;INTO TABLE PA_GT_SHIP_HEADER&lt;/P&gt;&lt;P&gt;FROM VTTK AS D1 INNER JOIN RIOZTM_DELSTAT AS D2&lt;/P&gt;&lt;P&gt;ON D1&lt;SUB&gt;TKNUM = D2&lt;/SUB&gt;TKNUM&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;D1~TKNUM IN S_TKNUM AND&lt;/P&gt;&lt;P&gt;D1~SHTYP IN S_SHTYP AND&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;(L_COND_SYNTAX).&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz note the backet in L_COND_SYNTAX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 05:50:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamis-where-condition-using-select-options/m-p/2804519#M655231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T05:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamis where Condition using select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamis-where-condition-using-select-options/m-p/2804520#M655232</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;do like this.&lt;/P&gt;&lt;P&gt;tables:mara.&lt;/P&gt;&lt;P&gt;data:BEGIN OF itab occurs 0,&lt;/P&gt;&lt;P&gt;  field type screen-name,&lt;/P&gt;&lt;P&gt;  END OF itab.&lt;/P&gt;&lt;P&gt;data:condition type string value 'mandt = ''800'''.&lt;/P&gt;&lt;P&gt;data:sel_opt(15),temp(15).&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS:&amp;lt;fs&amp;gt; type any.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS:matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS:ernam for mara-ernam.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;LOOP AT screen.&lt;/P&gt;&lt;P&gt;itab-field = screen-name.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;LOOP AT itab where field cs '-LOW'.&lt;/P&gt;&lt;P&gt;  split itab at '-' into sel_opt temp.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;  ASSIGN (sel_opt) to &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;  IF &amp;lt;fs&amp;gt; is not INITIAL.&lt;/P&gt;&lt;P&gt;    concatenate condition 'AND' sel_opt 'in' sel_opt into condition separated by space.&lt;/P&gt;&lt;P&gt;  ENDIF.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 06:02:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamis-where-condition-using-select-options/m-p/2804520#M655232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T06:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamis where Condition using select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamis-where-condition-using-select-options/m-p/2804521#M655233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all but my query is that when I add a new field on the selection screen the where clause need not be updated every time. It needs to take care of all the filled screen fields on its own.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 06:05:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamis-where-condition-using-select-options/m-p/2804521#M655233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T06:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamis where Condition using select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamis-where-condition-using-select-options/m-p/2804522#M655234</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;see the highlighted part of my previous post.&lt;/P&gt;&lt;P&gt;it will check whether the select-options are filled or not also.&lt;/P&gt;&lt;P&gt;first i am assigning the value of select-option to a field-symbol and i am checking whether it is initial or not and then i am concatenating it to the where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 06:10:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamis-where-condition-using-select-options/m-p/2804522#M655234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T06:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamis where Condition using select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamis-where-condition-using-select-options/m-p/2804523#M655235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;done&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 11:04:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamis-where-condition-using-select-options/m-p/2804523#M655235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T11:04:08Z</dc:date>
    </item>
  </channel>
</rss>

