Skip to Content
author's profile photo Former Member
Former Member

how to change the time format in XSLT Mapping

Hi ,

my scenario is IDOC to SOAP , and my requirement to change the time format from hhmmss to hh:mm:ss using XSLT mapping.

i am trying with following function <xsl:value-of select=" fn:format-time($d,'hh:mm:ss')"/> but throwing an error while testing in PI 7.0

following error i am getting in test tab while testing

can any one suggest the solution to change the time format to hh:mm:ss

thanks in advance..

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2012 at 02:20 PM

    Hi surya,

    why don't you have a look at http://www.w3.org/TR/xslt20/#format-date (

    16.5.3 Examples of Date and Time Formatting)

    cheers,

    Edu

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Edu,

      I tried the function and getting error :

      • javax.xml.transform.TransformerException: com.sap.engine.lib.xml.util.NestedException: Function with name 'fn.format-time' not found in context library.

      code as <xsl:variable name="date" select="ZDEBMAS01/IDOC/E1KNA1M/E1KNVAM/MOAB1" />

      <xsl:value-of select="fn.format-time($date, 'hh:mm:sstt')"/>

      regards

      Surya

  • Posted on Nov 20, 2012 at 02:38 PM

    hi Surya ,

    check below thread

    http://scn.sap.com/message/8402096

    Regards

    gagan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.