<?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: doubt with selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-with-selection-screen/m-p/3437140#M825405</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;try this.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES qals.
DATA it_qals TYPE TABLE OF qals WITH HEADER LINE.
SELECT-OPTIONS   s_date  FOR  qals-enstehdat  NO-EXTENSION.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN comment (10)   for field  p_timel.
SELECTION-SCREEN POSITION 35.
PARAMETERS       p_timel LIKE qals-entstezeit.
SELECTION-SCREEN comment 54(2)  for field  p_timeh.
SELECTION-SCREEN POSITION 60.
PARAMETERS       p_timeh LIKE qals-entstezeit.
SELECTION-SCREEN END   OF LINE.

SELECT *
FROM   qals
INTO   TABLE it_qals
WHERE  enstehdat IN s_date.

IF sy-subrc IS INITIAL.
  SORT it_qals BY enstehdat entstezeit.
  LOOP AT it_qals WHERE enstehdat EQ s_date-low
                  OR    enstehdat EQ s_date-high.
    CASE it_qals-enstehdat.
      WHEN s_date-low.
        IF it_qals-entstezeit LT p_timel.
          DELETE it_qals.
        ENDIF.
      WHEN s_date-high.
        IF it_qals-entstezeit GT p_timeh.
          DELETE it_qals.
        ENDIF.
    ENDCASE.
  ENDLOOP.
ENDIF.

LOOP AT it_qals.
  WRITE : / it_qals-enstehdat ,it_qals-entstezeit.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also goto selection text and give descriptionas below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P_TIMEH	to&lt;/P&gt;&lt;P&gt;P_TIMEL	Time&lt;/P&gt;&lt;P&gt;S_DATE	Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Feb 2008 05:43:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-09T05:43:49Z</dc:date>
    <item>
      <title>doubt with selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-with-selection-screen/m-p/3437137#M825402</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;I have to show the inspection lot details (QA32) as per the requirements given in the selection screen.&lt;/P&gt;&lt;P&gt;In my selection screen , I should have select option for Inspection lot created date(QALS-ENSTEHDAT) and lot created time (QALS-ENTSTEZEIT). I would like to know the lots created from yesterday evening till today morning.&lt;/P&gt;&lt;P&gt;When I give the values 09.02.2008 to 10.02.2008 for date and 17:30:00 to 10:00:00 for time , it'll obviously intimate that 'From- time is greater than To- time'.Is there any way to relate the From-date to From-time and To-date to To-time in the selection screen , so that my problem will be solved.Please help with possible code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jayasri P. on Feb 9, 2008 5:55 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2008 04:24:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-with-selection-screen/m-p/3437137#M825402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-09T04:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: doubt with selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-with-selection-screen/m-p/3437138#M825403</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;Other wise you will give time in 24 hr format.&lt;/P&gt;&lt;P&gt;if that is also not valid then you have to follow the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen : begin of block b1 frame title text-001.&lt;/P&gt;&lt;P&gt;select-options : s_matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;select-options : s_date for sy-datum.&lt;/P&gt;&lt;P&gt;selection-screen :end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialaization.&lt;/P&gt;&lt;P&gt;s_date-low = yesturdays date.&lt;/P&gt;&lt;P&gt;s_date-high = todays date.&lt;/P&gt;&lt;P&gt;s_date-sign = 'BT'.&lt;/P&gt;&lt;P&gt;s_date-option = 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;under that you have to code select statement as usual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;swami&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2008 04:44:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-with-selection-screen/m-p/3437138#M825403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-09T04:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: doubt with selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-with-selection-screen/m-p/3437139#M825404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;How to specify the parameter and it's values for time relating to date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jayasri P. on Feb 9, 2008 5:51 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2008 04:50:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-with-selection-screen/m-p/3437139#M825404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-09T04:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: doubt with selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-with-selection-screen/m-p/3437140#M825405</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;try this.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES qals.
DATA it_qals TYPE TABLE OF qals WITH HEADER LINE.
SELECT-OPTIONS   s_date  FOR  qals-enstehdat  NO-EXTENSION.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN comment (10)   for field  p_timel.
SELECTION-SCREEN POSITION 35.
PARAMETERS       p_timel LIKE qals-entstezeit.
SELECTION-SCREEN comment 54(2)  for field  p_timeh.
SELECTION-SCREEN POSITION 60.
PARAMETERS       p_timeh LIKE qals-entstezeit.
SELECTION-SCREEN END   OF LINE.

SELECT *
FROM   qals
INTO   TABLE it_qals
WHERE  enstehdat IN s_date.

IF sy-subrc IS INITIAL.
  SORT it_qals BY enstehdat entstezeit.
  LOOP AT it_qals WHERE enstehdat EQ s_date-low
                  OR    enstehdat EQ s_date-high.
    CASE it_qals-enstehdat.
      WHEN s_date-low.
        IF it_qals-entstezeit LT p_timel.
          DELETE it_qals.
        ENDIF.
      WHEN s_date-high.
        IF it_qals-entstezeit GT p_timeh.
          DELETE it_qals.
        ENDIF.
    ENDCASE.
  ENDLOOP.
ENDIF.

LOOP AT it_qals.
  WRITE : / it_qals-enstehdat ,it_qals-entstezeit.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also goto selection text and give descriptionas below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P_TIMEH	to&lt;/P&gt;&lt;P&gt;P_TIMEL	Time&lt;/P&gt;&lt;P&gt;S_DATE	Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2008 05:43:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-with-selection-screen/m-p/3437140#M825405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-09T05:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: doubt with selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-with-selection-screen/m-p/3437141#M825406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jose.It's working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2008 09:28:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-with-selection-screen/m-p/3437141#M825406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-09T09:28:20Z</dc:date>
    </item>
  </channel>
</rss>

