2010 May 05 2:00 PM
Hi gurus ,
I am inserting the data in one table
in that onefield is timestamp.
in that i am concatenating sy-datum and sy-uzeit.
now i have to fetch the data using date .
How can i ..fetch the data..?
can anyone suggest me..?
i tried date*, and %date% also
still its not fetching the data..
Thanks & Regards
kalyan.
2010 May 28 4:28 PM
Hi,
* 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.
Also concatenate the the miimum time and maximum time to the date and select.
Hope you got the idea.
2010 May 05 2:06 PM
Did you try Logical operators: CA (contains ANy) or similar things?
2010 May 05 2:22 PM
Also concatenate the the miimum time and maximum time to the date and select.
Hope you got the idea.
2010 May 05 2:27 PM
Hi Kalyan,
Try useing below condition once.
In where condition directly put
Where
TIMESTAMP EQ SY-DATUM
SY-DATUM or you own date.
I tries the same and its working fine.
Thanks
Naresh
2010 May 05 3:01 PM
2010 May 12 12:46 PM
How do you select records from a table when the field on the tableis defined as timestamp and the select-options field is defined as sy-datum?
2010 May 28 3:40 PM
I'm also sorting this out. I think you need to use the command
convert date sy-datum time sy-uzeit time into time stamp 'your field' time zone 'UTC' to make a field that is like the time stamp you want to select.
But I haven't been able to get any data as well so far.
2010 May 28 4:28 PM
Hi,
* 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.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |