pub.sap.idoc:iDocToDocument service

Hi all,

I am facing an issue while receiving an Idoc from SAP.

The filed datatype is SAP is defined as INT4 which will have some spaces and number in value.
In wM I will trim the spaces and convert into 8 digits by padding zeros.

When I receive the Idoc from SAP that field is getting converted in to java.lang.Integer instead of normal string so its throwing an error as it could not find the string.

its working fine in 4.6 SAP adapter but I am facing this issue with 6.5 version

and one more thing when I save the pipleline and do the restore pipeline and convert the idoclist using idoctodocument service then its working fine by populating in string format.

please suggest me something… did anybody faced the same issue?

Thanks in advance

Nag