<?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: Condition on selection screen parameters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-on-selection-screen-parameters/m-p/5508828#M1259825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ztest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: iseg.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;matnr TYPE matnr,&lt;/P&gt;&lt;P&gt;END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_zldat TYPE iseg-zldat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT matnr FROM iseg INTO TABLE itab&lt;/P&gt;&lt;P&gt;WHERE zldat &amp;lt; p_zldat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Apr 2009 14:32:53 GMT</pubDate>
    <dc:creator>awin_prabhu</dc:creator>
    <dc:date>2009-04-14T14:32:53Z</dc:date>
    <item>
      <title>Condition on selection screen parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-on-selection-screen-parameters/m-p/5508824#M1259821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an ABAP query. Here , I have a date field (ISEG_ZLDAT - Cycle count date ) in the selection screen which is a parameter (not a select option). I have to write a condition for the report to pull all the materials which have a cycle count date less than the value entered on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I give this condition in the code ? Is there a way to do it without using select options ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dikshitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 14:07:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-on-selection-screen-parameters/m-p/5508824#M1259821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T14:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Condition on selection screen parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-on-selection-screen-parameters/m-p/5508825#M1259822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you run the query and double click on the, it will display option for how the selection should take place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in that select "&amp;lt;=" option then put whatever number, the query will select less than or equal value automatically&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 14:12:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-on-selection-screen-parameters/m-p/5508825#M1259822</guid>
      <dc:creator>venkatesan_nagiah</dc:creator>
      <dc:date>2009-04-14T14:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Condition on selection screen parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-on-selection-screen-parameters/m-p/5508826#M1259823</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;1. Use the LE condition in your SELECT or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use a RANGE and transfer the content of your parameter to your range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 14:13:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-on-selection-screen-parameters/m-p/5508826#M1259823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T14:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Condition on selection screen parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-on-selection-screen-parameters/m-p/5508827#M1259824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide me with the table to find the Material cycle time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax is as follows&lt;/P&gt;&lt;P&gt;SELECT      fields &lt;/P&gt;&lt;P&gt;    into         workarea or internal table&lt;/P&gt;&lt;P&gt;    from        tablename&lt;/P&gt;&lt;P&gt;    where      ZLDAT &amp;lt; p_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here p_date is the entered date as parameter on the screen. Hope this helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 14:15:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-on-selection-screen-parameters/m-p/5508827#M1259824</guid>
      <dc:creator>jcutinho</dc:creator>
      <dc:date>2009-04-14T14:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Condition on selection screen parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-on-selection-screen-parameters/m-p/5508828#M1259825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ztest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: iseg.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;matnr TYPE matnr,&lt;/P&gt;&lt;P&gt;END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_zldat TYPE iseg-zldat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT matnr FROM iseg INTO TABLE itab&lt;/P&gt;&lt;P&gt;WHERE zldat &amp;lt; p_zldat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 14:32:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-on-selection-screen-parameters/m-p/5508828#M1259825</guid>
      <dc:creator>awin_prabhu</dc:creator>
      <dc:date>2009-04-14T14:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Condition on selection screen parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-on-selection-screen-parameters/m-p/5508829#M1259826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dikshitha,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    as also said by others try it this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Parameters:
  p_ZLDAT type ISEG-ZLDAT.

Data:
  t_ISEG like standard table of ISEG.

select * from ISEG into table t_ISEG where ZLDAT lt p_ZLDAT.

if sy-subrc ne 0.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 14:44:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-on-selection-screen-parameters/m-p/5508829#M1259826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T14:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Condition on selection screen parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-on-selection-screen-parameters/m-p/5508830#M1259827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have is an abap query. It has 9 input fields and 11 output fields and it uses join conditions.&lt;/P&gt;&lt;P&gt;In this scenario how do I write the condition for the above mentioned scenario ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dikshitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 15:09:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-on-selection-screen-parameters/m-p/5508830#M1259827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T15:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Condition on selection screen parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-on-selection-screen-parameters/m-p/5508831#M1259828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just add the condition, &lt;/P&gt;&lt;P&gt;'WHERE zldat &amp;lt; p_zldat' at the end of your select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;   SELECT a&lt;SUB&gt;matnr b&lt;/SUB&gt;werks b&lt;SUB&gt;dispo c&lt;/SUB&gt;maktx INTO CORRESPONDING FIELDS OF TABLE itab&lt;/P&gt;&lt;P&gt;    FROM mara AS a INNER JOIN marc AS b ON a&lt;SUB&gt;matnr = b&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;    INNER JOIN makt AS c ON a&lt;SUB&gt;matnr = c&lt;/SUB&gt;matnr &lt;/P&gt;&lt;P&gt;    INNER JOIN iseg as d  ON a&lt;SUB&gt;matnr = d&lt;/SUB&gt;matnr  &lt;/P&gt;&lt;P&gt;    WHERE a&lt;SUB&gt;matnr IN s_matnr AND b&lt;/SUB&gt;werks IN s_werks AND b~dispo IN s_dispo &lt;/P&gt;&lt;P&gt;    AND d~zldat &amp;lt; p_zldat.              &amp;lt;---- ADD LIKE THIS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sap Fan on Apr 14, 2009 5:21 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 15:15:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-on-selection-screen-parameters/m-p/5508831#M1259828</guid>
      <dc:creator>awin_prabhu</dc:creator>
      <dc:date>2009-04-14T15:15:39Z</dc:date>
    </item>
  </channel>
</rss>

