Dynamic file name of the attachment in sender mail adapter
Hi
I have configured a sender mail adapter which receives some attachments.
Right now the file name of the attachment is hardcoded to "MailAttachment-1" "MailAttachment-2" using the content-description from "AF_Modules/PayloadSwapBean" module.
I want to set it to dynamic ie. instead of "MailAttachment-1"... i want it with real name of the attach.
please suggest a solution w/o the need to develop a custom adapter module.
Thanks!
Regards,
Mariano.
Thanks Prateek,
Now, i can see that the name of the original file is into the content type named as text/xml; name"name of the file.xml" when i send the email from outlook.
If i send it from hotmail, this is not happend.
Do you know why happend this?
If i always would have the original name inside the content type, my problem will be solved.
Edited by: Mariano Vidal on Feb 13, 2009 2:26 PM
Similar Messages
-
Dynamic file name of the attachment in receiver mail adapter
Hi
I have configured a receiver mail adapter which receives the payload as an xml attachment.
Right now the file name of the attachment is hardcoded to "invoice.xml".
I want to set it to dynamic ie. instead of "invoice.xml"... i want it as "invoice<invoicenumber>.xml".
Invoice number is present in the payload.
please suggest a solution w/o the need to develop a custom adapter module.
Thanks!
Regards,
Faria MithaniHi,
Go through this thread..
Dynamic File Name for Receiver File Adapter
Regards,
Sarvesh -
How to get the name of the attachment in Sender Mail Adaper?
hi mates,
I've scenario a where in I need to pick up a mail with an attachment and change its extension and send it to target system using file adapter.
I'm able to pick up the mail with attachment using sender mail adapter but not able to get the name of the attachment so that I can use it in mapping or on the adapter configuration. How do I read the name of the attachment and manupulate it?
I looked at the thread sender mail adapter - attachment name But the solution is not described. I think Stefan is talking about the SP!2 for PI 7.0. I'm on XI 3.0 what is the equivalent SP for that, SP20? Stefan, can you please throw me more light on it?
I appreciate your valuable inputs
thx in adv
praveenThanks Aamir.
Earlier I replied to that thread asking for more details...but did not see the response...
anyways, thanks for your quick help..
but I wonder abt the PI SP12/ XI SP20 pre-requisite. We can have adapter modules on SPs lower than PI SP12/XI SP20 as well, can we not?
thanks
praveen -
Path and File name of the attachment
Hello Srm Guys,
Where should be the Path and File name of the attachment are stored for a shopping card Item.
Thanks
RamHello Ram,
Execute the function module BBP_PROCDOC_ITEM_GETDETAIL by providing the item guid,object type . Now it will populate the et_attach importing parameter with the attatchement details.
In the ET_ATTATCH internal table , the field PHIO_FNAME/PHIO_PATH_FILE provides the physical storage location of the document.
Hope this info will be helpful.
Regards,
Mani -
How to download / read text attachment in Sender Mail Adapter IN XI
Hi
I would like to know how to download / read text attachment in sender mail Adapter & sent same attachment to target system using file adapter.
Please help how to design / resolve this concept.
Regards
DSRI would like to know how to download / read text attachment in sender mail Adapter & sent same
attachment to target system using file adapter.
Take help from this blog:
/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
From the blog:
However in most cases
our message will not be a part of the e-mail's payload but will be sent as a file attachment.
Can XI's mail adapter handle such scenarios? Sure it can but with a little help
from the PayloadSwapBean adapter module
Once your message (attachment) is read by the sender CC, you can perform the basic mapping requirement (if any) to convert the mail message fromat to the file format.....configure a receiver FILE CC and send the message...this should be the design...
Regards,
Abhishek. -
Using header paramter SHeaderX-MS-HAS-ATTACH in Sender mail adapter
I am trying to check if an e-mail contains attachment in reciever determintion
I set the Variable Header XHeaderName1 to be SHeaderX-MS-HAS-ATTACH
in Sender mail adapter
I added a condition in the receving determintation
XHeaderName1 = yes
I see the DynamicConfiguration tab in sxmb_moni and the value of SHeaderX-MS-HAS-ATTACH is "yes"
but the message fails with the error
No receiver could be determined
any ideas?Hi,
In Receiver determination you need to set SHeaderX-MS-HAS-ATTACH = yes instead of XHeaderName1.
As far my understanding, in receiver determination you need to verify the condition with SHeaderX-MS-HAS-ATTACH = yes (check with syntax also ie. case sensitive and all)
Thanks
Swarup -
Dynamic File Name - Suppress the Substitue varible
Hi All,
I am doing the scenarios like File name at the recevier end would be dynamic for that i take an extra field NAME mapped with UDF which return the file name dynamically. It is working fine and doing good. But the problem here is , this field is the first field in my target structure so i am getting an empty line in the target file.
So My structure as follows:
<b>MT_BNK01 1..1
NAME 1..1
RECORD 0..Unbound
--Record_data 0..Unbound</b>
So in the recever side i written as follows
Recordset Structure:: RECORD
<b>RECORD.fieldSeparator = 'nl'
RECORD.endSeparator = 'nl'</b>
But according to this weblog i can suppress the empty line but it is not working
/people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12
means, NAME is also in the same level of RECORD in the Structure. So How can i pass the structure as ??
I tried to pass the RecordSet Structure: NAME,RECORD
and following parameters, it is not working
<b>NAME.fieldFixedLength =0
NAME.fieldLengthTooShortHandling = Cut</b>
Can you please suggest me what could be the reason. Tell me what information i need to pass the RecordSet Structure and attrubute information also.
One more thing like, My sender side it is not picking the empty lines. What could be the reason. I given fieldSeparator and endSeparator as 'nl'. So to catch the empty line what i need to do???
Thanks in Advance,
Best Regards,
VijayHi Vijaya,
This can be solved. Actually i had the same scenario where i was getting blank line for the header. Suppose Header was carrying the file name after i cut the value i would get a blank line in file.
So i added in content conversion parameter the following line
Header.endSeparator - '0'
then the first line was not blank.
Try this, i think your issue will be solved
Regards,
Ramesh P
Message was edited by:
Ramesh Parashivamurthy -
Dynamic file name inside the ZIP file
Hi Experts,
I have done proxy to file scenario, reciever side is the file ZIP file, i have done successfully done Zip file using adapter modules in Communication Channel.
The file name is hard coded like this.
contentType-----Transform.ContentType--
text/plain;charset="UTF-8";name="Billing.txt"
Is there any possible to do dynamic file name instead of hardcoded like add time stamp.
Kind Regards,
Praveen.hi,
you can always do it using an adapter module like shown in my blog:
/people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution
Regards,
Michal Krawczyk -
Support package of attachment for Sender mail adapter
can anyone tell me after which support package XI supports
Attachments in sender mail Adapter.
Thanks
Sunil Singhhi sunil,
check this links
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05
http://www.sapag.co.in/SAP-XI-Mail-Adaptor-FAQ'S.html
regards
srinivas -
How to retreive the dynamic file name in the AAE configuration?
Hi Guys,
I have configured File to File with the integrated configuration and in the mapping i need to retreive the file name dynamically and i am unable to retreive it from the run time in AAE configuration. I am able to retreive with the normal configuration where integration engine is the run time.
I am using the code as below. Is it possible to retreive the file name dynamically in the AAE configuration? any help or suggestions would be appreciated.
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String ourSourceFileName = conf.get(key);
return ourSourceFileName;
Thanks,
SriniHello Srinivas,
Brief Solution:
1. Using dynamic configuration, set the attribute value of payload dynamically to ASMA
2. Using AF module, write the value of ASMA in a variable
3. Using the variable substitution, set the receiver file name schema
Plz go through the below link:
http://wiki.sdn.sap.com/wiki/display/XI/CombiningthreedifferentaspectsofPIinoneshot
Thanks,
Satya Kumar -
Need dynamic File name in the Schedule link for FTP Destination
Hello,
We are using Oracle BI Publisher Enterprise formerly XML Publisher
I am trying to drop a .csv file into an FTP location using the Schedule link for a report I have created. I need to run this program everyday. Is there a way I can have it drop a file with the date stamp? Currently when you hit Schedule and select FTP destination I need to specify the path of the file and I am not sure if it can accept dynamic parameters?
Can it?
I want to be able to specify "SomethingDate{sysdate}".csv
Cheers
VijayHi Vijay
Im pretty sure it can not do that at the moment, not thru the scheduler UI.
What you could do thou, is set the report up as a bursting report - you're not going to split the report but the bursting engine can be fooled. With that method you can specify the file name to be used via sql
Regards
tim -
Assigning dynamic file name in the FTP adapater in OSB 11g
Hi,
I have got a requirement where I need to FTP a file(put operation) with a name which goes like this
XYZ_<abc>_ddmmyyhhmiss. Here <abc> will be coming from a previous DB adpater query and is a column value so, will be dynamic.
I have created a FTP adapter in Jdev and migrated all the files to Eclipse, created a Business service out of it.
I can see the .jca properties in the JCA Transport tab of the business service.
Now my question is how to set the value of FileNamingConvention field in the business service dynamically which i believe would let me set the file names.
Regards,
Satrajituse the action "set transport headers", setting the value of the jca.file.FileName and jca.file.Directory (if needed) to whatever you want.
This action is available in a Route node only - I believe, not 100% sure -
How to increase the length of file name of the attachment?
hi experts,
i'm using cl_document_bcs->add_attachment to add the PDF file into the email. here, the file name is imported from i_attachment_subject which has a maximum length of 50.
now my requirement is that increase the file name up to 128 characters. kindly give me some clues, please.
Thanks in advance.Hi,
Try using below:
Class : cl_bcs (Business Communication Service)
Method : set_message_subject
Thanks,
Venkatesh -
Issue with reading attachment in sender mail adapter
Hi, I am working on Email to file scenario, where I have to connect to exchange server and take the attachment of the email (xml file) and save it on to PI server. I have configured sender mail communication channel with following details:
Protocol: POP3
Message protocol: XIPAYLOAD
Mail attributes: keep attachments
Module:
1 localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean 1
2 localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail
1 swap.keyName Content-Description
1 swap.keyName Content-Description
1 swap.keyValue attachment,filename="MailAttachment-1.xml"
1 swap.keyValue MailAttachment-1
Also, configured receiver file adapter.
Since I donu2019t have to read mail content , I havenu2019t created any design components in ESR. I have just refrred to dummy namespace, interface (both sender and receiver). in receiver determination, interface determination, sender agreement and receiver agreements.
It was working fine, not sure what changes happened. Now I could see the attachment payload in message monitor.
Under Inbound message->payloads->
MailMessage ( text/xml;charset=utf-8 )
MailAttachment-1 ( text/xml;name="****************")
But the fille that is getting created doesnu2019t have the contents of the attachment (xml file) . It has some other information, shown below:
Directory: ******
Name: ********.xml
=NextPart_002_01CB2C5B.B033B325#
content-type:text/plain;charset="us-ascii"#
content-length:30#
content-transfer-encoding:quoted-printable#
<<**********.xml>>=20#
=NextPart_002_01CB2C5B.B033B325#
content-type:text/html;charset="us-ascii"#
content-length:#
content-transfer-encoding:quoted-printable#
=NextPart_002_01CB2C5B.B033B325 #
Can you please let me know what is going wrong here.using following parameters in module resolved my problem:
MOdule name Type Module Key
AF_Modules/PayloadSwapBean Local Enterprise Bean transform sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail
Module Key Parameter Name Parameter value
transform swap.keyName Payload-Name
transform swap.keyName MailAttachment-1 -
Separate valid mail attachment in sender mail adapter
Hi Experts,
I am working on Mail -> RFC scenario in pi 7.3.
Our channel is able to process new mail having valid attachement (i.e. .xml) file.
But sometime attachment contain invalid format also like pdf, or .txt file with valid attachment.
With these types of mail, channel throw error and do not process it. But my requirement is to separate the valid attachment and process it and delete it from mail box.
What our channel is doing is it skips these kind of mails and only change the status from unread to read.
Regards
JitenderHi Jean ,
I got the same issue too, the Scenario is MAIL ->FILE . Mail Sender Adapter picks up the 1 PDF attachment and saves in network folder successfully but not multiple attachments of a mail.
These are the setting in Module configuration I made:
1. The IMAPS was used in Mail Sender Adapter : imaps://10.192.101.16:993/Inbox
*IP address of the Mail Server was got from the Admin )
2. Ports : 143, 993 are opened for the Mail Server to access for XI SERver ( Raised an Ticket to open Ports of Mail server :NZTxxx.dknz.nzcorp.net)
3. As the attachment was only in PDF : Added swapbean in Module tab as below :
Process Sequesnce :
-Make sure: AF_Modules/PayloadSwapBean Modul key : TRANSFORM is added before sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean
-And under Module Configuration select : TRANSFORM as Module Key and add >
swap.keyName Content-Disposition
swap.keyName Content-Description
swap.keyValue attachment;filename='MailAttachment-1.pdf"
swap.keyValue MailAttachment-1
-IF you get to know how to fetch multiple attachment , Please update.
Thanks,
Vara
Maybe you are looking for
-
HI, first of all: I'm relatively new to LabWindows, working on it during some practical work as a Student (yeah, and sorry for the bad english, I'm from Germany) To the Problem: The first important Information: After having searched for a solution, I
-
[事例紹介]Install MSI payload failed with error: 110 - 指定されたデバイスまたはファイルを開けません.
このようなインストールトラブルの解決事例がありましたのでご紹介します. [問題点] CS5.x Windows 版インストール時.「インストールに問題があります Exit Code:7」エラーが発生. エラーサマリーには以下のエラーが含まれていました. [エラーサマリー抜粋] ----------- Payload: {08D2E121-7F6A-43EB-97FD-629B44903403} Microsoft_VC90_CRT_x86 1.0.0.0 ----------- ERROR: 指
-
Won't display bands that starts with Z
My iPod has the strange, strange problem that it won't display ZZ Top. I can find the songs by searching through Albums, but they just don't show up on the All Artists list.
-
Document icon/link in charracteristic cell url /web reporting
Hi Im trying to use the modify class to build custom urls on characteristic cells of a table in a template the query has 'display document links' checked when i run my template through RSRT2 & break before my characteristics cell c_cell_content is mo
-
The manual says I should find my fax number on the printer screen. I can not find it. Does anyone know where it is?