on 02-13-2009 11:30 AM
Hi Experts,
I'm creating a RFC-Mail scenario and I have a doubt about how to generate the attach. I have imported the mail xsd and mapped fields as subject, from, to.. Now my question is what to do with the Content_Type, Content_Disposition and especially Content. I want transform data from the RFC to a specified XML format, and then send it to a customer.
Is it posible only with graphical mapping or do I need to perform Java or ABAP mapping?
Best Regards,
Alfredo LAgunar.
Content_Type, Content_Disposition are not mandatory fields. You may disable it in mapping. Content refers to the actual body of message which would be seen in mail if you use mail package without attachment.
Graphical mapping is not mandatory but surely easier. You may use other types java mapping
/people/stefan.grube/blog/2007/04/17/xi-mail-adapter-an-approach-for-sending-emails-with-attachment-with-help-of-java-mapping
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Then use my reply
You simply dont need mail packaging actually.
A simple receiver side structure of your choice could be used.
Use Message Protocol = XIALL and you will get whole xml message as attachment.
Here the receiver side structure would be any xml format you want in output/
Regards,
Prateek
Hi,
U can use TOHeader field which is one of the Adapter Message Dynamic attribute
You can use UDF for passing data to this based on the payload.
Dont forget to check the option ASMA in Mail adapter
Hope this will take you forward
you can search the SDN for DynamicFileName UDF for having idea on usage of ASMA in UDfs
Rajesh
Hi,
I think there must to be an easier way to do this,
I only need to catch some data that comes from an RFC call, map to a XML exchange format and then send this as mail attachment to a variable account extracted form the data of the RFC.
I have developed the first part, the RFC sends the data I need, I can catch the data and send to a fixed recipient without mail package.
Any idea?
Best regards,
Alfredo Lagunar.
Hi,
You need to do XSLT / JAVA mapping to push the entire source data into the content node. You can make a search for XML-To-String on SDN......the from, To, Content_Type fields will be a constant value...if you need to have a dynamic email address then you can refer to Michals blog.
Regards,
Abhishek.
Hi Alfredo,
The following link will help you out in knowing more about configuring part of mail adapter in the reciver without using content_type.
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
Thanks,
Ram.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.