<?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: Selection Screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2720562#M631171</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks For the Reply Kriss.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to select all the records from z_header that meet the below conditions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;time period(start and end time) specified in the selection screen &lt;/P&gt;&lt;P&gt;mode = '1' or '2'&lt;/P&gt;&lt;P&gt;and exp1 &amp;lt; exp2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please tell me how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajeev Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Aug 2007 19:35:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-16T19:35:52Z</dc:date>
    <item>
      <title>Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2720558#M631167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to make a report that will include the follwoing fields at the selection screen &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;starting Time&lt;/P&gt;&lt;P&gt;End Time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and both these times are stored in my custom table z_header, z_header-stime and z_header-etime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please help me out how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajeev Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 19:26:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2720558#M631167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T19:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2720559#M631168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Parameters: P_stime like Z_Header-stime,&lt;/P&gt;&lt;P&gt;                   P_etime like Z_Header-etime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kriss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 19:30:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2720559#M631168</guid>
      <dc:creator>former_member192429</dc:creator>
      <dc:date>2007-08-16T19:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2720560#M631169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Option 1:&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;   PARAMETERS: p_start LIKE z_header-stime,&lt;/P&gt;&lt;P&gt;                           p_end   LIKE z_header-etime.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 2:  &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;   SELECT-OPTIONS: s_start FOR z_header-stime,&lt;/P&gt;&lt;P&gt;                                 s_end  FOR z_header-etime.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 19:35:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2720560#M631169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T19:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2720561#M631170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data: lv_start like  z_header-stime ,
      lv_end          like  z_header-etime .

select-OPTIONS: s_start for lv_start,
                s_end   for lv_end.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 19:35:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2720561#M631170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T19:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2720562#M631171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks For the Reply Kriss.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to select all the records from z_header that meet the below conditions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;time period(start and end time) specified in the selection screen &lt;/P&gt;&lt;P&gt;mode = '1' or '2'&lt;/P&gt;&lt;P&gt;and exp1 &amp;lt; exp2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please tell me how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajeev Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 19:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2720562#M631171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T19:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2720563#M631172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
data: lv_start like  z_header-stime ,
      lv_end          like  z_header-etime,
    lt_tab type table of  z_header.
 
select-OPTIONS: s_start for lv_start,
                s_end   for lv_end.

select * from  z_header into table lt_tab where etime in s_start and 
stime in s_end.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 19:37:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2720563#M631172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T19:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2720564#M631173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks For the reply Amandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you also tell me how to take care of other two conditions as well that I specified in my question.&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;Rajeev Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 19:51:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2720564#M631173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T19:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2720565#M631174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Rajeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  You have been asking the same thing since two days..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lv_start like  z_header-stime ,&lt;/P&gt;&lt;P&gt;      lv_end          like  z_header-etime,&lt;/P&gt;&lt;P&gt;    lt_tab type table of  z_header.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;select-OPTIONS: s_start for lv_start,&lt;/P&gt;&lt;P&gt;                s_end   for lv_end.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;select * from  z_header into table lt_tab where etime in s_start and &lt;/P&gt;&lt;P&gt;stime in s_end and mode in ( '1','2').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exp1 &amp;lt; exp2.. if these two belong to the same table from here you are gettin data i.e z_header you cannot put this condtion rather what you can do is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the above select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete lt_tab where exp1 &amp;lt; exp2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 20:10:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2720565#M631174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T20:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2720566#M631175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Mahesh, &lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;First of all I am not stupid , I know I am asking the same thing beacuse I haven't got it resolved. Moreover the code that you have given is not working, you asked me to move every thing to the internal table and then delete the unwanted records and I tried doing the same but its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is a public platform where we all help each other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajeev Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 20:26:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2720566#M631175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T20:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2720567#M631176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is exp1 z_Header-stime and exp2 z_header-etime, if so add to your where clause:&lt;/P&gt;&lt;P&gt;and stime &amp;lt; etime.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 20:34:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2720567#M631176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T20:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2720568#M631177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since Stime and Etime are the start and end times, what ever user enters in the parameters Start time and End time of selection screen he wants to get the records which are greater than Starttime and Less than endtime.&lt;/P&gt;&lt;P&gt;So, I think the Select must be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * from Z_header into table lt_tab where ( stime ge p_stime and etime le p_etime ) and mode in ('1','2').&lt;/P&gt;&lt;P&gt;There might be some corrections in this code as I am not before the system check the paranthesis and use the code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kriss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 20:35:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2720568#M631177</guid>
      <dc:creator>former_member192429</dc:creator>
      <dc:date>2007-08-16T20:35:09Z</dc:date>
    </item>
  </channel>
</rss>

