cancel
Showing results for 
Search instead for 
Did you mean: 

How to map field with xsd:dateTime dataType?

Former Member
0 Kudos

Dear friends,

I need to produce the following output for a field defined as xsd:dateTime.

2009-02-18T09:53:02.491+01:00

I tried with a XSLT mapping with a XPATH function "current-dateTime()". However, the XSLT engine of XI doesn't seem to support this XPATH function.

How can I produce the output according to the XSD datTime datatype?

Regards,

Roberto

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I used the runtime var; $Timesent. Thanks

Former Member
0 Kudos

how do u get rid of the Z in the time stamp??

Former Member
0 Kudos

Hi

You can use XSLT runtime constants.

http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm

Check this link for XSLT date time

Regards

Vishnu

markangelo_dihiansan
Active Contributor
0 Kudos

Hi,

If this is an IDOC to GUSI/xCBL/EDI scenario. You could obtain the date from the field CREDAT and the time from CRETIM under the EDI_DC40 segment.

CREDAT --> DateTrans: yyyyMMdd to yyyy-MM-dd --> concat: T --> Target

CRETIM --> DateTrans: HHmmSS to HH:mm:SS -


> /

Hope this helps,

Edited by: Mark Dihiansan on Feb 27, 2009 12:40 PM