XI mail adapter - File name should be same in attachment

Hi all,
Here is our scenario:
First part of our scenario involves picking *.pgp (e.g. addressB.pgp) file from partner FTP server and after decrypting put it on local Unix path - This part works ok
In second part, we send this file by mail to static mail receivers as attachment
(Message Protocol - XIPAYLOAD, Use Mail Package and Keep Attachments unchecked)
When we receive this file as attachment, the attachment name is some random value, we need to keep the attachment name same.
i.e. If we are picking and sending file "addressB.txt" then in mail attachment name should be "addressB.txt"
Please suggest how this can be done
Thanks
Girish

Hi Girish,
We have a same scenario where XI is picking file from R/3 directory and sending it as a mail attachment without any mapping,the attachment name was supposed to be same,ex: abc.csv.
I had the same problem,that every time I used to receive a randon attachment name like att34.txt,etc (recipient might be afraid that this is a virus )
To resolve this,please add these modules in your mail receiver:
1     localejbs/AF_Modules/MessageTransformBean     Local Enterprise Bean     Transform
Transform     Transform.ContentDisposition     attachment;filename="abc.csv"
Transform     Transform.ContentType                          text/plain;charset="UTF-8"
If you use this,your attachment name will always be abc.csv.
Kindly let us know if this works for you.
Thanks.
Regards,
Shweta

Similar Messages

  • Source and target directory file name should be same

    Hi,
    How can i generate the same file name in target directory without date and Timestamp.
    for eg., Source File name : yeswanth.txt
    and target File name also : yeswanth.txt
    Note : here source side the file yeswanth.txt is constant and whenever it moves to target directory...should be overwrite.
    Reward points for useful answers.
    Thanks & Regards,
    yeswanth.

    Hi Mugdhal,
    am getting this error when i sent the same file again.
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException:
    Yeswanth.txt: Cannot create a file when that file already exists. : com.sap.aii.adapter.file.ftp.FTPEx: 550
    Yeswanth.txt: Cannot create a file when that file already exists.
    But, here it should be overwrite the existing file.
    Regards,
    Yeswanth.

  • Receiver Mail Adapter File Name

    Hi All,
             I have a scenario file to Mail.
    The rquirment is that everytime the file is picked by the adapter a mail needs to be sent.
    The email should just have the file name of the file that got picked up by the file adapter but there should be no attachment in the email, just the file name  either in subject or in the body of the email.
    No Mapping should be used.
    Can this be done?
    Regards,
    XIer

    Hi,
    You can do the File to Mail scenario as the normal way.
    For Receiver side just consider one field as payload and don't map the other fields from File.
    You can get the File name with the use of Dynamic configuration. Please refer
    Refer this blog. for File to Mail
    /people/varadharajan.krishnasamy/blog/2007/01/09/troubleshooting-soap-message--xi
    File to Mail scenario help
    Refer for getting file name in mapping
    How to include the file name as an XML field
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2664. [original link is broken] [original link is broken] [original link is broken]
    Dynamic  File Name for Receiver File Adapter
    /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii
    Thanks
    Swarup

  • Class name and file name should be same??

    Hi All,
    I am having tweo public classes in a file like this:
    public class A
    // Class body
    public class B extends A
    // Class body
    public static void main(String args[])
    // Function body
    when I compile its giving the following error:
    B.java:1: class A is public, should be declared in a file named A.java
    Why it is so.whats wrong in this.
    Thanks in advance,
    Jana.

    In C you have to write a "make-file" for your project (or it's written for you).
    In java there are no "projects". If the JVM needs a class it is looking for a file with this name in the classpath.

  • Receiver file name should contain the same plant value as  sender filename

    Hi All,
    I have a requirement in PI 7.0 and the scenario is synchronous which is as follows:
    - XI will read a flat file which has the naming convention Plant_100.txt where 100 is the plant number , after reading the file XI will trigger standard BAPI call to ECC system.
    - ECC system will return an response message back to XI , XI need to need write this message in to a log file and the file name should be Plant_100_logs.txt.
    - Here plant value 100 is neither passed to ECC system nor this value will be returend back from ECC system . So , is there anyway where we can make sure that plant value can be added to the log file without using an BPM in between ??
    Regards
    Vinay P.

    Hi,
    Using Dynamic configuration in Message mapping you can read the source file name and creta the target file name as same as source file.
    For BAPI call in Mapping you can use RFC lookup.
    So crete a scenario FILE to log FILE
    In mapping using RFC lookup make a BAPI call.
    And use dynamic configuration to set the file name.
    Refer this
    http://www.****************/Tips/XI/ASMA/Index.htm

  • Why public class name should be same as the java file name

    Hi,
    I would like to know, why public class name should be same as the its java file name. Iam in the process of finding the answer to this question. Can someone help me out in finding the explanation.
    Thanks in advance,
    Manoj

    This is a requirement of the Java reference compiler released by Sun. I have used compilers that did not require this, but most seem to follow the reference compiler (which is a very good idea). I am NOT sure if this is specified in the Java Language Specification. Some of the other regulars who are more familiar with the JLS than I may be able to tell you.
    ? {?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • File name should change by selecting the radio buttons

    Hi all,
    PARAMETERs: p_file LIKE rlgrap-filename.
    PARAMETERS: p_app RADIOBUTTON GROUP rg DEFAULT 'X',
                             p_pre RADIOBUTTON GROUP rg.
    this is to download the ITAB data to presentation and application servers depending upon the radio button selected.
    if i select p_pre , then default download path is : 'C:/ download.txt'.
    if i select P_app , default download path is : '\usr\sap\EBG\SYS\profile\DOWN.TXT'.
    how the file name should change by selecting the radio buttons ?
    Thanks
    KR

    Hi,
    DATA: c_x VALUE 'X'.
    selection-screen begin of block input with frame title text-000.
    parameters :desktop     radiobutton group rg_f user-command rg_f,
                       in_file type ibipparms-path modif id ps DEFAULT 'C:/ download.txt',
                menu     radiobutton group rg_f ,
                       sys_file type ibipparms-path modif id as default  '\usr\sap\EBG\SYS\profile\DOWN.TXT' .
    selection-screen end of block input.
    at selection-screen output.
      if desktop is initial and menu is initial.
        desktop = c_x.
      endif.
      perform f_toggle_finputs.
    form f_toggle_finputs.
    loop at screen.
        if screen-group1 = 'PS'.
          if desktop = c_x.
            screen-input    = 1.
    *         sys_file = c_server_path.
          else.
            screen-input    = 0.
          endif.
        endif.
        if screen-group1 = 'AS'.
          if menu = c_x.
            screen-input    = 1.
    *        clear: in_file.
          else.
            screen-input    = 0.
          endif.
        endif.
        modify screen.
      endloop.
    endform. "f_toggle_finputs
    Hope this helps u.
    Thanks.

  • The printing of .pdf file from Project 2013 stops when the file name should be written. Project 2013 crashes. Does someone know what is wrong between Project 2013 and Adobe Acrobat 9?

    The printing of .pdf file from Project 2013 stops when the file name should be written. Project 2013 crashes. Does someone know what is wrong between Project 2013 and Adobe Acrobat 9?

    The Acrobat 9.x product family passed into "End of Support" mid-year of 2013.
    Acrobat 9 support of MS Project via PDFMaker stops with Office 2007.
    For Office 2013 support you must use Acrobat XI (11.0.1) or newer. 
    A good to have reference:
    https://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html
    Acrobat Pro and Standard DC are what are currently available for purchase. 
    Be well...

  • Proxy class name should be same in all env. Correct ?

    Hi Friends,
    We have ECC development, quality and production system.  We already did the proxy settings in ECC dev and it is connected to PI. It is fine.
    In SPROXY, we created class for our outbound interface in ECC dev system. While the class is created we saved this in package (to be transported to ECC quality).
    We will do SPROXY config in ECC quality system to connect to PI.
    PI system is same for both development ECC and quality ECC.
    Now, my doubt is, 1) do we need to create again class through SPROXY in ECC qulaity for the same OB interface ?
                                 2) If it is 'yes', is it required to transport the class to from ECC dev to ECC quality ?
    My understanding is a) we need to create class in quality ecc (SPROXY). b) The class name should be same as in ecc dev 3) It need not required to transport the class from ecc DEV to quality since we did not do anything for the class.
    Can you kindly clarify friends.
    Kind regards,
    Jegathees P.

    I do not get your points.
    > I agreed your point.  My query is once the proxy class transported into QUALITY, how the call/execution will happen ?
    The same way as in dev.
    > It means how it understands it needs send data to XI system when this class is called through Z abap program in Quality.
    Yes.
    > How this is differentiated from normal class call & proxy class call?
    There is no difference. You call the proxy class the same way as any other class that you create with SE24.
    The only difference is, that this class is generated.
    So the whole transport mechanism applies for the ABAP proxy as well.
    In our system I put ABAP proxy and calling program in same package and transport them together. But this is up to you.

  • My client requirementis: same file name should be in target system

    I am getting one file from source system the file name is empdetails.txt. I want to pass the same file name to the target system how we can implement this requirement.

    The below blog will also useful
    XI: The same filename from a sender to a receiver file adapter - SP14
    you can also refer to SAP Note 821267 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 / PI 7.3 File Adapter
    regards,
    Harish

  • 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
    Jain

    See 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.

  • File name should be with sequence

    Hello Experts,
    I am working on file(NFA) to SFTP scenario with out mapping . I am getting file from AL11 folder with the name of XXXX_20150404033752.csv and receiver side (in PI) im getting file name as XXXX_20150404-040420-142.csv. But it should be 20150404033752_001_csv with out "-" and it should be sequence of 001, 002,... .
    For example, if the files were given a name corresponding to a time stamp, the first file might be called 20150404040420_001.  The second would be called 20150404040420_002.  These files were both named after the date and time stamp April 04, 2015 at 04:05:02.
    Without doing any mapping can I do this?
    Thanks in advance,
    Reddy.

    >>>I am working on file(NFA) to SFTP scenario with out mapping . I am getting file from AL11 folder with the name of XXXX_20150404033752.csv and receiver side (in PI) im getting file name as XXXX_20150404-040420-142.csv
    If you want to append a counter to the source filename
    enable ASMA for file name in sender and receiver channels
    Set the file construction mode in receiver channel to counter
    under counter def, maintain "_" as prefix and counter to 000
    >>For example, if the files were given a name corresponding to a time stamp, the first file might be called 20150404040420_001.  The second would be called 20150404040420_002.
    Do you expect two files with the same timestamp? There should be some difference in the filename right as you can't have 2 files with samename.
    If appending the counter doesn't work, either you have to go for a java mapping/AM to set the file-name as you want.
    Dynamic file name for pass-through scenario - Process Integration - SCN Wiki

  • 11.1.1.3 FDQM adapter files name..

    For Hyperion 11.1.1.3 FDQM which adapter files should I use?
    Please let me know the .xml & .dll files name...
    Can anybody support me giving the Link of OBE Hyperion FDQM 11.1.1.3.0 installation & config tutorials page?
    Till now I have used FM11x-G5-C.xml for financial management, FM11i-G5-C.xml for IC and fdmFM11xG5C.dll to register adapter.
    Edited by: Rupam M on Jul 21, 2010 12:39 PM

    A few notes here.
    First, this question has been asked a number of times over the past few months. Please search and review the forum posts and then post a question if the existing answers do not help you solve your problem.
    Second, please open a new thread when you have questions. The people answering questions here do so to be helpful but also we are aware of the point system that recognizes our efforts (http://forums.oracle.com/forums/ann.jspa?annID=1184). By using another existing post, you are not able to assign points or flag a question as correctly answered. This does not help the users of this forum that are asking questions identify correct answers. Likewise, those answering the questions are not rewarded for their time or knowledge.

  • Sender File Adapter : File Name Determination

    Hi All,
    My Scenario :
    1) Im my scenario i need only the "FileName" of the File when picked up by the Sender File Adapter.
    2) Rest Content of the File need not be in the XML file format.
    Now what i did was developed "File Adapter Module " to get the "FileName" when picked up by the Sender File Adapter.
    Outcome : When i put the developed module at first and put the file in specified folder allowint the Sender file Adapter to pick up. Now Everything is fine working when one kind of File is placed as per my Content Coversion paramaters.
    Actual : My Client would place file of any kind (.jpeg -> Mostly , gif ) i need to get only the file name in the Outbound interface , which i would split it further to my Target Interface.
    How could i achieve this , when i took away this content conversion , in sxmb_moni it shows error.I need only the filename in the Outbound not the Content , moreover the hit is i donot know what could be content of my file as it could be different and varing , so i could not set particular content conversion paramters:
    Second Question:
    Now my outbound XML interface looks as below when i test with a file , with proper content conversion paramerters:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <MT_DMS_FINAL>
    - <Record>
    - <Row>
      <FirstName>2323_eer_rtr</FirstName>
      </Row>
      </Record>
      <FileName>d:\mdmtest\srinivaS\padusrini.txt</FileName>
      </MT_DMS_FINAL>
    Well i have designed in my MI only FirstName , how to capture this element "FileName" which i can use it in mapping , if i have to write any UDF to capture it ,please guide me.
    thx in advance for u r help
    with regards
    Srini

    Hi Guys ,
    Can i use File Content Conversion for .pdf document , my pdf doc content is not known, means it"s a complete info doc.I may get .jpeg any picture or drawing.
    I thought i can use below file content conversion paramters:
    Document Name : MT_DMS_FINAL
    RecordSet Name : Record
    RecordSet Structure : Row,*
    Row.fieldNames - FirstName
    Row.fieldSeparator - ;
    Row.processFieldNames - fromConfiguration
    Row.additionalLastFields - ignore
    Row.missingLastfields  -  ignore
    Now i put a pdf doc of unknown content , and my assumption was some set of charater would be dumped in  XML and rest would be ingonered which is least bothered part in my scenario , unless i get the filename from runtime ot Adapter module developed
    But in RWB CC monitoring i see below error :Error: org.xml.sax.SAXParseException: Illegal XML character:  &#xb;.
    Any views on this , can any one help me out with the above requirment. Hope u guys got wat am trying to put out here
    thx in advance for u r help
    with regards
    Srini

  • How to get outbound ftp adapter file name

    All,
    I am writing an ftp adapter sending out files. The file name is defined as po_%yyyyMMDD%.xml format. However, I need to save the filename into a database after each file is sent out. How could I get the filename after invoking this service? It is on soa 10.1.3.3.
    I tried to create a filename variable based on outbound message type and pass that long in the invoke header. But cannot get the name back. Any idea?

    Hi,
    Go thro' the URL:
    http://abhishek-soablog.blogspot.com
    Cheers,
    Abhi...

Maybe you are looking for

  • HT1198 unable to share libraries with multiple users

    I read thru and followed directions on how to share using a disk image, I was able to copy my iphoto library to it and select it to open on my account, I set permissions to read and write for both other users and ignored ownership on that driver. it

  • Can I use one of those small DVD's in a mac??? Will it slide in the DVD re?

    Can I put in one of those small DVD's in my Mac Computer?? I think the disc is about 2 inches or so. Or do I have to use a standard size?? If I can, do i just put it in the same as a usual DVD?? Its just a regular old Mac Home Computer with the DVD o

  • Any way to get prior (non-iOS 6) version of iMovie?

    Just saw a demo of iMovie and really liked it. I headed to the iTunes app store and was seriously disappointed to find that I could only use iMovie if I updated to iOS 6. That isn't going to happen. I use Google Maps every day and will switch to an A

  • Forms6i - Object Libraries

    Having "inherited" a Forms6i module from a departed developer, I obtain a "FRM-18108 Failed to load the following objects ..." error when opening the form in Forms Builder. The file 'fees.olb' referred to by the above error message is actually presen

  • How do I get rid of an overlay on the Galaxy s5 phone

    All of a sudden an overlay appeared on my phone and I cannot figure out how to get rid of it. Any help would be appreciated.                   Thanks,                      Mike Lane