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

Similar Messages

  • When bates numbering a .pdf in XI, how can I change the file name to include the bates number AND its name?  I know under file output, there is an option for either/or.  I want both.  Thank you.

    when bates numbering a .pdf in XI, how can I change the file name to include the bates number and the file name?  I know under "file output: it's either/or.  I need both.  Thanks!

    Long ago I wrote a little demo using the touch command. Check out the following thread:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=25128#M25128
    LabVIEW Champion . Do more with less code and in less time .

  • 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

  • How do I change a file name of a photo

    I am new to the Mac and running Yoesomite. I wanted to know can I change the file name of a photo in iPhoto.  If not, then is the process to export the file to the desktop and then change the file name using cmd i.  I used to be able to do this in Windows easily but now I am not sure how to do this on a Mac.

    You can take the photo you need from iPhoto Library in Pictures. Click it with right mouse button and choose Show Package Contents. In that folder that opens, choose Masters and now you can find the photo that you needed, but it will take some time as there are many folders and some may be empty. Copy that photo to Desktop and do what you want from that point.
    Don't do that.
    It's utterly unnecessary, slow and difficult and worse, risks dataloss.
    Use the simple and supported ways.
    Export using File -> export, or use a Media Browser.
    When uploading to Wordpress there is no need to rename the file. Just upload it from the Media Browser (*see below) and you can title it in the Wordpress dialogue.
    *For help accessing your photos in iPhoto see this user tip:
    https://discussions.apple.com/docs/DOC-4491

  • How can i change upload file name?

    hi
    I performed a upload Jsp page by OJSP file access in jdeveloper,and it can upload file!
    but i want to change uplaod file name!
    How can i do?
    Any help will be appreciated!
    Thanks
    Jiawei Zhao

    My questions are
    1) when use oreilly package to do file upload , it looks like i line of code is enough to store the upload file in the
    file direction.
    MultipartRequest multi =
            new MultipartRequest(request, dirName, 10*1024*1024); // 10MB
    why some example still use FileOutputStream?
    outs = new FileOutputStream(UPLOADDIR+fileName); 
        filePart.writeTo(outs); 
       outs.flush(); 
      outs.close();
    2) can I rename the file name when I use oreilly package?

  • How can I change the file name of an mp3 file to it's ID3 name?

    I prefer to alter the ID3 names of my music files to include: ARTIST - Track number - Tune Name. I do this in iTunes, by individually selecting each file, and Apple+I, then change the INFO/NAME tag.
    But the same file has a file name and an ID3 name then.
    Is there any script or APP that will allow me to BATCH convert all music file names to the ID3 name?

    > Do you have iTunes prefs > Advanced - Copy files to iTunes
    > media folder when adding to library checked?
    > (With above checked, when you add to iTunes, it makes a copy
    > of teh file in the iTunes folder and iTunes does not do anything
    >further with the original)
    Yes, how do you think they get there if I double click them in finder and list themselves and start playing in iTunes?
    > You are looking at the file in iTunes not the original file
    > (which is not in iTunes) correct?
    I have talked about both if you will read the thread.
    > In iTunes, right click Show in Finder
    Read the thread carefully, you are missing something.
    > Uncheck Keep iTunes media folder organized,
    > then click OK. Then go back and recheck it.
    Has no effect whatsoever.

  • (How) can I change multiple file names in a folder?

    My new scanner creates file names with with long, repeated numerical sequences.  Can I edit (shorten) the names in batches?

    Hey man, no problem.
    There are several sites you can look at that will give you a good idea on how to use Automator, such as:
    Mac 101: Automator
    Automatedworkflows.com tips and videos
    (This is the site where I learned everything really, and this site also provides 3rd party actions that have greately helped me with better workflows)
    Automator.us videos
    Good luck man.

  • How can we change the file name character limit on PSE 7?

    When I save for web I need more than 26 characters in the file name. Can you please tell me how to turn this Mac compatibility option off? Thanks.

    Save the file with a short name and rename afterward.
    Juergen

  • How to get email attachment file name?

    Hi,
    I have a macro that executes when the user sends an email. In this macro, I want to get the subject of the email itself and the titles of all of its attachments (be they documents or other attached emails).
    To get the email subject, I use Groupwise.ComposingItem.subject
    To get the attachment filename, I use Groupwise.ItemAttachmentGetDisplayName("X00", <attachment_index>)
    However, this call only seems to work for document attachments. For other emails attached to the current email, this call returns "Mail Attachment" instead of the name of the attached email. How can I get the name (i.e. subject) of the attached email?
    Thank you,
    Monika

    Hi Experts,
    i try useing the DMS_KPRO_READ prog as you said above.
    The problem is that i need to retrieve list  (range) of documents and than save them.
    as it written now , i can do it just about one file.
    if u have any helpfull advice it will be real kindly.
    Thanks alot.
    Yuval.
    Edited by: student student on Nov 16, 2009 10:20 AM

  • How do i change multiple file names to the same name w/ a number value?

    I use Windows machines and Macs at my office.  In Windows I can take a group of files, let's say JPG's of a factory tour, and when I upload them into Windows, I can "select all", right click and chose "rename".  I rename the first file "102511 Widget Tour (1)" and press "enter" Windows automatically renames all the JPG's to "102511 Widget Tour" and progresses the number in the parentheses.  In OS X there is not even a "rename" function when multiple items are selected.  I've looked at using Automater, but it seems that I would have to construction a new action each time.  Any ideas?

    If you have Aperture it can do it for you.
    Alternative:
    I suggest a third part app: Renamer
    http://incrediblebee.com

  • Changing the file names of photos

    Hi,
    ive searched the topics on here already and googled and still no luck, so I'm hoping someone on here may be able to help please.
    I have an online shop (based on zencart) and I can't upload more than one photo from my ipad, because when I try they all seem to have the same file name and therefore the new photo overwrites the old photo (causing the products I create on my ipad to all have the same photo).  Any ideas how I can change the file names of the photos, or any other way of sorting it out?
    I hope that makes sense, Thanks in advance.

    Anyone :(

  • DataPump Problem. Automaticaly change dump file name.

    Deal All
    I have create a plsql block and which will backup the database using datapump.
    He is working fine in scheduler but he generates error because it doesnot change
    file name every time. Against the following he always generates
    'EXPORT%U.DMP' = EXPORT01.DMP file name.
    Please tell me how i can change every file name automatically.
    Thanks
    Abid

    Hi,
    I have 10.2.0.4 db on windows and want to have a full datapump export every night and want a unique file name but this does not work for me. The script just does not execute. I have even tried this from the command line
    par file is
    DUMPFILE='expdp_testdb_full.'||to_char(sysdate,'YYYYMMDDHH24MISS')||'.dmp'
    JOB_NAME=expdp_testdb_full
    LOGFILE="expdp_full_testdb.log"
    DIRECTORY=DATAPUMP_DIR
    FULL=Y
    ESTIMATE=STATISTICS
    CONTENT=ALL
    PARALLEL=20

  • 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,
    Divyesh

    Hi 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 attachment file name changes

    when i send mail with attached file having english file name, mail receiver can receive it as correct file name.
    But if having korean file name(ex: 우리나라.doc), recipient receives it as different file name(ie 우리나라.라.doc).
    how can i solve this problem?

    Is the reciever using windows? If so you can choose Edit > Attachments > Always Send Windows Friendly Attachments.

  • Changing the file name dynamicallly in file Adapter

    Hi i want to change the file name directly from Java Mapping in the file adapter
    for this i have written this code
    DynamicConfiguration dynamicConfiguration = (DynamicConfiguration)map.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
                   DynamicConfigurationKey keyFile = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
                   DynamicConfigurationKey keyDir = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
                   dynamicConfiguration.put(keyFile,fileName);
                   dynamicConfiguration.put(keyDir,outputpath);
    but it gives a null pointer exception at dynamicConfiguration.put(keyFile,fileName);
    please suggest.
    regards
    Nilesh Taunk.

    Hi Nilesh,
    If your requirement is to create , the file name dynamically for your receiver file adapter, you can do so using your <b>FILE ADAPTER CONFIGURATION</b> itself, and need not go for any JAVA Mappping / Java Code at all.
    The dynamic filename generation concept is as follows.
    In your filename field in the receiver file adapter, just give a variable with <b>%</b> symbols. (eg: %file% ).
    Now, under the option <b>Variable Name Substitution</b>, you can give how the value has to be created.
    <b>It can be your interface name, sender service name, etc or it can be some value dynamically from your payload.</b>
    For the former, your give
    <b>message:interface_name</b> ,etc
    and for the payload part you give,
    <b>Payload: "your element root which u wanna acecss"</b>
    Just check this link out,
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    And read the contents under variable substitution and it will help you understand the concepts better.
    Also, in your FILE Adapter under the option FILE CREATION MODE, you have options like,
    1.Add Counter,
    2. Append
    3. Create
    4. Add Time Stamp
    If you have any clarifications on this approach, do get back.
    Regards,
    Bhavesh

Maybe you are looking for

  • Printing LAST page in SAP script on the back side.

    Hi , I have a problem with the printing of the LAST page on the reverse side of the form, when done with a vendor. At a time we print many vendors together. So, when done with printing of a vendor it needs  to print his address on last page, reverse

  • MM Purchase order Workflow  links

    Dear friends,         I was working on MM Purchase order workflows.         Please specify Links for exploring MM workflows. thanks and Regards,

  • Locked table columns in JTable?

    Does anyone know if a JTable can implement locked columns? By which I mean, I'd like to nominate 1 or more columns that remain locked to the left (or even right) of the table display and don't scroll out of view when scrolling horizontally. I can ima

  • Last table line in a SAP GUI Script

    Hi All, Does anybody know, if it is possible to find the last line of the table on the right hand side of the structure editor in eCATT (tr. SECATT) (http://help.sap.com/saphelp_47x200/helpdata/EN/2a/121e3bd711bb04e10000000a114084/frameset.htm) I use

  • Feature request...where to post them?

    Hi everyone! I have seen a friend's iPhone (which was jailbroken), which had the ability of turn-down-to-mute (when the iPhone is ringing, you turn it facing down, and it mutes automatically). It was some app named mcool iphone or something like that