cancel
Showing results for 
Search instead for 
Did you mean: 

System Time and date

Berthold_vH
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi everybody,

I have to fill a BAPI with the actual time and date. For the time I use the data type Time: Virtual Field and as default value TNOW().

Now two problems occur:

On the screen the field is filled correctly but in the backend system not the actual time is reported the value is always 02:00 AM.

If you want to change the field value in the VC you get not the time format but the date format. I mean you click in and instead of 12:00 PM you get a value like 26.09.2006

An other issue is the date field with default value NOW(). The actual date is reported correctly but if you want to change the date to e.g. 27.09.2006 the value is then suddenly 09.03.2008.

Does anybody of you have an idea?

Thanks and best regards

Berthold

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

> Hi everybody,

>

>

Hi Berthold,

> An other issue is the date field with default value

> NOW(). The actual date is reported correctly but if

> you want to change the date to e.g. 27.09.2006 the

> value is then suddenly 09.03.2008.

I have opened an OSS and SAP is fixing this problem in the next SPs.

> I have to fill a BAPI with the actual time and date.

> For the time I use the data type Time: Virtual Field

> and as default value TNOW().

> Now two problems occur:

> On the screen the field is filled correctly but in

> the backend system not the actual time is reported

> the value is always 02:00 AM.

> If you want to change the field value in the VC you

> get not the time format but the date format. I mean

> you click in and instead of 12:00 PM you get a value

> like 26.09.2006

The problem is that you must pass your date in the internal date, therefore you can use the function module called 'CONVERT_DATE_TO_INTERNAL' or transform your date before passing into BAPI. The internal format is yyyymmdd.

Best Regards,

Marcel

former_member193545
Active Participant
0 Kudos

Hi

You have to check that the format of the date is set correctly, you should enter the date in the correct manner.