Need attachment file name which had sent or received in entire days.
Hi Friends
I need your help for getting information on exchange mailbox user who had sent or received mails along with attachment file name for entire day.
Basically I get the information of entire mails which had received or sent in all days but I am unable to get the information about attachment file name.
Please do the needful.
Regards, Md Ehteshamuddin Khan All the opinions expressed here is mine. This posting is provided "AS IS" with no warranties or guarantees and confers no rights.
Hi,
Based on my knowledge, Exchange has no built-in feature to get the attachment statistics report. But you can check if EWS can achieve it.
About issues related to EWS, actually, we have a dedicated support team regarding the Exchange Server Development. I recommend you ask your question on our Exchange Server Development forum which is staffed by more experts specializing in this kind of problems.
Thanks for your understanding.
For your convenience:
http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/threads
Hope this can be helpful.
Best regards,
Amy Wang
TechNet Community Support
Similar Messages
-
Javamail API doesn't support special characters in attachment file name
Hi,
We are using Java Mail API to retrieve the attachment's file name, but it sometimes returns the file name as junk character (if the attachment contains special characters) and it is not able to return original file name for some attachments:
Our code sample :
void getFileName(Part part) {
String fname=null;
fname = part.getFileName();
Actually the problem is with the attachment file name which contains special character. For example below is the attachment file name (please find the sample attached file which is causing this issue):
Sample – 1234abc.doc
From above you could see the file name contains a special character (Sample – 1234abc.doc), i.e. The character ‘–’ is not a regular hyphen character, it’s a special character. Hence the Java mail API returns the name as below:
Sample ? 1234abc.doc
So the special character is being replaced with ‘?’ symbol. But if I store this file in local folder and try reading the file name using Java IO packages, it returns the file name without adding ‘?’ symbol.
Is there any way to handle such kind of special characters in Mail API?
Regards,
VinodhWe dealt with this issue in a private email conversation.
JavaMail is returning the correct data for the filename. The problem is in the way the filename is being displayed. -
Mail adapter- Attachment file name of scheme ddmm
Hi ,
I am working on File to Mail scenario.
I checked on SDN, but I could not find exact solution.
My requirement is :
I need to mail HTML report file as attachment.
To generate attachment file, I have done XSL mapping.
Attachment file name should be : yyyymmdd.htm
Mail text should be: This is autogenerated mail, please do not reply.
Mail subject: SAP XI report ddmmyyy
Please provide your inputs.
Best Regards,
DivyeshHi Henrique,
Thanks a lot for your response.
Your answer is very helpful.
I tried your code.
I am getting error in RWB: here I am including audit Log:
2009-04-02 17:39:41 Success MP: Entering module processor
2009-04-02 17:39:41 Success MP: Processing local module localejbs/CreateAttachment
2009-04-02 17:39:41 Success MP: Processing local module localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean
2009-04-02 17:39:41 Success Mail: message entering the adapter
2009-04-02 17:39:41 Success Mail: Receiver adapter entered with qos ExactlyOnceInOrder
2009-04-02 17:39:41 Success Mail: calling the adpter for processing
2009-04-02 17:39:42 Error Mail: call failed; java.io.IOException: Missing mandatory element <sap:Manifest><sap:Payload><sap:Name>
2009-04-02 17:39:42 Success Mail: sending a delivery error ack ...
2009-04-02 17:39:42 Success Mail: sent a delivery error ack
2009-04-02 17:39:42 Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: java.io.IOException: Missing mandatory element <sap:Manifest><sap:Payload><sap:Name>
2009-04-02 17:39:42 Error Mail: error occured: com.sap.aii.af.ra.ms.api.RecoverableException: java.io.IOException: Missing mandatory element <sap:Manifest><sap:Payload><sap:Name>
2009-04-02 17:39:42 Error Exception caught by adapter framework: java.io.IOException: Missing mandatory element <sap:Manifest><sap:Payload><sap:Name>
2009-04-02 17:39:42 Error 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: java.io.IOException: Missing mandatory element <sap:Manifest><sap:Payload><sap:Name>.
2009-04-02 17:39:42 Success The message status set to WAIT.
Can you please provide me help on this?
Best Regards,
Divyesh -
Mail adapter - how to dinamically change attachment file name in sending
How can I dynamically change the attachment filename when preparig email to be sent? The attachment is an invoice in XML format and I have to put the invoice number into the attachment file name.
Thanks in advance.
Giuseppe.Hi,
Go through this docs.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05
http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm
Hope these bloga are useful..
/people/community.user/blog/2006/09/07/email-reporting
/people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
Thanks,
Satya -
Mail to File - how to read the attachment file name from the subject.
I need to use the SHeaderSUBJECT's value in the receiver file adapter's variable substitution.
This is a Mail to File scenario without design part where the attachment file name comes in the subject of the mail.
I see the below in the dynamicconfiguration section. How can i retrive the value from dynamicconfiguration section to the filename.
<SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="SHeaderSUBJECT">PlainAttachment.txt</SAP:Record>
</SAP:DynamicConfiguration>
Points will be rewarded.Try to use sthg like this in a UDF :
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().getStreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create(http://sap.com/xi/XI/System/Mail,SHeaderSUBJECT);
String value = conf.get(key);
or in a JAVA mapping :
DynamicConfiguration dynConf = (DynamicConfiguration) param.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey dynKey = DynamicConfigurationKey.create((http://sap.com/xi/XI/System/Mail,SHeaderSUBJECT);
String keyValue = dynConf.get(dynKey);
param is the map object from the execute() method of your mapping ...
Hope this helps
Chris
Edited by: Christophe PFERTZEL on Apr 23, 2008 11:34 AM -
Issue with attachment file name
Hi All,
This is about an issue with attachment file name:
we have a scenario wherein we have payload with attachments ...(attachments can be any doc ,pdf) , problem is main document is comming with messageid.sap.com and thats normal but attachments are comming with file names for example something.pdf or something.doc or something.txt ...this is failing in adapter as it expects same name as u have in main document...anybody have any idea to get through this issue...
Regards
kiranwe have a scenario wherein we have payload with attachments ...(attachments can be any doc ,pdf) , problem is main document is comming with messageid.sap.com and thats normal but attachments are comming with file names for example something.pdf or something.doc or something.txt ...this is failing in adapter as it expects same name as u have in main document...anybody have any idea to get through this issue...
- <SAP:Payload xlink:href="cid:payload-4CED452F17C601BDE10080000A492050---sap.com">
<SAP:Name>1 .Header1.txt</SAP:Name>
Error we are getting is
Cannot cast 'Header' to boolean] in class com.sap.aii.mappingtool.flib7.NodeFunctions method createIf[Header, com.sap.aii.mappingtool.tf7.rt.Context---27a73bfa]
So we have to change the File name Header1.txt to something which we can cast to creatif....(we cannot tell the sendr to change the file name as its is set already)
Thanks for interste and assisting
Regards
Kiran -
Set Attached File name to Table Cell
Hello All,
I have a scenario where:
1. I have a dynamic table.
2.Every Row has a Button for attaching the new File.
3. When we add new Row to the Table, I want to get the attached file name in the corresponding cell. i.e Cell2 in following example.
I have tried doing it this way
The script which I'm using on Add button is
app.execMenuItem("AddFileAttachment");
var o = event.target.dataObjects;
var n = "";
DataNode.Table1.Row1.Cell2.rawValue = "";
if (o !== null) {
for (var i = 0; i < o.length; i += 1) {
n = o[this.parent.index].name;
var countVal = (DataNode.Table1.Row1.instanceManager.count-1);
xfa.resolveNode("DataNode.Table1.Row1["+countVal+"].Cell2").rawValue = n;
But I'm not able to display the attached file name in Cell2 of the Table.
How can we do it?
Thanks and Regards,
NikhilHello All,
I even tried doing the same using http://eslifeline.wordpress.com/2009/04/06/adding-attachments-to-pdf-form/
But I'm not able to add the file name to the table cell.
Can anyone please guide me through this?
Thanks and Regards,
Nikhil Joshi -
I have a form that was created and is used by users on my local network. The problem is that when a user emails the form using the send by email button I get the email but the attachment file name is always the same. This creates a problem because when I go to save the attachment it wants to over write the files. I need to have the file name be unique for each email.
no, not to my knowledge
-
Decode attachment file name RFC 2231
Hello,
according to the [RFC 2231|http://tools.ietf.org/html/rfc2231] , the headers are encoded to something like
From: =?US-ASCII*EN?Q?Keith_Moore?= <[email protected]>
How can decode such a string, in Java ? I've found only [this implementation|http://svn.apache.org/repos/asf/geronimo/specs/tags/geronimo-javamail_1.4_spec-1.5/src/main/java/org/apache/geronimo/mail/util/RFC2231Encoder.java] from Apache Geronimo. Are there other implementations ?
Thanks,
T.Your subject talks about attachment file names, but your example uses the From header.
For attachment file names and other parameters, set the property mail.mime.decodeparameters
to "true". See the javadocs for the javax.mail.internet package for the list of properties you can set.
Unfortunately, JavaMail doesn't support the specification of a language ("EN") in addition to a charset
("US-ASCII") as in your example. That's a bug that I'll need to fix. -
How to change the excel file name which is in Application server...
hi friends,
my requirement is getting failed, when i'm trying to change the file name which is in Application server using the FM: SXPG_COMMAND_EXECUTE.
when i execute above FM, i can see all my required details in SM69 like:
COMMAND NAME: ZSPOOL_TEST1
OS: Windows NT
TYPE: Customer
OS COMMAND: cmd rename Y:\OBRZ.PDF OBRZ38582.PDF
once the above FM is executed, i'm getting SY-SUBRC = 2 (exception: COMMAND_NOT_FOUND).
so, can any one guide me how to resolve this issue or is there any other way to rename the file which is in AS?
thanks in advance...Hi ,
First you can tranfer the AS server file to a new application server file.
Then you delete the original file .
To do that you can write code as follows --
DATA : w_file(8) TYPE c VALUE 'FILE_NAM', " your present AS file name
w_new(8) TYPE c VALUE 'NEW_FILE',
fs_itab(255) TYPE c,
t_itab LIKE TABLE OF fs_itab.
OPEN DATASET w_file FOR OUTPUT IN BINARY MODE.
DO.
READ DATASET w_file INTO fs_itab. " Reading value from the AS file to field string
IF sy-subrc NE 0.
EXIT.
ELSE.
APPEND fs_itab TO t_itab. " Populating internal table form the file value
ENDIF.
ENDDO.
OPEN DATASET w_new FOR INPUT IN BINARY MODE. " creating a new file if that does not exist
LOOP AT t_itab INTO fs_itab.
TRANSFER fs_itab TO w_new. " Transfering to file
ENDLOOP.
CLOSE DATASET w_file..
DELETE DATASET w_file. " Dleting the old file
CLOSE DATASET w_new. " Closing the final file
Regards
Pinaki -
We have Oracle 10g application server ,i used rwlicent to send report as email and it works fine the only problem that i couldnot controll the attachment file name,
is it possible to change the file name?
any help so appritiated .
RegardsAre you using a distribution.xml for the emailed reports? If not you can pass destination=distribution.xml on your rwclient call.
distribution.xml:
<destinations>
<foreach>
<mail id="a6" to="[email protected]" subject="Personnel Reports">
<attach format="pdf" name="attach.pdf" srcType="report" instance="this">
<include src="mainSection"/>
</attach>
<attach format="rtf" name="attach.rtf" srcType="report" instance="this">
<include src="trailerSection"/>
</attach>
</mail>
</foreach>
</destinations>You can change the attach.rtf to be a parameter value using &<parametername> syntax. Look here for details on using the distribution.xml file. -
Need Target File Name Timestamp is same as Source File name Timestamp
Hi ,
I want to genereate Target file name (Target_09062008082030.xml) but this time stamp is exactly Sorce FileTime stamp..(Source_09062008082030.xml)..
so, i want to create a target file with the same source file time stamp..
for this.. i sed Message Specific attributes... in both sender and receiver side.. but that was creating with the complete name.of source file name.. but i want only Timestamp of the source filename... and remaing is the constant.. for this how can i proceed ..
Thanks
JainSee in Sender CC when you set the Adapter Specific Message Attr for file name it will send the filename in the header of the XI Message.
To acces this file name inside mapping you need to create a UDF . The type can be any thing as you desire.
You dont need to pass any variable .if suppose you want the file name (constant) e.g ABC_<timestamp>.xml
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String fileName= conf.get(key);
//see above your key is FileName which will be sent by the sender CC automatically... You are simply accessing it here using get() method.
//now ur filename will contain name of the source file... you need to perform a substring operation to get the timestamp and create a new file name as you desire.
fileName = "New_<timestmp>.xml"; //for e.g
//set this file name again in header message using put()
conf.put(key, fileName);
//when you check on the adapter specific message attr for fileName in the receiver CC ,it will automatically take this new file name value.
return fileName;
// if you want to use this new fileName inside your mapping payload (for other fields) you can assign this to any target field,else just assign it to the root tag which will make no difference if this file name is not used anywhere. -
Apostrophe ( ' ) in the attachment file name
Hi Guys,
We have a EP application where the users are allowed to attach files. In the UAT and Prod box, there is apache server where as its not there in development.
The issue is coming in UAT and production
The user attached a file with (') in it e.g. SAP's.jpg
The file was attached but when the user tries to view it, it gets error as
FORBIDDEN
you dont have permission to access /irj/go/km/docs/documents/SAP's.jpg
I tried to use different file names such as SAP~s.jpg. All seems to work so its not really a special character issue.
BASIS team is not able to find any setting which could allow this.
Appreciate if you can provide some explaination or the list of character which are not allowed.
Thanks,
ShaileshIt seems (') is not allowed due to security reasons thus has a special meaning so not allowed
-
Attached File Names Change via Entourage
When I attach a file to an e-mail, many times it gets changed when it's viewed on the other end. Not 8-dot-3, just different. Our naming system can be long due to the numbers of jobs here, so there's a lot of info that needs to be in there.
For example, this file name:
ParagonHondaEmail_CertifiedJan14.html
changes to
ParagonHondaEmail%2382DD8A.HTML
Our office runs on Microsoft servers and Exchange Server for e-mail. I'm using a Microsoft (gulp) e-mail client. Is there a way around this short of having to ZIP a tiny html attachment? I've just been told this only happens with html attachments. Curious.
Thanks for any tips.Thanks for taking a look, Anand.
Attached are the workspace and tsd file.
Message Edited by jake_sanderson on 02-12-2009 11:34 PM
Attachments:
Sounder.tsw 2 KB
Build Sounder Deployment V2.tsd.zip 3 KB -
Hello all,
I want to get the name of the attached file into the text field.
I have referred several documents but they are not solving my issue. I don't want to use list box, I want the name in text field.
Thanks in advance.
GopiHi radzmar,
Your code was helpful.
But I want this functionality for for multiple lines which will get added dynamically. When I'm adding the row dynamically it is appending the data into the same textfield instead of the next. It will be clear from below image, Here I have added second row dynamically by clicking on "+" button and attached the file but it is showing it in the text field of 1st row.
Thanks in advance and waiting for your response.
Maybe you are looking for
-
Restriction of sales order conversion to billing request for projects not r
Dear all, We have SD integrated with Project systems. Each of the sales order is linked to the WBS element of the project which has to be billed. Sometimes a project which is not released is attached to the sales order and while billing it doesnu2019
-
Add button to the transaction SM30
HI Whether it is possible to add a buton to application tool bar in the transaction SM30. help reg this.
-
How do I enable Javascript in Foxfire 29.0? about:config does not work.
I've just downloaded the newest available Foxfire (29.0) in the hope I can access my gmail account. But it still says "Javascript is not enabled". about:config does NOT show a preferences menu, so I can't toggle Javascript on. I tried downloading add
-
CIF of SA is not consistent for Validity End Date
Hello gurus, Our company is quite new in using SNC, and we bumped into this problem (see description below), and hopefully this forum can help us. <Description>: When the Scheduling Agreement is CIFed from R/3 (ECC) to SNC, the Validity End Date does
-
Battery dies and computer shuts down
Up until about a week or two ago my MacBook was working fine. Yet now the battery is all messed up. Whenever the battery dies the whole system shuts down instead of going into safe sleep mode. I tried resetting the SMS, it worked at first, but then i