<?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 Timestamp value getting value 0. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/timestamp-value-getting-value-0/m-p/6220590#M1379013</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;We have a small problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a standard class CL_ABAP_TSTMP and it is having a method TSTMP2SECS in it. And now I am finding the value of the parameter TSTMP in the method as 0 which is supposed to be the combination of date and time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest me what could be the reason or how to resolve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also does it have any relevance with the SP levels.&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;Narendra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Oct 2009 08:12:09 GMT</pubDate>
    <dc:creator>narendra_bendi</dc:creator>
    <dc:date>2009-10-02T08:12:09Z</dc:date>
    <item>
      <title>Timestamp value getting value 0.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timestamp-value-getting-value-0/m-p/6220590#M1379013</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;We have a small problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a standard class CL_ABAP_TSTMP and it is having a method TSTMP2SECS in it. And now I am finding the value of the parameter TSTMP in the method as 0 which is supposed to be the combination of date and time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest me what could be the reason or how to resolve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also does it have any relevance with the SP levels.&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;Narendra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2009 08:12:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timestamp-value-getting-value-0/m-p/6220590#M1379013</guid>
      <dc:creator>narendra_bendi</dc:creator>
      <dc:date>2009-10-02T08:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp value getting value 0.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timestamp-value-getting-value-0/m-p/6220591#M1379014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So how are you calling this method? If I do the below, it just works fine. But you do have to supply the timestamp beforehand yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: rt_tstmp TYPE tzntstmpl.

DATA: timestamp TYPE timestampl,
      secs      TYPE bgrfc_processing_time VALUE '3600'.

GET TIME STAMP FIELD timestamp.

TRY.
    rt_tstmp =
     cl_abap_tstmp=&amp;gt;add( tstmp   = timestamp
                         secs    = secs ).
  CATCH cx_parameter_invalid_range .
  CATCH cx_parameter_invalid_type .
ENDTRY.

WRITE:/1 'Timestamp :', rt_tstmp.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2009 11:28:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timestamp-value-getting-value-0/m-p/6220591#M1379014</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-10-02T11:28:05Z</dc:date>
    </item>
  </channel>
</rss>

