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

Runtime exception for Date format

Hi,

Scenario : RFC to IDOC

found the error in my payload :

RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ZORDERS06/IDOC/E1EDK03/DATUM. The message is: Unparseable date: "2008-05-19" at com.sap.aii.mappingtool.tf3.AMappingProgram.start

Here i has used DateTransformation from the Date Function.

How can i give the format for Target side here.

Regards,

yeswanth.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 16, 2008 at 10:16 AM

    If you are sending this format from the source "2008-05-19" and you want 20080519 in target ,mention the source and target formats in the DateTransformation function

    Source format : yyyy-MM-dd

    Target format : yyyyMMdd (depends on ur target format)

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 16, 2008 at 10:21 AM

    Hello Yeshwanth,

    RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ZORDERS06/IDOC/E1EDK03/DATUM. The message is: Unparseable date: "2008-05-19" at com.sap.aii.mappingtool.tf3.AMappingProgram.start

    Here i has used DateTransformation from the Date Function.

    In Date Trans Properties:

    In Format Source date u select : yyyy-mm-dd

    In Target Format u select: yyyy/mm/dd

    Thanks,

    Satya

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 16, 2008 at 10:36 AM

    Hi,

    Here -(hyphen) is the problem

    Either pass the date like 20080516

    OR

    Use the Date Transformation--Properities

    Sourece----YYYY-MM-DD

    Target---YYYYMMDD

    Regards

    Seshagiri

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 16, 2008 at 10:41 AM

    HI Yeswanth,

    Please check the date format what you have given in target.

    The same format you have to specify in payload. This exception is because of fomat mismatch.

    Please find yyyy-mm-dd and yyyymmdd both are different.

    Thanks,

    RamuV

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 16, 2008 at 10:58 AM

    Hi,

    In the date function mapping error comes.

    First you need to check the target date format based on that you can give the format.

    You used the date transformation, here you don't give the format manually, there is drop down box select from there instead of giving manually.

    If the targert date format is like thisyyyy-mm-dd then you mention this format in the date transformation.(if the sender format is not like this).

    Edited by: Venkataramesh Boppana on May 16, 2008 4:29 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 16, 2008 at 11:10 AM

    Hi Raj,

    Hey first check how is your date format in your target structure.Because noramlly date format will be of 8 length.but here it's showing here as 10 char lenght.

    Thanks

    Vikranth Khimavath

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 16, 2008 at 12:58 PM

    Hi All,

    Thanks for your replies first.

    I has given like this in DateTransformation and am getting the error.

    format of source date : yyyy-MM-dd

    format of target date : yyyy/MM/dd

    still the error persists...

    Regards

    Yeswanth.

    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.