Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

time stamp declaration

Former Member
0 Kudos

Hi friends,

i want to use timestamp in my report.

i have data type TIMESTAMP

having the domaine TZNTSTMPS.

how to use this in my report.

plz any body guide me.

Thanks & Regards,

Lakshmi..

6 REPLIES 6

Former Member
0 Kudos

pretty simple.. chek this out..

report  zptest21                                .



data:
  s_tst type timestamp,
  l_tst type timestampl,
  tzone type timezone.

get time stamp field s_tst.    "short form
get time stamp field l_tst.    "long form
tzone = 'UTC   '.                   "time zone

write: / s_tst time zone tzone,
       / l_tst time zone tzone.

Regards,

Arya

0 Kudos

Hi Arya,

the output for the time stamp should be as YYYYMMDD_HH:MM:SS

plz suggest me

Former Member
0 Kudos

Hi,

the output for the time stamp should be as YYYYMMDD_HH:MM:SS

plz suggest me

0 Kudos

then why do you need the Timestamp?

do like this..

data: w_time type string.

concatenate sy-datum sy-useit into w_time

separated by '_'.

write: / w_time.

Regards,

Arya

0 Kudos

Thanks...

0 Kudos

hi

stringleft(Repeater_0.Output{/Row/pdate},10) data format with date time and min

this is also use ful for u