cancel
Showing results for 
Search instead for 
Did you mean: 

SEnde Mail adapter problem from txt to xml

Former Member
0 Kudos

Hi All

I have the following scenario - Mail->XI->RFC.

My interface keep crashing because of mapping errors. The attachment I am receiving from 3rd party like follow:

ENG_TYPE|INDUST_NO|COMPANY_NUMBER|SURNAME|INITIALS|NAMES|REGISTERED|MALE|EXPERIENCE|RACE|MARITAL_CODE

V|A0359214|137871|MASSANGO|J|JOSE|2007/01/18|1|458|A|7|4|1953/01/06|SHANGAAN|STANDARD

V|A0359214|137871|MASSANGO|J|JOSE|2007/01/18|1|458|A|7|4|1953/01/06|SHANGAAN|STANDARD

V|A0359214|137871|MASSANGO|J|JOSE|2007/01/18|1|458|A|7|4|1953/01/06|SHANGAAN|STANDARD

V|A0359214|137871|MASSANGO|J|JOSE|2007/01/18|1|458|A|7|4|1953/01/06|SHANGAAN|STANDARD

This is also how the data come into XI, and then the mapping crashes, how do I change to XML for the mapping to no crash.

I cannot seem to find anything on the module configuration to work for the Sender Mail adapter.

Thanks

Clinton

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

1. You can use MessageTranformBean to convert the Text to XML.

Please look into this article for a demo on this,

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12...

it talks about JMS but the messagetransformbean can be used for Mail adapters as well.

Regards

Bhavesh

Answers (1)

Answers (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Another option would be to use Java Mapping and then convert the inputstream into string and use Substring functions etc to do the mapping to the target strcuture.

Regards

Bhavesh