<?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: Function Module to get the TIMESTAMP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-timestamp/m-p/5562599#M1269168</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LTRM_TIMESTAMP_CONVERT_INTO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OII_CALC_DIFF_BT_TIMESTAMPS  try this FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use FM CCU_TIMESTAMP_DIFFERENCE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives you the difference between two timestamps in seconds.&lt;/P&gt;&lt;P&gt;which you can divide by 3600 to get hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;G_BIW_CONVERT_INTO_TIMESTAMP &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;Venkat M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 May 2009 11:28:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-13T11:28:49Z</dc:date>
    <item>
      <title>Function Module to get the TIMESTAMP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-timestamp/m-p/5562595#M1269164</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;Is there any function module to get the TIMESTAMP as Outout , if i give input Time and Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I go for the concatenate statement.. Do I need to concate the commas in to the target field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not getting the proper result with this concatenate statement where I concatenated the YYYYMMDDHHMMSS in to the DECIMAL 15 Variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen Inuganti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 11:08:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-timestamp/m-p/5562595#M1269164</guid>
      <dc:creator>naveen_inuganti2</dc:creator>
      <dc:date>2009-05-13T11:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get the TIMESTAMP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-timestamp/m-p/5562596#M1269165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check with below&lt;/P&gt;&lt;P&gt;for  Date + time -- &amp;gt; time stamp&lt;/P&gt;&lt;P&gt;ABI_TIMESTAMP_CONVERT_INTO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for time stamp ---&amp;gt; date + time&lt;/P&gt;&lt;P&gt;ABI_TIMESTAMP_CONVERT_FROM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 11:15:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-timestamp/m-p/5562596#M1269165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-13T11:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get the TIMESTAMP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-timestamp/m-p/5562597#M1269166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LTRM_TIMESTAMP_CONVERT_INTO&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 11:16:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-timestamp/m-p/5562597#M1269166</guid>
      <dc:creator>former_member188829</dc:creator>
      <dc:date>2009-05-13T11:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get the TIMESTAMP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-timestamp/m-p/5562598#M1269167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LTRM_TIMESTAMP_CONVERT_INTO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RKE_TIMESTAMP_CONVERT_INPUT&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 11:18:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-timestamp/m-p/5562598#M1269167</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-05-13T11:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get the TIMESTAMP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-timestamp/m-p/5562599#M1269168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LTRM_TIMESTAMP_CONVERT_INTO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OII_CALC_DIFF_BT_TIMESTAMPS  try this FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use FM CCU_TIMESTAMP_DIFFERENCE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives you the difference between two timestamps in seconds.&lt;/P&gt;&lt;P&gt;which you can divide by 3600 to get hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;G_BIW_CONVERT_INTO_TIMESTAMP &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;Venkat M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 11:28:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-timestamp/m-p/5562599#M1269168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-13T11:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get the TIMESTAMP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-timestamp/m-p/5562600#M1269169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are more than one record for same date in one of my tables,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there is no date field in that table. There is a TIMESTAMP.&lt;/P&gt;&lt;P&gt;And my report selection screen can have DATE field only.&lt;/P&gt;&lt;P&gt;So based on that date I need to fetch all the records in that table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we know before that select I need to modify selection screen DATE as the TIMESTAMP.&lt;/P&gt;&lt;P&gt;And that should fetch all records...as there is no time restriction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally we need to create Ranges where lower limit with DAY START TIME &lt;/P&gt;&lt;P&gt;and upper limit with DAY END TIME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to modify the SY_UZEIT before passing to above function modules.&lt;/P&gt;&lt;P&gt;as SY-UZEIT = 000000 for lower limit.&lt;/P&gt;&lt;P&gt;as SY_UZEIT = 125959 for upper limit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its not giving the proper time stamp, what would you suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen.I&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 11:36:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-timestamp/m-p/5562600#M1269169</guid>
      <dc:creator>naveen_inuganti2</dc:creator>
      <dc:date>2009-05-13T11:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get the TIMESTAMP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-timestamp/m-p/5562601#M1269170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ABI_TIMESTAMP_CONVERT_INTO can be used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 11:38:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-timestamp/m-p/5562601#M1269170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-13T11:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get the TIMESTAMP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-timestamp/m-p/5562602#M1269171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Srinivas,&lt;/P&gt;&lt;P&gt;Its Not working,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: lv_timestamp type TZNTSTMPS,
      lv_date type SY-DATLO,
      lv_time type SY-TIMLO.

sy-uzeit = 000000.

call function 'ABI_TIMESTAMP_CONVERT_INTO'
  exporting
    iv_date                = sy-datum
    iv_time                = sy-uzeit
 IMPORTING
   EV_TIMESTAMP           = lv_timestamp
* EXCEPTIONS
*   CONVERSION_ERROR       = 1
*   OTHERS                 = 2
          .
if sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.

write:/ lv_timestamp.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output: &lt;/P&gt;&lt;P&gt;&amp;gt; 20,090,512,220,000   &lt;/P&gt;&lt;P&gt;But it should be:&lt;/P&gt;&lt;P&gt;&amp;gt; 20,090,513,000,000   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 11:43:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-timestamp/m-p/5562602#M1269171</guid>
      <dc:creator>naveen_inuganti2</dc:creator>
      <dc:date>2009-05-13T11:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get the TIMESTAMP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-timestamp/m-p/5562603#M1269172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi use &lt;/P&gt;&lt;P&gt;IB_CONVERT_INTO_TIMESTAMP' or IB_CONVERT_FROM_TIMESTAMP'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Declaring the work variables.......................
DATA :
  timestamp like TZONREF-TSTAMPS,
  time      like sy-uzeit,
  date      like sy-datum.

* The following function module is used to convert the
* time and date into GMT timestamp

CALL FUNCTION 'IB_CONVERT_INTO_TIMESTAMP'
  EXPORTING
    i_datlo           = sy-datum
    i_timlo           = sy-uzeit
    I_TZONE           = 'INDIA'
 IMPORTING
   E_TIMESTAMP       = timestamp.

* The following function module is used to convert the
* above obtained timestamp to PST time zone date and time.

CALL FUNCTION 'IB_CONVERT_FROM_TIMESTAMP'
  EXPORTING
    i_timestamp       = timestamp
    I_TZONE           = 'PST'
 IMPORTING
    E_DATLO           = date
    E_TIMLO           = time.

write :/ 'Date and Time at PST zone is ',date, time.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 11:44:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-timestamp/m-p/5562603#M1269172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-13T11:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get the TIMESTAMP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-timestamp/m-p/5562604#M1269173</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 using this instead of a function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Convert dates to timestamp&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CONVERT DATE sy-datum TIME sy-uzeit&lt;/P&gt;&lt;P&gt;    INTO TIME STAMP g_timestmp1 TIME ZONE sy-zonlo.&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;Hema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 12:15:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-timestamp/m-p/5562604#M1269173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-13T12:15:59Z</dc:date>
    </item>
  </channel>
</rss>

