<?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: Time Format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-format/m-p/1037291#M85449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Anjali,&lt;/P&gt;&lt;P&gt;  The FM works fine. &lt;/P&gt;&lt;P&gt;  I'll redefine my problem. I want the input in my selection screen in AM/PM format. And print the same in my output (report). This function module HRVE_CONVERT_TIME works fine to print the values but can something be done for the selection screen.&lt;/P&gt;&lt;P&gt;  Please help me out.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deva.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Dec 2005 08:01:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-21T08:01:54Z</dc:date>
    <item>
      <title>Time Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-format/m-p/1037287#M85445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;   I have the requirement that user will input in screen 12 hours (01:10 PM) format for time rather than 24 hours format (13:10). Similarly, the time mask should be 12 hours fomat than 24 hours.&lt;/P&gt;&lt;P&gt;   Any clues with anybody.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deva.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 03:15:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-format/m-p/1037287#M85445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T03:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Time Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-format/m-p/1037288#M85446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, it sounds like you'll have to have a radio button or checkbox for AM/PM and you'll then either have to convert that to 24 hour time to store on the database or leave it in 12 hour format and also store whether it's AM or PM in a separate field. Is that what you're asking?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 03:58:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-format/m-p/1037288#M85446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T03:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Time Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-format/m-p/1037289#M85447</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;Use SET command controls the time field format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For details on SET command Click on the below link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://dev.mysql.com/doc/maxdb/en/78/ac9b41aa6ca309e10000000a155106/content.htm" target="test_blank"&gt;http://dev.mysql.com/doc/maxdb/en/78/ac9b41aa6ca309e10000000a155106/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 03:59:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-format/m-p/1037289#M85447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T03:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Time Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-format/m-p/1037290#M85448</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 the FM: &amp;lt;b&amp;gt;HRVE_CONVERT_TIME&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE_TIME A        ( Use 'B' for the other format)&lt;/P&gt;&lt;P&gt;INPUT_TIME 13:00:00 &lt;/P&gt;&lt;P&gt;INPUT_AM_PM AM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export parameters Value &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUTPUT_TIME 01:00:00 &lt;/P&gt;&lt;P&gt;OUTPUT_AM_PM PM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also Try these sample codes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: time type sy-uzeit value '073000'.&lt;/P&gt;&lt;P&gt;data TIMEC(6).&lt;/P&gt;&lt;P&gt;data h1 type P DECIMALS 1.&lt;/P&gt;&lt;P&gt;data h2 type P DECIMALS 1.&lt;/P&gt;&lt;P&gt;data h3 type P DECIMALS 1.&lt;/P&gt;&lt;P&gt;data hours type P DECIMALS 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move time to timeC.&lt;/P&gt;&lt;P&gt;MOVE TIMEC(2) TO H1.&lt;/P&gt;&lt;P&gt;MOVE TIMEC+2(2) TO H2.&lt;/P&gt;&lt;P&gt;MOVE TIMEC+4(2) TO H3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hours = h1 + ( h2 / 60 ) + ( H3 / 3600 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below code ignores the seconds. The hours are in 24 hour format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: v_tims LIKE sy-uzeit,&lt;/P&gt;&lt;P&gt;      v_hrs  TYPE p decimals 1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  v_tims = sy-uzeit.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  v_hrs = v_tims+0(2) + ( v_tims+2(2) / 60 ).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  WRITE: v_hrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 04:12:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-format/m-p/1037290#M85448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T04:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Time Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-format/m-p/1037291#M85449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Anjali,&lt;/P&gt;&lt;P&gt;  The FM works fine. &lt;/P&gt;&lt;P&gt;  I'll redefine my problem. I want the input in my selection screen in AM/PM format. And print the same in my output (report). This function module HRVE_CONVERT_TIME works fine to print the values but can something be done for the selection screen.&lt;/P&gt;&lt;P&gt;  Please help me out.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deva.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 08:01:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-format/m-p/1037291#M85449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T08:01:54Z</dc:date>
    </item>
  </channel>
</rss>

