Application Development and Automation 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: 
Read only

Time Stamp

0 Likes
910

Hi,

based on the sy-datum-1 (prev day) need to fetch total records created on that day.

how to pass time stamp for the filed MMTSP (Long Time Stamp) DEC 21.

i.e Total prev day records.

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
852

Hint :

Create two variables which holds maximum value and minimum value.

The minimum value must hold the date+ start time of previous date.

The maximum value must hold the date+ end time of previous date.

ie. 24 hours.( start and end ).

Now press F1 help on Convert date statement or search for FM's which does that for you.

Use LE & GE in your select query.

Kesav

4 REPLIES 4
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
853

Hint :

Create two variables which holds maximum value and minimum value.

The minimum value must hold the date+ start time of previous date.

The maximum value must hold the date+ end time of previous date.

ie. 24 hours.( start and end ).

Now press F1 help on Convert date statement or search for FM's which does that for you.

Use LE & GE in your select query.

Kesav

Read only

Former Member
0 Likes
852

Hi R K,

Can you be a little more specific?

In which table can I find the field MMTSP? What does DEC 21 specify?

Thanks,

Manikandan JN.

Read only

0 Likes
852

21 length and type dec filed MMTSP is coming from VLCVEHICLE.

for Prev day total vehicles i am passing MMTSP.

Read only

Former Member
0 Likes
852

Hi R K,

For manipulating Timestamps in ABAP, you can use class CL_ABAP_TSTMP.

This class provide functions for arithmetic with time stamps in ABAP. There are different methods for different operation.

For your specific requirement, you can use method "SUBTRACTSECS".

Regards,

Rajen