cancel
Showing results for 
Search instead for 
Did you mean: 

Curios timestamp format

Former Member
0 Kudos

Hi,

i read a timestamp from SAP via RFC:

Data element is timestamp (with format YYYYMMDDhhmmss).

When i show the table data via SE16, following format is shown:

20.080.123.022.951

When debugging, i see the data withou format: 20080123022951

Now, by reading data via RFC, this timestamp is shown in WD Application the same as via SE16:

20.080.123.022.951

So, i think this curios format is taken over from backend system and the problem couldn't be solved by WebDynpro.

So, where could be the problem?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

In Debugger your date is always in the format YYYYMMDDhhmmss. But what your see from SE16 depends on your profile settings(Country, language).

When ABAP type "DATE" is imported to Web Dynpro Java, it will be imported as java.sql.Date type. Once you got the Java type Date, you can display in your Web Dynpro application in the format what ever you like. The default format is based on Language and Locale of that particular session.

Regards,

~kranthi

Former Member
0 Kudos

But i don't have the type "DATE". I have Date + Time, in JAVA the type generated is Decimal.

Former Member
0 Kudos

Any ideas about that??

Writing an ABAP Report with following code:

DATA: lv_timestamp TYPE timestamp.

GET TIME STAMP FIELD lv_timestamp.

write: / lv_timestamp.

results in following Output --> 20.080.611.060.755

Edited by: Christopher Linke on Apr 14, 2010 3:37 PM

Former Member
0 Kudos

old one