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

Timezone conversion, Timestamp

Former Member
0 Likes
622

Hello,

Please go through the below code.

data: gv_convert_date type d value '20070801',
       gv_convert_time type t value '240000',
       gv_system_timezone type tznzone value 'CET',
       gv_dtstamp type timestamp.

 convert date gv_convert_date time gv_convert_time
         into time stamp gv_dtstamp time zone gv_system_timezone.

 check sy-subrc is initial.

If I use gv_convert_time as 23:50:00 instead of 24:00:00 it returns

sy-subrc as zero.

In the case 24:00:00 it gives sy-subrc value as 12.

2 REPLIES 2
Read only

Former Member
0 Likes
410

try to use 00:00:00 instead of 24:00:00, it will work,

SAP uses time stamp starting from 00:00:00 to 23:59:59, so there is no 24:00:00

Message was edited by:

Tripat Pal Singh

Read only

Former Member
0 Likes
410

use 00:00:00 instead of 24:00:00.....ur problem wiil be solved