cancel
Showing results for 
Search instead for 
Did you mean: 

com.sap.mw.jco.JCO$ConversionException

Former Member
0 Kudos

hi all,

can any body help me how to solve the below error

com.sap.aii.af.ra.ms.api.DeliveryException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not convert request from XML to RFC:com.sap.mw.jco.JCO$ConversionException: (122) JCO_ERROR_CONVERSION: Date '08.t20' has a wrong format at field DOC_DATE: Unparseable date: "08.t20"</

thanks and regards

sandeep

Accepted Solutions (0)

Answers (2)

Answers (2)

justin_santhanam
Active Contributor
0 Kudos

Sandeep ,

Can u check the date value tat u r passing to DOC DATE field?

raj.

Former Member
0 Kudos

ihave used even this getPriviousMounthLastDate user defined function before using FileName

Calendar cal = Calendar.getInstance();

SimpleDateFormat output = new SimpleDateFormat("yyyyMMdd");

cal.add(Calendar.MONTH,1);

cal.set(Calendar.DAY_OF_MONTH,1);

cal.add(Calendar.MONTH,-1);

cal.add(Calendar.DATE,-1);

StringBuffer dateBuffer = new StringBuffer();

output.format(cal.getTime(),dateBuffer,new FieldPosition(0));

return dateBuffer.toString();

Former Member
0 Kudos

There is some problem in the Date format.Are you using Jco calls from the message mapping ??

Former Member
0 Kudos

i had used a user defined function can you please look into the user defined functionFileName in the mapping for the target DocDate field

{

DynamicConfiguration conf = (DynamicConfiguration) container

.getTransformationParameters()

.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create(

"http://sap.com/xi/XI/System/File",

"FileName");

String valueOld = conf.get(key);

return valueOld;

}

can you please look into the above code

thanks

sandeep