<?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: Capturing the date/time value into variables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-the-date-time-value-into-variables/m-p/1596242#M267808</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 sy-TIMLO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Sep 2006 08:26:48 GMT</pubDate>
    <dc:creator>anversha_s</dc:creator>
    <dc:date>2006-09-19T08:26:48Z</dc:date>
    <item>
      <title>Capturing the date/time value into variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-the-date-time-value-into-variables/m-p/1596241#M267807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; I am trying to pick up the system time and date into a variable as follows.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  DATA: v_uzeit type sy-uzeit.&lt;/P&gt;&lt;P&gt;  v_uzeit = sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have written this code in a function module and in debug mode I am not able to get the system time in the variable.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; Please provide pointers. &lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Deshpande&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 07:08:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-the-date-time-value-into-variables/m-p/1596241#M267807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T07:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing the date/time value into variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-the-date-time-value-into-variables/m-p/1596242#M267808</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 sy-TIMLO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 08:26:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-the-date-time-value-into-variables/m-p/1596242#M267808</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-09-19T08:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing the date/time value into variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-the-date-time-value-into-variables/m-p/1596243#M267809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: v_uzeit like sy-uzeit.
v_uzeit = sy-uzeit.
write: v_uzeit.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 08:30:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-the-date-time-value-into-variables/m-p/1596243#M267809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T08:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing the date/time value into variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-the-date-time-value-into-variables/m-p/1596244#M267810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried your code and it works fine for me in debug mode.  Are you absoutley sure that it is not working i.e. you don't have similar named variables that are causing confusion?  When you say you are not getting the system time are you geting any errors or is it just that the variable is blank? What is the sy-subrc value after the assignment? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Andrew Wright&lt;/P&gt;&lt;P&gt;Actually, Anver raises a valid point, sy-uzeit is the current application server time while sy-timlo is your local time - make sure you are using the correct one!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 08:32:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-the-date-time-value-into-variables/m-p/1596244#M267810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T08:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing the date/time value into variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-the-date-time-value-into-variables/m-p/1596245#M267811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, is there any value in the system variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 08:37:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-the-date-time-value-into-variables/m-p/1596245#M267811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T08:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing the date/time value into variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-the-date-time-value-into-variables/m-p/1596246#M267812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew and Nishant,&lt;/P&gt;&lt;P&gt;   Thank you for the reply.&lt;/P&gt;&lt;P&gt;   The  sy-subrc is returning zero as the v_uzeit and sy-uzeit are having blank values.&lt;/P&gt;&lt;P&gt;   I am confused as to why sy-uzeit is taking blank values.&lt;/P&gt;&lt;P&gt;  Also i tried to write a REPORT and it gives me right value of sy-uzeit. Its only in my FM that is it fails.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 08:43:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-the-date-time-value-into-variables/m-p/1596246#M267812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T08:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing the date/time value into variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-the-date-time-value-into-variables/m-p/1596247#M267813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;Just to confirm two things,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you check if in debug the syst table fields are having values or not. basically for sy-timlo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not very sure since uzeit is application server time so it should have been there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 09:01:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-the-date-time-value-into-variables/m-p/1596247#M267813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T09:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing the date/time value into variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-the-date-time-value-into-variables/m-p/1596248#M267814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have just created a FM that does nothing except assign sy-uzeit to v_uzeit and when called from another program it works fine. In Debug both the system field and the variable contain data.  I can't understand why your system time would be blank in the FM and be OK in your program.  How big is your FM, could you post it here for us to review?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 09:11:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-the-date-time-value-into-variables/m-p/1596248#M267814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T09:11:23Z</dc:date>
    </item>
  </channel>
</rss>

