on 10-05-2011 9:31 AM
Hi Experts,
Can any one help me to do a scenario which is related to File(.csv) to Mail.
I want to send a file(.csv) which is in a folder to the mail server as attachment or content.
Please help me, I had a look on SDN help but I can't find any suitable scenario for me.
Thanks in advance
Regards,
Rachel.
This article could help you to send as attachment
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use File adapter with FCC (File content conversion) and provide the necessary content conversion parameters at the file adapter level...search sdn on this if need more info...
you can use either mail package xsd as your mail message or you can use your own message..and configure the mail adapter as receiver...
and remaining things are as usual..
HTH
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rachel,
one trick is that you never use a FCC but direct the entire payload into a java mapping. The code creates a target XML with entire payload into one field of target XML. Second technique is to use any FCC and obtain the payload as XML then direct it into one field of target. Both these options have been discussed in a wonderful manner is this link
http://wiki.sdn.sap.com/wiki/display/XI/WholePayloadtoaXML+field
regards
Anupam
Hi Rachel,
If you want to send the file as an attachment, select the message protocol as XI payload in mail receiver communication channel.
If we select this message protocol then weu2019ll get option in the mail receiver communication channel, u201CKeep Attachmentsu201D.
If we select the u201Ckeep attachmentsu201D in the Mail Attributes, then the content will be sent as an attachment (.txt file) otherwise the content will be sent as body of the mail.
Regards
Priyanka
Hi Loordh,
Thanks for your help. it's a good idea.
Please tell me how to pass the content of the file into the target,
Can you please tell me how can i take the total body in to a single field. can i use as below
Row.fieldNames--> SingleField
Row.fieldFixedLengths-->500
can I use the above values to solve it.
Thanks,
Rachel.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.