time value in integer..

Question:
Hi,
I am not an ABAPER and have a question related to tsp02-pjcreatime field name. It stores a DATE+TIme.
I can read the date out of it but cannot read the time. How can I do that. Your help will be great to me.
I need this for debugging purposes.
Thank to everybody in advance.
Answer:
I did a where used and found this.
FORM MAP_TO_LOCAL_TIME USING TIMESTAMP CHANGING D T.
  DATA: DATE LIKE SY-DATUM,
        TIME LIKE SY-UZEIT.
  IF UTC_NEW = 1.
    DATA: TS LIKE TZONREF-TSTAMPS.
    DATE = TIMESTAMP(8).
    TIME = TIMESTAMP+8(6).
    CONVERT DATE DATE TIME TIME INTO TIME STAMP TS TIME ZONE UTC.
    CONVERT TIME STAMP TS TIME ZONE SY-ZONLO INTO DATE DATE TIME TIME.
    D = DATE.
    T = TIME.
  ELSE.
    DATA: S LIKE TTZDATA-TIMESTAMP.
    DATA: TZ LIKE TTZDATA-TZONE.
    S = TIMESTAMP(14).
    TZ = SY-ZONLO.
    CALL FUNCTION 'TZ_GLOBAL_TO_LOCAL'
       EXPORTING
*           DATE_GLOBAL         = '00000000'
            TIMESTAMP_GLOBAL    = S
            TIMEZONE            = TZ
*           TIME_GLOBAL         = '000000'
       IMPORTING
            DATE_LOCAL          = DATE
*           TIMESTAMP_LOCAL     =
            TIME_LOCAL          = TIME
       EXCEPTIONS
            OTHERS              = 4.
    IF SY-SUBRC NE 0.
      D = TIMESTAMP(8).
      T = TIMESTAMP+8.
    ELSE.
      D = DATE.
      T = TIME.
    ENDIF.
  ENDIF.
ENDFORM.
In other words it is a TIMESTAMP FIELD which is a sort of concatenation of date and time The first character of the time string is either 0 or 1 but always displayed as 0 , that's why you can't read it.
_________________
Only sheep and Tuly Idiots
need a leader

More Articles:

How to download IMG hierarchy to Access or Excel?
Return Code from Batch Job?
Function to get current MM period and year?
TO ALL THE SAP GURU'S.?
Date conversion to readable format?
Include program inactive - Urgent?