cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime exception for Date format

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member556603
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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)