cancel
Showing results for 
Search instead for 
Did you mean: 

Idoc to txt file to mail

Former Member
0 Kudos

Hello everyone,

I have the following scenario:

IDOC -> XI -> Mail w/ .txt attach with fields of IDOC separated by ';'

How can i "concatenate" all fields into one text file and then send this in an attachment via email ?

Thank you in advance,

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Solved it on my own, using xsl transformation to transform xml into txt concatenated file.

Former Member
0 Kudos

Hi Nano,

I have to devlope same scenario. IDOC - PI - Mail as a attachment .txt file. Please explain me step by step how did you achieve this. So that I can go forward with your guidlines.

Balagi

Former Member
0 Kudos

Anyone has some idea?

I created a Party RECEIVERCOMPANY (for example) with a BusinessService RECEIVERCOMPANYMAIL, that has a Communication channel Mail_Receiver with an adapter of type 'Mail', Receiver, smtp, etc.

On the other hand, i have allready imported IDOC DESADV.DELRY03 and successfully arrived at the XI engine.

Now... what can i do to take the xml message that arrived from SAP R3 Idoc and transform it into a txt file to attach to an e-mail and then send via Mail Adapter ??

Thank you all

Former Member
0 Kudos

Hi Nuno

What you can do here is

1. parse IDOC XML into a flat file using UDF or Java mapping and pass it to a string. use the mail package and map this string field to Content field of mail package. Now at mail adapter use Mail package with attachment.

2. You write a mail adapter module to parse the file and attach it to mail.

3. Use the StrictXMLtoPlain Bean at receiver mail adapter to parse IDOC XML into a flat file and then use MessageTransformBean to attach it to the mail

Using Mail package usage will allow dynamic mail message.

Thanks

Gaurav