Mail Adapter Module Problem!
Hi All
I m facing a problem in implementing a custom mail adapter module.
The scenario is to set the content type based on the file type. eg: if the file being sent is a pdf then content type should be "application/pdf".
I hope the scenario is clear, please feel free to ask for clarifications.
awaiting your replies.
Regards
Kapil
Hi All
I am able to fetch the file name now and set the content type based on the file name. But I m not able to change the name of attachment of mail. For reference, I m pasting the code here, please suggest how to do the latter part
try {
// CS_GETCHADAT START
cid = moduleContext.getChannelID();
Channel channel = new Channel(cid);
// Example to access a channel configuration parameter in a module: String someParameter = channel.getValueAsString("YourAttributeName");
// CS_GETCHADAT END
fileName = msgg.getMessageProperty("http://sap.com/xi/XI/System/File","FileName");
Payload attachment = msgg.getAttachment("MainDocument");
StringTokenizer st = new StringTokenizer(fileName, ".");
while(st.hasMoreTokens()){
extension = st.nextToken();
Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS, "RenameFile: filename " + fileName);
Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS, "RenameFile: extension " + extension);
// create new payload
Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS, "RenameFile: attchmntName " + attachment.getName().toString());
//provide attributes and content for the new payload
attachment.setName("Attachment :" + fileName);
// msgg.setMessageProperty("http://sap.com/xi/XI/System/File","content-description",fileName);
attachment.setContentType("application/" + extension );
inputModuleData.setPrincipalData(msgg);
Similar Messages
-
Receiver Mail Adapter Module Parameters
Hello PI Experts,
Can anyone pls provide me Mail adapter module parameter details for xml to txt file conversion. I have found a few but none of them are working, can you pls provide me some active links.
Thanks,
SriI need MAIL Adapter module transformation parameter for converting my attachment from xml to text file -
I have gone thro few forums and modified my comm channel, but still getting xml file as an output attachment instead of a text file.
Can anyone please suggest me how to change the module parameters to covert from xml file to text.
I have added these module processing - please help.
Processing sequence
localejbs/AF_Modules/MessageTransformBean - Local Enterprise Bean - XML2Plain
sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean - Local Enterprise Bean - Mail
Module configuration
XML2Plain - xml.endSeparator - 'nl'
XML2Plain - xml.fieldNames - Field1,Field2,Field3
XML2Plain - xml.fieldSeparator - | |
XML2Plain - Transform.Class - com.sap.aii.messaging.adapter.Conversion
XML2Plain - Transform.ContentDisposition - attachment;filename="extract_p.txt"
XML2Plain - Transform.ContentType - xml/plain;charset='UTF-8";name="extract_p.txt"
XML2Plain - xml.recordsetStructure - Details
Thanks,
Sri -
Problem with mail adapter module in PI 7.11
Hi,
I modified our adapter module from PI 7.0 to be compatible with PI 7.11 SPS3. I followed the instruction in http://www.sdn.sap.com/irj/scn/index;jsessionid=(J2EE3417300)ID1491632150DB11633962752589437606End?rid=/library/uuid/c0b39e65-981e-2b10-1c9c-fc3f8e6747fa&overridelayout=true and successfully deployed the adapter module using NWDS for PI 7.1. However, I am encountering this error in the communication channel monitoring:
Exception caught during processing mail message com.sap.aii.af.lib.mp.module.ModuleException.
I don't see any other details in the communication channel monitoring to help me determine the cause of the problem after this error message line. In NWDS, there was no error when I excute build the project. During deployment in NWDS, it says deployment was successful. When I check in NWA, I can find that the adapter module has been deployed successfully. I even tried to re-create the whole adapter module from scrach following the documentation for the 2nd time and still I got the same error message.
I am using java SDK 6.
Any help or suggestion would be greatly appreciated.
Regards,
ElbertHi,
This problem is now solved. I am using the correct version of NWDS for PI7.1 and using java 1.6 will not cause any problem.
The problem was caused by the source data being zipped instead of the unzipped version that my module is expecting. Furthermore, since my module comes before the mail bean, there is no details in the communication channel monitoring that the data sent was a wrong format.
Regards,
Elbert -
Change "subject" in Receiver Mail Adapter Module
Hi all,
following the "How To Guide" I developed a Module for my receiver mail adapter. Everything works fine.
Now my question: is it possible to change the content of the mail-"subject" in the module?
Your help is appreciated.
CarmenHi Stefan,
maybe I should describe my problem more detailed:
My scenario is RFC-XI-Mail. I use the mail package to determine the receiver of the mail dynamically. Another thing I want to do, is to attach a file to this mail which is located on the server. So far so good.
My problem is, that the name of the file (which I need in my adapter module) changes for every mail. So what I need is the possibility to deliver it to the adapter module.
I found out that it is possible to read the payload. So my idea was to hand it over in one of the fields like "subject". But now I want to change the subject afterwards...(delete the filename).
Maybe you have another idea?
Regards
Carmen -
Remove Attachment in Mail Adapter Module
Hi!
My problem: I get an email with an attachment which I process in an adapter module for the mail adapter. With the resulting XML I set a new payload, but the old attachment still exists.
This gets to a problem when I route the message back to the mail adapter, he adds the old attachment to the generated email. Therefore the new email has two attachments: the old one and the new one, which should only be one attachment: only the new one.
How can I remove the old attachment? I found no function which solves this problem.
Best regards,
DanielHi Michal,
thanks for the link.
When I import aii_proxy_xirt.jar in my NWDS, I can import the MessageSpecifier class. But I can't get an instance of it from the classes which I can access.
The only 'documented' usages of this class I found were codings for java proxies, so I'm not sure we can use this class in an adapter module.
In this cases they get the MessageSpecifier instance from the proxy bean, so maybe we can get it from the EJB, but this doesn't work with an adapter module (or I haven't found out how )
Hmm. It is a simple problem, but it seems difficult to solve
Best regards,
Daniel
Message was edited by: Daniel Himmel -
Mail adapter module UTF-8 to ISO-8859-1 conversion
Hi!
I've a problem with a mail attachment which is generated by an adapter module for the mail adapter. The content type is set to "Application/EDIFACT; charset=iso-8859-1" when I add the attachment, but the mail adapter ignores the charset-setting.
Therefore german "umlauts" like ü are displayed in a wrong way: ü
When I set the content, I transform it in ISO-8859-1 : attachment.setContent(edifactString.getBytes("ISO-8859-1"),"ISO-8859-1");
When I test the result of edifactString.getBytes("ISO-8859-1"), I get the String in the right character encoding, but the mail adapter seems to "fix" the encoding
I also tried to use the messageTransformBean, but it doesn't worked.
Anyone knows how to solve this issue?
Best regards,
DanielHi all!
I found a solution for this problem: First I used the TextPayload-Object for the Attachment which should be added. It seems that the TextPayload-Object has some bugs handling different encodings (handels only Unicode and deletes the charset=... setting from the ContentType).
When using the Payload object for the attachment (which handles binary data), there is no conversion to Unicode, so I get my attachment as desired (but still without the charset-setting).
Best regards,
Daniel -
Hi All,
I am following the PDF "How to create Modules for J2EE Adapter Engine". I developed the module for Mail Adapter and implemented in a File->XI->Mail scenario.
The problem is when i am testing the scenario, i am getting chequered flag in SXMB_MONI and adapter monitor is not showing any error and it is also not showing message is being sent status.
scenario is running perfectly after removing this module from module chain.
So i am not able to get where the error lies.
Any help is appriciated.
Thanks and Regards,
Alok.hi,
did you check the adapter monitor?
http://hostname:portnumber/MessagingSystem/monitor/monitor.jsp
did you put any adapter logs in your adapter java code?
to see if the adapter gets invoked etc?
if not do it for
AuditLogStatus.SUCCESS or AuditLogStatus.ERROR:
http://help.sap.com/saphelp_nw04/helpdata/en/a6/66e540aa827e7fe10000000a1550b0/content.htm
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
Error at Receiver Mail adapter modules
Hi,
We have implemented a receiver mail adapter for producing Excel file as attachment.
It is giving the error as follows:
Delivery of the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Object not found in lookup of MessageTransformBean.: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of MessageTransformBean..
This configuration has worked well earlier, and suddenly it is throwing this error.
Please let me know what might be the reson for this.
Thank you.
Regards
Bhanu.
Edited by: Bhanu Tiruveedula on Sep 15, 2009 1:00 AM
Edited by: Bhanu Tiruveedula on Sep 15, 2009 1:00 AMHi,
I didn't use the fullstop.
Can anybody help me in resolving this issue?
Thanks. -
Creating J2EE adapter module problem
Hi All,
when i am creating a J2EE customer-specific adapter module in SAP Netweaver Developer Studio, then in the java class when i write these statements:
<u>import com.sap.aii.af.mp.module.*;
import com.sap.aii.af.ra.ms.api.*;</u>
public class CustomerMeter implements SessionBean, <u>Module</u>{
it is showing error on the above underlined things that it cannot resolve these things.
can anybody suggest where to locate these librarys in Project - Properties - Java Build Path - Libraries path from the main menu.
Thanks,
Rajeev GuptaHi Amit,
On changing the ejb-jar.xml as you said:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<description>EJB JAR description</description>
<display-name>EJB JAR</display-name>
<enterprise-beans>
<session>
<ejb-name>CustomerMeter</ejb-name>
<ejb-class>pkgCustomerMeter.CustomerMeter</ejb-class>
<home>com.sap.aii.af.mp.module.ModuleHome</home>
<remote>com.sap.aii.af.mp.module.ModuleRemote</remote>
<local-home>com.sap.aii.af.mp.module.ModuleLocalHome</local-home>
<local>com.sap.aii.af.mp.module.ModuleLocal</local>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
But now on saving this xml, it is giving the following error:
<b>The content of element type "session" must match "(description?,display-name?,small-icon?,large-icon?,ejb-name,home?,remote?,local-home?,local?,ejb-class,session-type,transaction-type,env-entry,ejb-ref,ejb-local-ref,security-role-ref,security-identity?,resource-ref,resource-env-ref)".</b>
Could you please tell how to correct this error.
Thanks and Regards,
Rajeev Gupta -
Adapter module - problem with XML
Hi all
I have written an adapter module for the sender jdbc adapter(it shouldn't matter which adapter) that converts the content into xml by addressing each byte of the message content.
I am able to make the xml but when the message reaches the integration server it throws up a mapping exception. When I look at the payload in SXI_MONITOR it says -
Invalid at the top level of the document. Error processing resource 'file:/// ........
But when I right click on the payload and do "view source" and then save the text document and then refresh the payload in the payload window it shows me the xml document.
Would you have any idea as to why the IS doesn't recognise the message to be an xml message?
Thanks a lot
SalilHi Bhavesh
Yup it's a perfectly valid xml. I tried saving it as a file to my desktop and it opened fine in my browser. As I mentioned earlier even when I do a "view source" of the payload and then save that and subsequently refresh the payload it shows up fine too.
Actually here is the payload. i am wondering if all it needs is a carriage return after the <?xml tag.
<?xml version="1.0" encoding="utf-8"?> <ns0:out_sale_mt xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://www.rd1.com/pos/sales"><TransHeaders><ID>1782219</ID><TransNo>2</TransNo><Branch>91</Branch><Station>99</Station><Receipt>0910990000002</Receipt><Logged>2007-08-02T18:52:53</Logged><TransType>C</TransType><TransStatus>C</TransStatus><TheUser>cantlong</TheUser><Customer>100001006</Customer><CustType>C</CustType><SecondCustomer></SecondCustomer><SecondCustCard></SecondCustCard><LinesNo>2</LinesNo><PaymentsNo>1</PaymentsNo><TotalBeforeTax>2.8400</TotalBeforeTax><TotalAfterTax>3.1900</TotalAfterTax><ScannedNo>0</ScannedNo><ScanTime>0</ScanTime><PayTime>0</PayTime><IdleTime>0</IdleTime><Reason>0</Reason><Rounding>0.0000</Rounding><TH_FieldText1></TH_FieldText1><TH_FieldText2></TH_FieldText2><TH_FieldText3></TH_FieldText3><System1>0</System1><System2>0.0000</System2><System3></System3><FolioID>0</FolioID><UserAcc>1</UserAcc><Salesperson></Salesperson><TransLines xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://www.rd1.com/pos/sales"><TransNo>2</TransNo><Branch>91</Branch><Station>99</Station><Line>1</Line><LineType>N</LineType><UPC>9400559001014</UPC><IsVoided>0</IsVoided><Quantity>1.0000</Quantity><Price>3.1900</Price><DiscountID>0</DiscountID><TaxNo>1</TaxNo><SubBeforeTax>2.8356</SubBeforeTax><SubAfterTax>3.1900</SubAfterTax><Reason>0</Reason><Note/><TL_FieldText1/><TL_FieldText2/><TL_FieldText3/><SerialNumber/><TransStatus>C</TransStatus><Cost>2.4000</Cost><PriceSet>3.1900</PriceSet><TaxNo1>1</TaxNo1><TaxNo2>0</TaxNo2><TaxNo3>0</TaxNo3><TaxAmount1>0.3544</TaxAmount1><TaxAmount2>0.0000</TaxAmount2><TaxAmount3>0.0000</TaxAmount3><CostProtect xsi:nil="true"/><Location>0</Location><ESMPack>0</ESMPack></TransLines><TransPayments xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://www.rd1.com/pos/sales"><TransNo>2</TransNo><Branch>91</Branch><Station>99</Station><Line>1</Line><MediaID>9</MediaID><MediaName>SPLIT</MediaName><Value>3.1900</Value><Fee>0.0000</Fee><Change>0.0000</Change><MediaNumber/><TP_FieldText1/><Rate>0.000000000</Rate><FCValue>0.0000</FCValue></TransPayments><PostCapture xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://www.rd1.com/pos/sales"><Id>168165</Id><Type/><TransStatus>C</TransStatus><TransNo>2</TransNo><Branch>91</Branch><Station>99</Station><Line>0</Line><IsVoided>0</IsVoided><Logged>2007-08-02T18:52:54</Logged><TheUser>cantlong</TheUser><Status>0</Status><UPC/><Note1/><Note2/><LineBucket>1</LineBucket><Bucket>&lt;capture&gt;&lt;splits&gt;&lt;split&gt;&lt;code&gt;100001006&lt;/code&gt;&lt;percent&gt;50&lt;/percent&gt;&lt;/split&gt;&lt;split&gt;&lt;code&gt;100001030&lt;/code&gt;&lt;percent&gt;50&lt;/percent&gt;&lt;/split&gt;&lt;/splits&gt;&lt;/capture&gt;</Bucket></PostCapture></TransHeaders></ns0:out_sale_mt> -
Receiver Mail Adapter - Module config
I have to send an email with file attachment. The structure of the attachment is complex so I have to use module config to get the correct structure. I have the following parameters:
localejbs/AF_Modules/MessageTransformBean trans1
localejbs/AF_Modules/PayloadSwapBean swap
localejbs/AF_Modules/MessageTransformBean trans2
localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean mail
trans1 Transform.ContentDescription Outmail
trans1 Transform.ContentDisposition inline
swap swap.keyName payload-name
swap swap.keyValue Outmail
trans2 COMMENT.fieldFixedLengths 1,1,9,50
trans2 DETAIL.fieldFixedLengths 2,9,15,7
trans2 HEADER.fieldFixedLengths 2,9,1,1,6,5
trans2 RECORDSET.recordsetName RECORDSET
trans2 RECORDSET.recordsetStructure HEADER,COMMENT,DETAIL
trans2 Transform.ContentDescription Outmail
trans2 Transform.ContentDisposition attachment;filename="mex.txt"
trans2 Transform.ContentType xml/plain;charset='UTF-8";name="mex.txt"
trans2 ignoreRecordsetName true
I don't really understand what Transform.ContentDescription/Transform.ContentDisposition does
When I run my scenario I get the email and mex.txt attachment, but the contents of the attachment are still in XML format.
How do I debug this? Can anyone tell me what I am doing wrong.
Lots of points will be rewarded!Now I see,
you do not have an attachment, just one file.
In that case, do not use the PayloadSwapBean and the MessageTranformBean only once.
Her is a description of the content conversion in MessageTransformBean:
http://help.sap.com/saphelp_nw04/helpdata/en/24/4cad3baabd4737bab64d0201bc0c6c/frameset.htm
In your scenario following entry is missing:
Transform.Class com.sap.aii.messaging.adapter.Conversion
The ContentDescription is not necessary, the ContentDisposition (inline or attachment) help some email client to decide to display the email content inside the email window or as attachment. Most of the email client just ignore this.
Regards
Stefan -
Sending mail function module problem in WAS.
We have one custom function module Z_SEND_MAIL_ALL
which is sending mails successfully with in the SAP 4.7 E system.
Our function module Z_SEND_MAIL_ALL uses internally function modules like SO_OBJECT_SEND and SO_OBJECT_INSERT...
Now we copied the same function module Z_SEND_MAIL_ALL into another system which is running in WAS server and
when we run the function module it seems it is sending as attachment, however when I try to open the attachement...it gives dump. I clicked debugger.
It shows while CALL FUNCTION 'TABLE_DECOMPRESS' execution...
it gives exception ( Error in compressed table ) as below ...
<b>raise COMPRESS_ERROR.</b>....
I don't understand what is the problem ?
Is it because of WAS is fully unicode compliance, these function modules are not working . or is there any thing else I can do ....
YOUR help is highly appreciated and respected.You have to declare the table using any specific type.
The type table in the FM is generic so you can pass any type you need.
For instance:
TYPES: BEGIN OF ty_fields,
fieldname LIKE dfies-fieldname,
END OF ty_fields,
TYPES: TY_T_GLU1 LIKE GLU1 OCCURS 0,
ty_t_fields type ty_fields occurs 0.
DATA: lt_info_struct_fields TYPE ty_t_fields WITH HEADER LINE,
lt_matching_fields TYPE ty_t_fields WITH HEADER LINE.
CALL FUNCTION 'AS_API_INFOSTRUC_FIND'
EXPORTING
i_fieldcat = ft_fieldcat-fieldcat
i_fields = ft_fields_filled[]
IMPORTING
e_infostruc = lv_info_struct_name
e_all_fields = lt_info_struct_fields[]
e_matching_fields = lt_matching_fields[]
EXCEPTIONS
no_infostruc_found = 1. -
Hi,
I use the Mail Adaper with Mail Package.
And i set Content-Encoding Quoted-Printable.
But i still can't send characters like öäü correct.
any idea? is there a second option i have to set somewhere?
regards,
robinsolved it.
you just have to set content type in mail package to text/plain;charset="UTF-8"
regards,
robin -
Email attachment name in sender mail adapter to the receiver file adapter
HI ,
Ths is regarding email to file scenario. I am trying to create file (in rceiver file adapter) with the same name as the email attachment that i read from mail sender adapter. I want ro use adapter module for this. I could find from blogs that there is module - GetAttachmentName - available that i can use for this in sender mail adapter.
Can you please let me know what whetehr i neeed to mention any module key and parameters for this.
I assume , i need to do following steps :Please confirm.
1. i can use this module - after payload swap module and before standard mail adapter module in sender mail adapter
2. select ASMA option in advanced tab in sender mail adapter
3. In receiver file adapter select ASMA option in advanced tab in sender mail adapter
4. Also select file name option in ASMA in sender mail adapter
Thanks,
VamsiHi Vamsi,
your scenario is also described here: Re: sender mail adapter - attachment name
If you use the Module getAttachmentName, which is described here,
http://wiki.sdn.sap.com/wiki/display/XI/AdapterModulePI7.0GetAttachmentName
your scenario should work as you described it.
You just need to make sure that the Attachment Name that you read in the first place, is mapped to the Filename Attribute of the
Fileadapter (http://sap.com/xi/XI/System/File/FileName).
regards,
Daniel -
How to Send Appointment via mail adapter
Hi Guys,
I need to send the appointment and vTodo via mail adapter, any way i need to develop a mail adapter module. Till now i have finished this part,and i can send normal mail even normal mail with attachment. But i don't know how to send appointment via mail adapter.
This is payload content of appointment which got from Exchange server to gmail:
_=_NextPart_001_01C71EC0.97A011C6
Content-Type: text/plain;
charset="GB2312"
Content-Transfer-Encoding: quoted-printable
When: 2007=C4=EA6=D4=C227=C8=D5=D0=C7=C6=DA=C8=FD 3:30 =CF=C2=CE=E7-4:00 = =CF=C2=CE=E7 (GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi.
Where: China
~*~*~**
This is calendar content
_=_NextPart_001_01C71EC0.97A011C6
Content-class: urn:content-classes:calendarmessage
Content-Type: text/calendar;
method=REQUEST;
name="meeting.ics"
Content-Transfer-Encoding: 8bit
BEGIN:VCALENDAR
METHOD:REQUEST
PRODID:Microsoft CDO for Microsoft Exchange
VERSION:2.0
BEGIN:VTIMEZONE
TZID:(GMT+01.00) Sarajevo/Warsaw/Zagreb
X-MICROSOFT-CDO-TZID:21
BEGIN:STANDARD
DTSTART:20070112T140000
TZOFFSETFROM:+0100
TZOFFSETTO:+0100
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:20070112T140000
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
DTSTAMP:20061213T141132Z
DTSTART;TZID="(GMT+01.00) Sarajevo/Warsaw/Zagreb":20070112T140000
SUMMARY:This is calendar test
UID:040000008200E00074C5B7101A82E0080000000030D51864C81EC701000000000000000
010000000CA9F127EA8947844BC4DD47F269BDEA9
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN="Xu, Rocky":MAILTO:rocky@***.com
ORGANIZER;CN="Xu":MAILTO:rocky@**.com;roc*@gmail.com
LOCATION:Shanghai
DTEND;TZID="(GMT+01.00) Sarajevo/Warsaw/Zagreb":20070112T160000
DESCRIPTION:This is calendar content\N
SEQUENCE:0
PRIORITY:5
CLASS:
CREATED:20061213T141132Z
LAST-MODIFIED:20061213T141133Z
STATUS:CONFIRMED
TRANSP:OPAQUE
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
X-MICROSOFT-CDO-INSTTYPE:0
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
X-MICROSOFT-CDO-IMPORTANCE:1
X-MICROSOFT-CDO-OWNERAPPTID:367904726
X-MICROSOFT-CDO-APPT-SEQUENCE:0
X-MICROSOFT-CDO-ATTENDEE-CRITICAL-CHANGE:20061213T141132Z
X-MICROSOFT-CDO-OWNER-CRITICAL-CHANGE:20061213T141132Z
END:VEVENT
END:VCALENDAR
_=_NextPart_001_01C71EC0.97A011C6--
My question is
1. How to generate this kind of payload in mail adapter module?
2. It is possible to send appointment via mail adapter?
Following i can get from other system, even using mail package check or not using mail package check.
BEGIN:VCALENDAR
METHOD:REQUEST
PRODID:Microsoft CDO for Microsoft Exchange
VERSION:2.0
BEGIN:VTIMEZONE
TZID:(GMT+08.00) Kuala Lumpur/Singapore
X-MICROSOFT-CDO-TZID:21
BEGIN:STANDARD
DTSTART:16010101T000000
TZOFFSETFROM:+0800
TZOFFSETTO:+0800
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16010101T000000
TZOFFSETFROM:+0800
TZOFFSETTO:+0800
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
DTSTAMP:20070608T025852Z
DTSTART;TZID="(GMT+08.00) Kuala Lumpur/Singapore":20070608T110000
SUMMARY:This is meeting request with attachment
UID:040000008200E00074C5B7101A82E0080000000000A9BD0BA7A9C701000000000000000
010000000C5E16D144D1612498C0EF7E2115EFEC4
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN="Xu, Rocky
":MAILTO:roc*@**
ORGANIZER;CN="Xu,y":MAILTO:roc*@**
LOCATION:India labs
DTEND;TZID="(GMT+08.00) Kuala Lumpur/Singapore":20070608T113000
DESCRIPTION:This is content! <<shanghai.txt>> \N
SEQUENCE:0
PRIORITY:5
CLASS:
CREATED:20070608T025925Z
LAST-MODIFIED:20070618T033505Z
STATUS:CONFIRMED
TRANSP:OPAQUE
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
X-MICROSOFT-CDO-INSTTYPE:0
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
X-MICROSOFT-CDO-IMPORTANCE:1
ATTACH:CID:008501c7b159$a9d41d3b$_CDOEX
X-MICROSOFT-CDO-OWNERAPPTID:1468557271
X-MICROSOFT-CDO-APPT-SEQUENCE:0
X-MICROSOFT-CDO-ATTENDEE-CRITICAL-CHANGE:20070608T025852Z
X-MICROSOFT-CDO-OWNER-CRITICAL-CHANGE:20070608T025852Z
END:VEVENT
END:VCALENDAR
Thanks & regards
RockyHi
have a look at this
You can use Java/ABAP proxies to do this job for you..
Java Proxy >> will read the mail(with the attachments) with the help of Java APIs and send the message into XI ABAP Proxy >> for this you will have to first convert the attachment into a message and then you can proceed in the regular fashion.
Not all adapters can process attachments, I'm not sure why you are having trouble with using module processor in the mail adapter. Just check if the service pack that you are using supports this feature.
If you are on WAS 6.10 and above you can achieve this and there is an excellent weblog by Thomas Jung on this topic at
/people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816
reading Pdf Through mail easly done with Java Proxy, which will read the mail(with the attachments) with Java APIs and send the message into XI and then map with the Target ABAP proxy structure .
Thanks
Maybe you are looking for
-
What's the best way to keep two hard dives synced?
I've been looking at the best way to protect my data and I've learned a few things. My first thought was RAID but a bit more research showed RAID is not a fix-all. It has it's own problems and even if I use a RAID1 or RAID10 array (depending on the n
-
Getting UWL task count for all users in a role.
Hi. I recently posted a question regarding a very similar issue, but I haven't got any response yet. I think my question might have been somewhat poorly phrased, so I will try to do better at explaining what we need. We have a number of processes, mo
-
My iphone will not sync to itunes. It will connect to the computer but will not show up anywhere in itunes. PLEASE HELP!!
-
Lightroom 2.0 will not export to Photoshop CS3
OK, So I downloaded and installed lightroom 2.0 this morning and things are not working well. System: Macpro 2.8, 8 gb ram, os x 10.5.4, nikon d300 raw files The problem... It started with Lightroom not exporting any images to photoshop. Doesn't matt
-
Adobe CS5 Student Edition won't install
I have the Adobe CS5 Student Edition which I purchased in 2009. When I try to open Photoshop it said there is not enough space on my scratch disk. I have uninstalled CS5 to try to fix this and would now like to re-install it however the serial number