<?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 - Date and Time in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-date-and-time/m-p/10152592#M1820521</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I would need the reverse as I need to setup automatic date - 24 in the varient So the system date should be converted to the external format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Mar 2014 09:11:35 GMT</pubDate>
    <dc:creator>silentbull</dc:creator>
    <dc:date>2014-03-31T09:11:35Z</dc:date>
    <item>
      <title>Selection Screen - Date and Time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-date-and-time/m-p/10152589#M1820518</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;I have given a selection screen where the user needs to key in the input in the following format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dd.mm.yyyy hh:mm:ss.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reason is that the database fetching these elements accepts only in this criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now as they look into automating this program, they would want to automatically take the current system date and time - 24 hours .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I achieve this in the above format? If this is not possible, let me know if i can make the selection screen with normal sap date format and convert it to the above format on passing to the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 08:28:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-date-and-time/m-p/10152589#M1820518</guid>
      <dc:creator>silentbull</dc:creator>
      <dc:date>2014-03-31T08:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen - Date and Time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-date-and-time/m-p/10152590#M1820519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;You may try Data type &lt;STRONG&gt;&lt;EM&gt;TMSTMP &lt;/EM&gt;&lt;/STRONG&gt;for the field and use input format 20140331141500 for Date 31/03/2014 and time 141500 hrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Jogeswara Rao K&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 08:44:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-date-and-time/m-p/10152590#M1820519</guid>
      <dc:creator>jogeswararao_kavala</dc:creator>
      <dc:date>2014-03-31T08:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen - Date and Time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-date-and-time/m-p/10152591#M1820520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the FM &lt;STRONG&gt;CONVERT_DATE_TO_INTERNAL&lt;/STRONG&gt; to convert date to sap date format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 08:53:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-date-and-time/m-p/10152591#M1820520</guid>
      <dc:creator>gagandeep_singh17</dc:creator>
      <dc:date>2014-03-31T08:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen - Date and Time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-date-and-time/m-p/10152592#M1820521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I would need the reverse as I need to setup automatic date - 24 in the varient So the system date should be converted to the external format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 09:11:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-date-and-time/m-p/10152592#M1820521</guid>
      <dc:creator>silentbull</dc:creator>
      <dc:date>2014-03-31T09:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen - Date and Time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-date-and-time/m-p/10152593#M1820522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you can use FM &lt;STRONG&gt;/SAPDII/SPP05_CONVERT_DATE&lt;/STRONG&gt; to convert system date to external format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 09:18:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-date-and-time/m-p/10152593#M1820522</guid>
      <dc:creator>gagandeep_singh17</dc:creator>
      <dc:date>2014-03-31T09:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen - Date and Time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-date-and-time/m-p/10152594#M1820523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Unfortunately, I am not able to see that FM in solution manager as I am developing this program there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 09:24:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-date-and-time/m-p/10152594#M1820523</guid>
      <dc:creator>silentbull</dc:creator>
      <dc:date>2014-03-31T09:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen - Date and Time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-date-and-time/m-p/10152595#M1820524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA&lt;SPAN class="L0S55"&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; l_tst &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;timestamp&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S52"&gt;GET &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TIME &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STAMP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FIELD &lt;/SPAN&gt;l_tst&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;*&lt;/SPAN&gt;&lt;/SPAN&gt;date - 24&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;BR /&gt; l_tst &lt;SPAN class="L0S55"&gt;=&amp;nbsp; &lt;/SPAN&gt;l_tst &lt;SPAN class="L0S70"&gt;- &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'00000001000000'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S52"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;l_tst &lt;SPAN class="L0S52"&gt;TIME &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ZONE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'UTC&amp;nbsp;&amp;nbsp; '&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 09:40:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-date-and-time/m-p/10152595#M1820524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-31T09:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen - Date and Time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-date-and-time/m-p/10152596#M1820525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA : date1 &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;syst-datum,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv1 &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;c &lt;/SPAN&gt;LENGTH &lt;SPAN class="L0S32"&gt;10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;date1 = sy-datum.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;WRITE &lt;/SPAN&gt;date1 &lt;SPAN class="L0S52"&gt;USING &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;EDIT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MASK &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'__/__/____' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;lv1.&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;WRITE &lt;/SPAN&gt;lv1.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 09:45:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-date-and-time/m-p/10152596#M1820525</guid>
      <dc:creator>gagandeep_singh17</dc:creator>
      <dc:date>2014-03-31T09:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen - Date and Time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-date-and-time/m-p/10152597#M1820526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;See this. Is this your requirement.&lt;/P&gt;&lt;P&gt;With this we are able to get Current time-stamp to selection parameter.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN style="font-size: 8pt;"&gt;REPORT ZTEST.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt; DATA: L_TS &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;TZNTSTMPS,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L_TS_C &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;CHAR14.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt; PARAMETERS:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt; P_TMSTMP &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;TMSTMP OBLIGATORY &lt;SPAN class="L0S52"&gt;MEMORY &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ID &lt;/SPAN&gt;TEST.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt; INITIALIZATION.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;GET &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TIME &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STAMP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FIELD &lt;/SPAN&gt;L_TS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;MOVE &lt;/SPAN&gt;L_TS &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;L_TS_C.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SET &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;PARAMETER &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ID&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'TEST' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FIELD &lt;/SPAN&gt;L_TS_C.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output is&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/421923" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Jogeswara Rao K&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 12:14:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-date-and-time/m-p/10152597#M1820526</guid>
      <dc:creator>jogeswararao_kavala</dc:creator>
      <dc:date>2014-03-31T12:14:49Z</dc:date>
    </item>
  </channel>
</rss>

