File attachment at File2Mail scenario
Hi All,
I'm trying to config a File2Mail scenario, I want the file read by the file adaptor will be send as mail attachment (with csv suffix). Last thing, the attached file name should be identical to name of the source file read by file adaptor.
Plz advise / provide useful links
Best Regards
Uri
in the mail adapter make sure that keep attachments option is checked.
Also to solve the file name issue ref: The specified item was not found.
Similar Messages
-
Attached file in receiver mail scenario and ConvertCRLFfromToLF
Hi,
I have a problem attaching a text file in a receiver mail channel.
I use mail package, and I've created a UDF to create field content with:
for (int j=0;j<a.length;j++)
b = b + a[j] + "\n" ;
result.addValue(b);
In my receiver CC, I have configurated:
SAP XI Sample/ConvertCRLFfromToLF
mode --> LFtoCRLF
But when I open file attached by mail, it has only one line and line feed it's not correct.
How to insert correctly CR LF ?
Thanks,
cARMEI need CRLF at the end of every line in text file (windows end line).
I have tried
1) inserting \r\n t in the UDF and no module in CC. With this I see 0A 0A at the end of every line (it would be 0D 0)
2) inserting \n in the UDF and use module in CC to convert LF into CRLF. With this I see 0A at the end of every line.
How to do it?
Thanks,
Carme -
Dynamic mail subject in File2Mail Scenario
We are doing File2Mail scenario. We r sending 5 files in 5 mails with 5 diff subjects by MAIL adapter.
Can anyone guide me how to send 5 files as attachment in one single mail with different mail subjects :
File names are - Employee_Leave,Base,Super,Loss,Profit.Hey,
you can use dynamic addressing wherein you can provide the mail related information in your mapping.
for example the to, from, subject and content.
so you can map these fields form the input structure or you can have a constant to map it.
refer to this blog it will really help.
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
the only differerence in your case is that you need file as attachment so mark the keep attachment field.
it will ask you for a mail structure.
use this structure as your target structure.
<?xml version="1.0" encoding="utf-8" ?>
- <!--
SAP takes no position regarding the validity or scope of any intellectual property or
other rights that might be claimed to pertain to the implementation or use of the
technology described in this document or the extent to which any license under such
rights might or might not be available; neither does it represent that it has made any
effort to identify any such rights.
Copyright © SAP 2003-2004. All Rights Reserved.
This document and translations of it may be copied and furnished to others, and derivative
works that comment on or otherwise explain it or assist in its implementation may be
prepared, copied, published and distributed, in whole or in part, without restriction of
any kind, provided that the above copyright notice and this paragraph are included on all
such copies and derivative works. However, this document itself does not be modified in
any way, such as by removing the copyright notice or references to SAP.
This document and the information contained herein is provided on an u201CAS ISu201D
basis and SAP DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY
IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
-->
- <xs:schema targetNamespace="http://sap.com/xi/XI/Mail/30" xmlns:xi="http://sap.com/xi/XI/Mail/30" xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <!--
Mail
-->
- <xs:element name="Mail">
- <xs:annotation>
<xs:documentation>Mail package for XI - Mail Adapter</xs:documentation>
</xs:annotation>
- <xs:complexType>
- <xs:sequence>
<xs:element name="Subject" type="xs:string" minOccurs="0" />
<xs:element name="From" type="xs:string" minOccurs="0" />
<xs:element name="To" type="xs:string" minOccurs="0" />
<xs:element name="Reply_To" type="xs:string" minOccurs="0" />
<xs:element name="Content_Type" type="xs:string" minOccurs="0" />
<xs:element name="Date" type="xs:dateTime" minOccurs="0" />
<xs:element name="Message_ID" type="xs:string" minOccurs="0" />
<xs:element name="X_Mailer" type="xs:string" minOccurs="0" />
- <xs:element name="Content" minOccurs="0">
- <xs:annotation>
<xs:documentation>any type</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="encoding" type="xs:string" />
</xs:complexType>
</xs:element>
- <xs:element name="MailReceipt">
- <xs:annotation>
<xs:documentation>Mail Receipt for XI - Mail Adaper</xs:documentation>
</xs:annotation>
- <xs:complexType>
- <xs:sequence>
<xs:element name="Server" type="xs:string" />
<xs:element name="Format" type="xs:string" />
<xs:element name="UseMailPackage" type="xs:boolean" />
<xs:element name="Encoding" type="xs:string" />
<xs:element name="Subject" type="xs:string" minOccurs="0" />
<xs:element name="From" type="xs:dateTime" minOccurs="0" />
<xs:element name="To" type="xs:string" minOccurs="0" />
<xs:element name="Date" type="xs:dateTime" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
reward points if useful.
regards,
Milan. -
How to determine the size of a flat file attachment in a mail sender cc?
Hi
I use PI 7.11
I have a scenario where a flat file attachment is being picked up by a MailSender adapter and if the size of the attached flat file is larger that 500 bytes the receiver is A and if the attachment is less that 500 bytes the receiver is B.
I have checked the Context Object list in the Conditions section of Receiver Determination, and it seems, that only the file adapter allows for validation on the file size.
I contemplated an extended receiver determination but the attachment is a flat file which just needs to be passed thru without being converted to an XML document, so my source document is not of XML format.
An other but not very nice way would be to use an intermediate folder to drop the attachment in and from there use a file sender adapter and thus get access to the filesize attribute in my receiver determination, but I would like to avoid this.
Any suggestions?
BR MIkaelHi
I have decided to make a module, where I plan to place the size of the attachment in the Dynamic Configuration variable "ProcessStep", but to my surprise, it seems that all the context objects in the receiver determination condition section are of type String and hence it is not possible to make a condition where I test for whether the value is smaller than say 500!? Only equal, NOT equal and LIKE are available (EX seems to be disabled as this probably only works in an xpath.
Would one way be to use the xpath expression like this ns1:Main\ProcessStep < 500 where ns1: http://sap.com/xi/XI/System?
MIkael -
SOAP Axis sender with CSV file attachment
Hi Experts,
I have a requirement where I receive a CSV file attachment from a Web Service post ( i.e a SOAP sender with attachment). I decided to use SOAP with Servlet(Axis) protocol, since standard SOAP sender does not allow modules to be used.
I am able to test this interface through SOAPUI with attachment to the point where I can get the attachment payload as my main payload in IE, but it fails in mapping since CSV needs to be converted to XML. I have following queries for proceeding ahead with this scenario:
1. How do I convert the CSV attachment to XML inorder for mapping to be used in IE. Is there a standard axis handler available for this ???? Also where should this handler be called in the sequence of Axis modules ???
2. Can I use MessageTransformationBean for converting plain to XML ??? If yes where should this module be called in the sequence of Axis modules. I tried using this module between the CallSapAdapter and the first AdapterBean but it returns exception in SOAPUI saying " Messaging exception: No Main"
3. Is there a blog available which illustrates about using additional modules/handlers in Axis. I have had a look at the FAQ note of Axis but it just gives the overview.
Thanks.
Siddhesh S.TawateSolved :).
1 AF_Adapters/axis/HandlerBean Local Enterprise Bean xireq
2 AF_Adapters/axis/AFAdapterBean Local Enterprise Bean afreq
3 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean Plain2XML
4 CallSapAdapter Local Enterprise Bean sap
5 AF_Adapters/axis/AFAdapterBean Local Enterprise Bean afresp
6 AF_Adapters/axis/HandlerBean Local Enterprise Bean xires
Above sequence worked. I guess I was missing some parameter in content conversion earlier.
Thanks. -
Mapping error in file(FCC) to rfc scenario
Hi,
i am trying to implement mapping in file (fcc) to rfc scenario. the source file is getting picked up, but the problem is arising during mapping. i am unable to generate the target structure. i am attaching mapping structure as follows
Source Structure Target Structure: RFC
storesales -POSDW-CREATE_TRANSACTIONS_EXT
recordset it_transaction
gmd_site_101 item
gmd_site_102
gmd_site_103
gmd_site_104
here the recorset is mapped to item, and fields of subnode gmd_site_101 is mapped to fields of subnode item. similarly, for the other subnodes. but when testing with xml file, the target field is not getting generated. in FCC parameters, ignorerecordset name is set to "true".
any help would be very helpful..thanks in advance.
warm regards,
kartzhi
You can test the data using payload from SXMB_MONI in message mapping test tool so as you can get to know the reason of failure.
It would be better if you paste the error you are getting over there.
Check if you have maintained the namespace in CC or not. it should be same maintained if you have kept namespace in message type.
Also check in FCC parameters you must have used ignoreRecordsetName = true
Regards
Raj -
File to mail adapter scenario.
Hi All,
i have a file to mail adapter scenario.
here i get the data from tthe different vendors and what ever comes in should be validated and if needed sent as an attachment or detached from the message and then from receiver mail adpter to application server..if possible content conversion has to be done.
my questions are...
<b>1.whare should we validate the data..is it in the XI server or receiver mail adapter..
if so..how to do that validation
2.how can we send as attachments ..
3.how can we detach them..i.e if attachments are not required 4.if content conversion conversion has to be done where is that done..
4.after coming out of the receiver adapter....how can we send it to the appliocation server.</b>
Thanks in advance..
cheers,
raghavesh
Message was edited by:
Raghavesh Reddy
Message was edited by:
Raghavesh ReddyRaghavesh,
Not sure if i follow the entire question.
><i>here i get the data from tthe different vendors and what ever comes in should be validated</i>
I guess you are getting files using the file adapter.
><i>and if needed sent as an attachment or detached from the message and then from receiver mail adpter to application server..if possible content conversion has to be done.</i>
Not sure I follow this part. You validate your incoming file and what do you do
1. If the file is valid?
2. If the file is invalid?
are you sending mails in both cases.
Like pinted out there are multiple places where validations can be done,
1. Module --> https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b918e
2. Mapping --> Graphical / Java
There are many options and they all depend on the incomuing payload and the entire process.
So , if you can give us more details, maybe an optimum solution can be discusses.
Regards
Bhavesh -
Mail Adapter: How to send data as a simple text file attachment?
Hi All
I have a proxy to file scenario, where i write data to a text file.
Now, i need to have a second receiver. I have to send an email, with the above file as an attachment, to this receiver.
How can i do this?
How can i send the data as a text file attachment to the receiver?
Many Thanks
ChandraHi,
To send the message to the second receiver you need to have:
1) Necessary mail message format (can download from service marketplace)
2) Receiver mail communication channel.
3) Create the necessary Configuration Objects .... Receiver Determination, Interface Determination, Receiver Agreement.
3) You can do a XSLT mapping (if required)....if no complex logic is needed then you can do a simple Message mapping.
4) In the receiver CC make sure that you check the Adapter Specific Message Attribute checkbox.
For more info you can refer my answer in this thread:
Re: xml in mail
Also refer the blog:
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
Regards,
Abhishek. -
How to e-mail a file? File- XI- e-mail scenario
Hi guys!
I need to create a scenario for sending all files from one source directory to target e-mail address. I tried using it without mail package, but this renames the file (attachment) to a e-mail subject's name.
I need to send this file and need the file's name remain the same.
Any ideas how to achieve this?
Thank you! PeterGuys, if you'll have similar problem:
use e-mail package and map COntent_Type field:
<type> / <subtype>; name=<dinamically_assigned_name_taken_from_file_adapter>
this renames your attachment to required name.
Peter -
Hi all,
My scenario is as follows:
I have a Adobe Form which will have file attachments. The Form with the attachments will be sent from the SAP R/3 system itself. My work is to open the file which I am unable to do. Those attached files can be seen in the attachments option in the Adobe Reader and can open from there, but I am not able to open through my code. All the attached file's name, id and description are displayed in the table. Upon clicking the file name, the attachment should open. I have wrote the code for opening attachment which is working fine when I attach files in the Adobe Reader using a button click event (just using browse button and importDataObject method). The same code fails when I try to open the file which is received from the R/3 system.
I dont have a clue for what to do to import the file attachment and how can I relate the attachment with the fileID. Any help is of great use to me since I am new to this technology.Hi,
There is a discussion here: http://forums.adobe.com/message/1360859#1360859 and I have uploaded Paul's solution here: https://acrobat.com/#d=5gQoNybe75bwACDtfBToMA.
This might help you.
If you want the user to be able to attach files to the form, then it would need to be Reader Enabled using LC Reader Extensions, which is part of the server solution. See summary here: http://assure.ly/etkFNU.
Also this example might help: http://assure.ly/vRyoeQ.
Hope that helps,
Niall -
Text messages with animated .gif files attachment
I recieved a text the other day with an animated gif file attached. I believe it was sent as a zip file. Anyway I tried to open it and all I got was a gray screen with an icon . No animation.. The second one I recieved was from a buddy. I watched and listened to it on his Droid 1. I had him send it to my phone text came through fine when I went to load and play the gif file it .had sound but no animation, just the gray screen again. I know the attachment is a zip file as I sent it to my email and opened it on my computer. Any thoughts maybe there's a setting I'm not finding? I'm using whatver text mesage program thats standard on the DX.
Thanks
MTY55.Sounds like the issue you are having is that the files are zipped, MMS should be zipped because it has to access the files to display it.. I send and recieve anifated gif files and they play fine but also keep in mind that for some reason the stock email client does not play all files at same time, if there is a audio and photo, it will play audio and then the photo..
-
After I Update to IOS 7.1 I can't open the excel file attached in my email
After I updated my Iphone 5s from IOS7.0.6 to IOS7.1 when i check my email i can't open excel file attached in my email i check with my frineds phone thy have same issoue
David_PDX wrote:
Hi Alex,
The trick to this whole thing is to scroll to the bottom of the message. There should be a dashed line at the bottom of the email message with text underneath it that says, "This message was downloaded as plain text." Underneath that it should say (in blue hyperlink text) "Download full message". Select that hyperlink, and the Excel file should download completely. You should then be able to select the document and have it open correctly.
I have had the same concern regardless of file format that is sent, so I do not believe your issue is with file format. Hope this helps.
I've seen the same thing happen with images, which it displays in a corrupted form. It's fixed by downloading the full message.
There's a more serious side effect of this, which I've now seen with several types of files. If one FORWARDS the email to someone else, the attached files it sends them are CORRUPTED and unopenable too. In the case of a Word files I looked at, it had dropped the last two bytes of the file.
The workaround for that is to download the full message before forwarding.
I'm seeing this happening with so many types of attachments that I'm assuming it affects them all. Please everyone report this to Apple feedback (http://www.apple.com/feedback/). It's one thing not being able to open a file on your device, it's another to have files corrupted permanently just by forwarding. -
How to use UTL_SMTP to send email with existing file attachment
Hello! I am trying to create a pl/sql procedure that lets me send an email and include an existing file to a email address. So far, I found information on how to send a file and create an attachment with information I put in the procedure. This is NOT what I'm trying to do. I'm trying to send an email and include an attachment for a file that already exists. I need the pre-existing file to be sent to the email recipient.
This is how far I've gotten, but this only allows me to CREATE an attachment with the information I put in it from the procedure. I got it from the following site:
http://www.orafaq.com/wiki/Send_mail_from_PL/SQL
DECLARE
v_From VARCHAR2(80) := '[email protected]';
v_Recipient VARCHAR2(80) := '[email protected]';
v_Subject VARCHAR2(80) := 'Weekly Invoice Report';
v_Mail_Host VARCHAR2(30) := 'mail.mycompany.com';
v_Mail_Conn utl_smtp.Connection;
crlf VARCHAR2(2) := chr(13)||chr(10);
BEGIN
v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
utl_smtp.Mail(v_Mail_Conn, v_From);
utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
utl_smtp.Data(v_Mail_Conn,
'Date: ' || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
'From: ' || v_From || crlf ||
'Subject: '|| v_Subject || crlf ||
'To: ' || v_Recipient || crlf ||
'MIME-Version: 1.0'|| crlf || -- Use MIME mail standard
'Content-Type: multipart/mixed;'|| crlf ||
' boundary="-----SECBOUND"'|| crlf ||
crlf ||
'-------SECBOUND'|| crlf ||
'Content-Type: text/plain;'|| crlf ||
'Content-Transfer_Encoding: 7bit'|| crlf ||
crlf ||
'This is a test'|| crlf || -- Message body
'of the email attachment'|| crlf ||
crlf ||
'-------SECBOUND'|| crlf ||
'Content-Type: text/plain;'|| crlf ||
' name="ap_inv_supplier_cc10.txt"'|| crlf ||
'Content-Transfer_Encoding: 8bit'|| crlf ||
'Content-Disposition: attachment;'|| crlf ||
' filename="ap_inv_supplier_cc10.txt"'|| crlf ||
crlf ||
'TXT,file,attachment'|| crlf || -- Content of attachment (THIS IS MY PROBLEM! I NEED TO BE ABLE TO ATTACH AN EXISTING FILE, NOT CREATE A NEW ONE)
crlf ||
'-------SECBOUND--' -- End MIME mail
utl_smtp.Quit(v_mail_conn);
EXCEPTION
WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
END;
/First, you must create a directory object
create directory ORALOAD as '/home/ldcgroup/ldccbc/'
/Study the Prerequisites in the link I posted above, or else you will not be able to read/write files from the above directory object
"fname" relates to the file name that you read from.
In the code below, it is also the name of the file that you are attaching.
Although they can be different!
l_Output is the contents of the file.
declare
vInHandle utl_file.file_type;
flen number;
bsize number;
ex boolean;
l_Output raw(32767);
fname varchar2(30) := 'ap_inv_supplier_cc10.txt';
vSender varchar2(30) := '[email protected]';
vRecip varchar2(30) := '[email protected]';
vSubj varchar2(50) := 'Weekly Invoice Report';
vAttach varchar2(50) := 'ap_inv_supplier_cc10.txt';
vMType varchar2(30) := 'text/plain; charset=us-ascii';
begin
utl_file.fgetattr('ORALOAD', fname, ex, flen, bsize);
vInHandle := utl_file.fopen('ORALOAD', fname, 'R');
utl_file.get_raw (vInHandle, l_Output);
utl_file.fclose(vInHandle);
utl_mail.send_attach_raw(sender => vSender
,recipients => vRecip
,subject => vsubj
,attachment => l_Output
,att_inline => false
,att_filename => fname);
end;
/ -
How do I get an email file attachment, any extension, off of my phone?
All I want to do is get an email file attachment off of my phone and on to my computer so I can use it. I don't want to open it on my phone, it could be an AutoCAD file, a programming langauge file, etc. I want the option to save the attachment to local memory on my phone and then transfer it to my PC via USB. This worked all the time with my Blackberry, but it seems impossible or extremely difficult with the Apple IOS. The available phone memory would look like a USB stick drive to my PC. I am at job sites all the time where I do not have internet access from my PC, but I am within the cell network area of coverage so this would be an option.
I spent almost an hour with Apple Tech support today and they must have thought that I was on drugs asking for such a simple thing. Apparently, the available phone memory is protected by the IOS so that the PC can't see it or use it. They said this feature would be all App based. The key then is finding an App that would allow the email client on the phone to give the user the option to open or save the file to a location that my PC can see. Does anyone know of such an App? If I can't find a workable solution I may have to go to an Android device. Thanks.So I understand where you are coming from. The best way is to use the cloud. What you need to do is download a program like dropbox, box.net or sugar sync; there are tons of these apps but those 3 are the most widely supported. Once you download it on your device you can then download it onto your computer by going to their respective sites. These will automatically sync your documents over the air when both your computer and phone are connected to the internet. But if you have no internet service on your computer here is what you do; go to itunes and plug in your phone> go over to the APPS tab on the top> scroll to the bottom of the page and it will say file transfer. This will allow you to pull files from those cloud apps even without service and voila you have your files on your computer even without Wi-Fi or hotspots. I hope this helps!
EDIT; the best app to use file transfer with is good reader because the cloud apps won't sync directly with iTUnes. You will have to pay for it but it will allow you to connect all your cloud services to it and it can edit and view most files. I use it constantly for my work and I wouldn't be able to live without it even if I wasn't using it for file transfer. Sorry I forgot that in my post, this is an necessity to use the file transfer in iTunes.
Message was edited by: MFS APPLE PRO -
I have Windows 7, Microsoft Outlook and PSE 13. I have used the "Share photos as embedded images" feature frequently, but today when I went to use it, it wasn't there, only the option to send email with files attached. How do I get back the ability to send emails with photos embedded. I like adding the frames and backgrounds and I think it's easier for recipients to look at the photos. Thanks for any suggestions of things to try.
GailI had a similar problem in that my wife's iphone 5 could not send pics with imessage. Had to set the settings to default to SMS or whatever. After laboring many hours on the web I coincidentally was on the phone with the internet people to question my internet speed. They changed the router channel, which is something that I am capable of doing myself. After that, the pics go over imessage. My own Iphone didn't have the problem. We are both latest IOS 7.0.6.
Maybe you are looking for
-
Basic questions regarding installing Forefront EP Client 2010 on Windows 2012 R2
Hi, We have a handful of servers and client machines (although these always seem to be expanding) and as such have previously just installed the Forefront Endpoint 2010 Client manually onto the various endpoints with updates being pushed via WSUS fro
-
Is it possible to run a java application within a web browser?
Hello everyone here! I have a question about running a java application within a web browser and I would appreciate it very much if anyone here can give me some answers. I have a standalone java application written with AWT. Basically this free appli
-
App says it downloaded, but doesn't show up
I went to the App Store and downloaded an app, and it showed it downloading in the App Store, but it won't display on the home screen. If I hit the open button in the App Store, it does nothing. In the usage menu, I can find its icon, but with no nam
-
Dear All Experts. I want to know that what is the use of 1KEI & 3KEH I have read some where that , 1 ) After uploading the balances through AS91 and OASV activity the user have to transfer those balances to PCA. but why we have to transfer those bal
-
Hierarchy used in "People in Hierarchy" screen (Manager Actions)
Hi All Which hierarchy is used in "People in Hierarchy" screen (Manager Actions) I tried the following. Create a position hierarchy and created a security profile as follows View Employees - Restricted View CWK - Restricted View Applicants - Restrict