on 05-20-2013 7:26 AM
Hi,
I got a new requirement where I need to take the RFC as input and send the content in an excel attachment in mail receiver adapter.
What are all the inputs to acheive this task (or) do we need to write XSLT or JAVA coding for this ?
If Yes, please help me with the code.
My RFC structure as shown below :
Regards,
1. Surely, you have to use payloadSwapBean to swap the main payload as an attachment.
2. Use below blogs to convert xml to excel.
So in short you convert the xml to excel and swap and pass it as excel.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vishal,
The two blogs will only produce one payload. You can modify the Java Mapping to:
1. Create the mail body
2. Use the mail body as an attachment (Use OutputAttachments interface)
http://help.sap.com/javadocs/pi/SP3/xpi/com/sap/aii/mapping/api/OutputAttachments.html
You can now use the PayloadSwapBean to swap the Excel file and the mail body.
Hope this helps,
Mark
Hi Praveen,
As said by Vishal, do the complete cache refresh, it should work..
Select XMLTOOLKIT option in operation mapping,and execute your XSLT Mapping.
go through below link
http://scn.sap.com/people/sylvia.xiong/blog/2010/03/09/hints-about-pi-runtime-cache-refresh
Regards
Bhargava krishna
Yes, after clearing the cache now we are getting this strange error.
Message processing failed. Cause:
com.sap.aii.af.sdk.xi.srt.BubbleException: Failed to call the endpoint [null
"null"]; nested exception caused by:
com.sap.aii.af.sdk.xi.util.XMLScanException: expecting start tag:
{http://sap.com/xi/XI/Mail/30}Mail, but found
{urn:schemas-microsoft-com:office:spreadsheet}Workbook at state 1
I am using the external definition ( for mail receiver according to sap standard) receiver structure .
regards,
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.