How to keep same sender file name for receiver mail attachement

Hi,
  i am working with File to Mail scanario. There i want to pick a flat file from native file system and then send it as email attachment. Now i am able to send the file but the flat is getting converted as an xml file. is there any method to keep the same sender file name and type for receiver mail attachment. i am not using any mail package. i am using XI payload and keep attachments.
Thanks in advance.
-Siva

Hi,
Yes,With out using the mail package u can send the Mail Attachments to the receiver side,
In that case no need of Integration Repository objects.
Chck this links.
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
/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/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
If u dont get ur requirement then let me know ur Mail id i will send u a Doc.
Regards,
Phani
Reward points if Helpful

Similar Messages

  • How to give a dynamic File Name for Receiver File/FTP Adapter.

    Hi Experts,
        I have one scenario in which we are creating a flat file of IDOC which is coming from R/3 & sending it to FTP location. For this we have configured Receiver FTP adapter with File Name Scheme as "NT.out"  & in File Consturction mode i have given as "Add Time Stamp".
        therfore while creating a file it is creating as NTyyyyMMdd-HHmmss-SSS.out
    where as my requirement is only to to add Time & not the Date. (NThhmmss.out)
        How to do this ?
        for your info we are using ABAP Mapping.
        Pl help me
    Regards,
    Umesh

    Hi Umesh,
          Add one more field to your target structure for your file name and populate that field as per your requirement like NTyyyyMMdd.out. In receiver communication channel use Variable subtiution option and give the refrence of Payload and file construction mode set as create.
    And refer the below weblogs for Variable Subtiutuion File Name Scheme
    /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i - Dynamic File Name Part 1
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii - Dynamic File Name Part 2
    Hope this way would be solve u r problem.
    Cheers
    Veera
    >>>Reward points, if it is needful

  • Dynamic  File Name for Receiver File Adapter

    Hi All,
    How can we use dynamic name for Receiver file adapter?
    Can anyone help.
    Thanks in Advance
    Chemmanz

    Hi Chemmanz,
    The dynamic filename generation concept is as follows.
    In your filename field. just give a variable with % symbols. (eg: %file% ).
    Now, under the option Variable Name Substitution, you can give how the value has to be created.
    It can be your interface name, sender service name, etc or it can be some value dynamically from your payload.
    For the former, your give
    message:interface_name ,etc
    and for the payload part you give,
    Payload: "your element root which u wanna acecss"
    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.
    If you have any clarifications, do get back,
    Regards,
    Bhavesh

  • How to set the default file name for upload

    Hi All,
    I have the following BSP app for a file upload of a csv file. I want the page when displayed show the default file name to be loaded as c:\db1\currentPM.csv
    What changes do I need to make to get the default file name in the BSP app.
    Thanks
    Karen
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content id               = "content"
                   design           = "classicdesign2002design2003"
                   controlRendering = "sap"
                   rtlAutoSwitch    = "true" >
      <htmlb:page title="File Upload " >
        <htmlb:form method       = "post"
                    encodingType = "multipart/form-data">
              <htmlb:textView text   = "File:"
                              design = "STANDARD" />
              <htmlb:fileUpload id          = "uploadID"
                                onUpload    = "UploadFile"
                                upload_text ="Upload"/>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    On Input Processing
    event handler for checking and processing user input and
    for defining navigation
    DATA: EVENT TYPE REF TO IF_HTMLB_DATA,
          DATA TYPE REF TO CL_HTMLB_FILEUPLOAD,
          LV_OUTPUT_LENGTH TYPE I,
          LV_TEXT_BUFFER TYPE STRING,
          FILE_NAME TYPE STRING,
          FILE_PATH TYPE STRING ,
          INTERN TYPE TABLE OF  ZALSMEX_TABLINE.
    DATA: LT_BINARY_TAB TYPE TABLE OF SDOKCNTBIN .
    TYPES: BEGIN OF TY_TAB,
           FIELD1(2) TYPE C,
           FIELD2(2) TYPE C,
           FIELD3(2) TYPE C,
           FIELD4(2) TYPE C,
           FIELD5(2) TYPE C,
           END OF TY_TAB.
    DATA:  WA_TAB TYPE TY_TAB,
           IT_TAB TYPE TABLE OF TY_TAB.
    TYPES: BEGIN OF TY_LINE,
              LINE(255) TYPE C,
           END OF TY_LINE.
    DATA:  WA_LINE TYPE TY_LINE,
           IT_LINE TYPE TABLE OF TY_LINE.
    EVENT = CL_HTMLB_MANAGER=>GET_EVENT_EX( REQUEST ).
    IF EVENT IS NOT INITIAL AND EVENT->EVENT_NAME = HTMLB_EVENTS=>FILEUPLOAD.
      DATA ?= CL_HTMLB_MANAGER=>GET_DATA( REQUEST = RUNTIME->SERVER->REQUEST NAME = 'fileUpload' ID = 'uploadID' ).
      FILE_NAME = DATA->FILE_NAME.
      FILE_PATH = FILE_NAME.
      IF DATA IS NOT INITIAL.
        CALL FUNCTION'SCMS_XSTRING_TO_BINARY'
         EXPORTING BUFFER = DATA->FILE_CONTENT
         IMPORTING OUTPUT_LENGTH = LV_OUTPUT_LENGTH
         TABLES BINARY_TAB = LT_BINARY_TAB .
        CALL FUNCTION'SCMS_BINARY_TO_STRING'
        EXPORTING INPUT_LENGTH = LV_OUTPUT_LENGTH
         IMPORTING TEXT_BUFFER = LV_TEXT_BUFFER
         TABLES
         BINARY_TAB = LT_BINARY_TAB.
        IF SY-SUBRC = 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        SPLIT LV_TEXT_BUFFER AT CL_ABAP_CHAR_UTILITIES=>CR_LF INTO TABLE IT_LINE.
        IF SY-SUBRC = 0.
          LOOP AT IT_LINE INTO WA_LINE.
           SPLIT WA_LINE AT CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB
            split wa_line at ','
            INTO WA_TAB-FIELD1 WA_TAB-FIELD2 WA_TAB-FIELD3 WA_TAB-FIELD4 WA_TAB-FIELD5.
            append wa_tab to it_tab.
          ENDLOOP.
        ENDIF.
      ENDIF.
    ENDIF.

    Also, I missed another point.
    In the folder c:\dbdata I have a number of CSV files on the user frontend. I would like the BSP application to get the list of files in the folder and process them one after the other. How can I get the list of files on the folder in the user PC and how to process them one after the other.
    I want the form to display only the default folder and once I press on upload it must process all files and display the status of processing on the same page.
    Please kindly share ideas how I can implement this app.
    Thanks
    Karen

  • How to keep original Uploaded File Name in SharePoint Document Library?

    HI,
    I have document library. After Uploaded the file in document library. I want to keep the file name in some other filed.
    Why because in future i may change the file name in document library so in order to know the original name of the file.
    I want to do without any workflow. Is there any other default column like that?
    How could i achieve it?
    Thanks & Regards
    Poomani Sankaran

    Hello,
    Here is list of operations for file element, and you can save it in library column:
    http://social.technet.microsoft.com/wiki/contents/articles/22156.sharepoint-2010-a-complete-list-of-spfile-operations-using-ecma-script.aspx
    http://sprider.org/2011/12/13/sharepoint-ecmascript-to-adddeleteupdateget-list-items/
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to get the trace file name for current running application?

    Hi, I want to know if it is possible to get the file name directly for current running application instance which is launched by javaws.
    There is a property "deployment.user.logdir" tells the log directory, it would be great if a file name property
    is available. something like "instance.trace.file".
    Our application wants it because we would like our client send use the application log by clicking a "send error"
    button, the codes finds the trace file and compress it and send it by using a smtp server.
    In 1.5, we can do it by using a shell program.

    I found other asked it before, but I tried to set both properties, but neither works. my sun JRE version :java version "1.6.0_04"
    <property
    name="deployment.javaws.traceFileName"
    value="abcfefsfdsf"/>
    <property
    name="deployment.javapi.trace.filename"
    value="235235235"/>
    But it always write to one trace file with name lik javaws63645.trace

  • Same sender file name with a different extension

    Hello Friends,
    My scenario is I have an xyz.xml file coming and i need to have the same file name in the receiver but with a different extension as xyz.csv and the source file name will not be the same, it will be changing.
    Can you please help me on this.this is a bit urgent to me.
    Thanks in advance.
    Regards,
    Kumar

    Kumar,
    Write <b>UDF</b> with <b>no input</b> parameters.
    DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
        “http://sap.com/xi/XI/System/File”,
        “FileName”);
    String fname = conf.get(key);
    StringTokenizer st = new StringTokenizer(fname,".");
    String[] name = new String[2];
    while(st.hasMoreElements())
    for(int i=0;i<1;i++)
    name<b>[</b>i<b>]</b>=st.nextElement();
    String finalname = name[0]+".csv";
    conf.put(key,finalname);
    <b>Mapping Logic</b>
    UDF -
    > Target Rootnode.
    Make sure that u checked the Adapter specific message attributes in both comm.channel.
    If you have doubts reply back.
    Best regards,
    raj.
    Message was edited by:
            Raj

  • How do I find correct file name for Terminal?

    I am using the example code: sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m with Terminal. The file is ubuntu.dmg but it claims "no such file or directory." How do I find the correct file name?

    If possible, drag the dmg into the Terminal window instead of typing out its path.
    (67069)

  • How do I denote a file name for submitted XML form data?

    Hi guys, is there a way to change the submitted XML file name [when emailing form data] to something other than the cryptic string livecycle uses e.g. _e8hfydsh55hsksdf.xml
    Thanks for any help, cheers Dyr

    When you preview a PDF from inside designer, it uses a temp filename for the doc and therefore when you test xml submit etc you will get the 'e.g. _e8hfydsh55hsksdf.xml' as a filename. However if the form is saved locally (e.g. MyForm.pdf) and you use Reader / Acrobat to open the PDF, then the email's subject message as well as the xml file will be MyForm.xml. Does that help you?

  • How can i get message id as file name in Receiver Mail Adapter

    Hi All,
               We are working on file to mail scenario. Client requirement is " Attached file name should be the message id" How can we achieve this.
    Thanks & Regards,
    Purshothamm

    Hi,
    To have the file name as message id, I think the below blogs can help you…
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii
    Regards,
    Vijay N

  • Condition check (based on sender file name) at receiver determination step

    Hi,
    My scenario is File to AS2 (Sender side file adapter and receiver side AS2 adapter)
    We have 5 customers, but the source location is same to pick the files, Here we are not using any ESR objects.
    Based on the source file name PI need to determine to whoom this file need to send at receiver determination step
    Craeted objects
    1 Sender CC,
    1 Sender agreement,
    1 Receiver determination
    5 Interface determinations
    5 Receiver agreements
    5 Receiver CCs.
    Could you please provide me your valuable inputs.
    Thanks
    Ramesh

    Hi Venkataramesh,
    I understand your scenario as, picking files (different file naming standard for different target customer) from one source folder. Based on file name, that payload should be sent to corresponding target customer. You have mentioned u201CHere we are not using any ESR objectsu201D. I can see two reasons for this decision
    1. PI is used to route the messages, i.e., no need to transform the payload. OR
    2. Files can binary files like PDF, ZIP, JPG, GIFu2026
    Now I can see two possible solutions
    1.     Simple solution, as proposed by u201CPrabhu Rajesh Janardananu201D, make it into 5 different scenarios  (5 sender channels).
    2.     Bit complex solution, only one sender channel, using extended receiver determination
    Step 1:- In Sender File channel check u201CAdapter u2013 Specific Message Adapteru201D in Advanced tab. File Name should be checked.
    Step 2:- In Receiver Determination, Select Type of Receiver Determination as u201CExtendedu201D. http://help.sap.com/saphelp_nwpi711/helpdata/en/48/ce2a423a8e5430e10000000a42189b/frameset.htm
    Step 3:- Do a Graphical Mapping (use it Operation Mapping in Receiver Determination).
    Step 4:-
    Source and target of graphical mapping will be same (below), because you donu2019t want to access input payload (it can be XML, flat file, JGP, GIF and you donu2019t have its structure).
    <Receivers>
       <Receiver>
          <Party agency="" scheme=""></Party>
          <Service></Service>
       </Receiver>
    </Receivers>
    Step 5:- Write a UDF in Graphical mapping as below. http://help.sap.com/saphelp_nwpi71/helpdata/EN/43/03612cdecc6e76e10000000a422035/frameset.htm Pay attention to method declaration
    public String Determine_Receiver( Container container) throws StreamTransformationException
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(u201Chttp://sap.com/xi/XI/System/Fileu201D,u201CFileNameu201D);
    String valueOld = conf.get(key);
    //Put your logic here
    if (valueOld.equal(u201Cuser1u201D)) {
    return u201Cuser1u201D;}
    if (valueOld.equal(u201Cuser2u201D)) {
    return u201Cuser2u201D;}
    if (valueOld.equal(u201Cuser3u201D)) {
    return u201Cuser3u201D;}
    Step 6: Now use this UDF to map to u201CReceiveru201D and u201C Serviceu201D.
    This solution need more fine tuning.
    Regards,
    Raghu_Vamsee
    Edited by: Raghu Vamsee on Jan 8, 2011 5:56 PM

  • Variable file name through Receiver mail Communication channel

    I need to send a file through receiver communication channel   with the following name ( YYMMDD schema)  . The YYMMDD is current date .  I know how to create these file names throug FCC ( file communication channel) , I tried in the same manner to create this file through Receiver Mail CC , but it did not work  .  If you have any ideas , can you please share with me ?
    ABC_MMYYDD.TXT
    Thanks.
    Ritvik

    Hi Ritvik,
    Also, Please look at this link and see if it helps you. It is generating variable file name through a UDF
    Re: Problem in dynamically file name generation procedure
    Best Regards

  • How to setup XI (specifically for receiving mail+attachment)

    Hi,
    I am new to XI. After having had a training for 5 days I have my first assignment and immediately I face a lot of problems (as expected....:-))
    Situation is as follows. I have to connect 2 non-sap system via XI. External system 1 is a mailserver that sends a mailmessage + attachment to XI. XI has to read the message, convert it to a customer-specific XML and send it to external system 2. I already made the following entries:
    SLD:
    - 2 products (mailserver + external system);
    - 1 softwarecomponentversion (or should I have 2? 1 for mailserver and 1 for external system?)
    - 2 technical systems
    - 1 business system
    IR:
    - 1 integration scenario with 3 swimming lanes (first with activity SendMailMessage on mailserver, second with IntegrationProcess on external system with 2 activities (ReceiveAbstractMailMessage/SendAbstractXmlCustomerMessage), third with activity ReceiveXmlMessage on external system)
    - 1 datatype for target-structure
    - 1 messagetype for target-structure
    - 1 external definition (mail XML)
    - 4 message interfaces: MIIA for incoming mailmessage, 2 MIAA for abstract interface, MIOA for outgoing XMLmessage to customer)
    ID:
    - 1 business system
    - 2 communication channels
    - 1 interface determination
    - 1 receiver determination
    - 1 sender agreement
    Now...my questions...:
    - first of all...does the above makes some sence :-)?
    - do i have to create 1 or 2 software component versions? My idea is 1, but i am in doubt if I have to create a specific SCV for both products)
    - how do I configure the communication-channels?
    - General problem: I am facing problems configuring the ID and SLD so every help is welcome.
    Lot of questions, I really hope somebody can help me out here....
    Thanks in advance!

    Hi, JW:
    Do not worry, everyone in this forum has their own starting stage.
    Regarding your questions:
    - in the sender SMTP SCV, I also have to create a MT for the mailpackage?
      A: No, if you use mail package, you do not need create message type manually, the mail package already has message type level object defined.
    - do I create MIOA in sending SWCV, MIIA/MIOA in mapping SWCV and MIIA/MIOA in receiving SWCV? Or is it only needed to create MIIA/MIOA in receiving SWCV?
    A: Yes, for Message Interfaces, you need to create One MIOA in sending SWCV and One MIIA in receiving  SWCV
    - only 1 MI with 1 MM on the mapping SWCV, right?
    A: Depends.
         One Interface Mapping for sure need to be created.
         MM: depends, if you use XSLT Mapping, you might not need create MM anymore.
         In your interface mapping (IM), when you choose mapping program, you choose XSL type, then, select your     
         imported XSLT package (make sure your *.xsl file is saved, zipped and imported into IR)
         If you use Java Mapping, make sure, you exported your project into Jar file from your IDE, eg, NWDS, and 
         imported into IR, In your interface mapping, you choose Jave type and select your imported Java package.
    - I think I cannot use the graphical mappingtool to map the mail-xml to the customer-xml. I will need an XSLT or java. So the message itself is not simple. Does this mean I need a third swimminglane for the busuinessprocess afterall in between the 2 that you mentioned? Or can I still manage this by using just 2 swimminglanes?
    A: Yes, I think you need XSLT or Java mapping. But do not confuse it with the Integration Scenario.
        If you do not create Integration Scenario in IR, your interface will be still working.
        The purpose to create Integration scenario is to graphically representing your interface design, your message   
        flow, and also can be used in ID to import, or use wizard to create Configuration Scenario. If you do not
        create Integration Scenario, you can still be able to manually create configuration scenario in ID.
        If you still need to create Integration Scenario in IR, two swimming lanes are enough to representing your sending application component and receiving application component. There is no need to have third one except you have BPM involved in your process.
    If you have some detailed questions, you might need to search this forum, or marketplace to search OSS notes
    You are going to have a lot of details to explore, enjoy your practice !
    Liang

  • Not renaming attachment xml file name in receiver mail adapter

    Hi,
    I receive SOAP from GRC and need send to Partner an email.
    I have  SOAP to MAIL scenario where an xml file is picked up and transformed and zipped into the target format in XI which has to be sent as an attachement in an email on the receiver side.
    I am getting the mail with the attachement. But I would like to rename the attachment as the name "NFE.XML" and the ZIP File as the name "nfe.zip"
    I am using MAIL adapter with Modules above.
    Number  Module Name                                                                          Module Type                       Module Key
    1             AF_Modules/PayloadSwapBean                                           Local Enterprise Bean        Transform
    2             AF_Modules/MessageTransformBean                                  Local Enterprise Bean        ContentType
    3             AF_Modules/PayloadZipBean                                                Local Enterprise Bean        zip
    4             sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean    Local Enterprise Bean        mail
    Module Configuration :
    Module Key                           Parameter Name                Parameter Value
    Transform                             swap.keyName                 payload-name
    Transform                             swap.keyValue                 NFE
    ContentType                         Transform.ContentType    application/xml; name="NFe.xml"
    zip                                         zip.filenameKey                ContentType
    zip                                         zip.mode                           zip
    I  am using transport protocol  "XIPAYLOAD" and set  "KEEP ATTACHMENTS"
    I have with result example above :
    Name from ZIP              :  PayloadName.zipu200E(4KB)u200E
    Name from attachment :  PayloadName
    Regards,
    Ricardo

    Hi Shobhit,
    The module tab of your mail adapter will look like this.
    Processing Sequence
    Module Name                                                            Type                                      Module Key
    localejbs/AF_Modules/MessageTransformBean   rename LocalEnterpriseBean     
    sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean  mail     Local EnterpriseBean     
    Module Configuration
       Module Key               Parameter Name             Parameter Value
          rename      Transform.ContentDescription                      File
          rename  Transform.ContentDescription  attachement;filename="yourfilename.ext"                                                          
          rename            Transform.ContentType                 application/text;name="yourfilename.ext"
    Thanks
    Amitanshu

  • Renaming attachment file name in receiver mail adapter

    Experts,
    I have a file to mail scenario where an xml file is picked up and transformed into the target format in XI which has to be sent as an attachement in an email on the receiver side.
    I am getting the mail with the attachement. But I would like to rename the attachment as the name of the picked up file.
    I am using Adapter specific message attributes on both sides but the attachment is named as untitled.xml.
    Please advise. Can this be achieved by using the swap bean or the message transform bean?
    Regards,
    Shobhit

    Hi Shobhit,
    The module tab of your mail adapter will look like this.
    Processing Sequence
    Module Name                                                            Type                                      Module Key
    localejbs/AF_Modules/MessageTransformBean   rename LocalEnterpriseBean     
    sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean  mail     Local EnterpriseBean     
    Module Configuration
       Module Key               Parameter Name             Parameter Value
          rename      Transform.ContentDescription                      File
          rename  Transform.ContentDescription  attachement;filename="yourfilename.ext"                                                          
          rename            Transform.ContentType                 application/text;name="yourfilename.ext"
    Thanks
    Amitanshu

Maybe you are looking for

  • File dialog box: how get  full path and filename

    Hello All i have a problem to save the full path and filename with file dialog box. I want to save full path and filename in the database for creating a link to a file. I use a file-dialogbox to choose a file. I see in the textfiled something like th

  • Indesign CC for Mac and PC are not the same?

    I have creative cloud on a Mac and a PC. I cannot open the Mac Indesign files on the PC and it's frustrating. The whole point of getting Adobe CC was to be able to work on both platforms. The Mac version of Indesign is showing as 9.2.1 and the PC ver

  • Why does Photoshop CC 2014 install as a trial, instead of actually working?

    Why does trying to update Photoshop CC result in Photoshop CC 2014 being installed as a trial (instead of actually working)? Does anybody know? And why can't I get ACR 8.5 for either CC or CS6?

  • CFGRID is slow with IE

    I'm using cfgrid type html. By using the bind attribute, the cfc will return query with max 3 records, but guess what! This call takes 5 - 10 sec!! This delay occurs only with IE browser, I have no problem with Firefox browser. Is there solution for

  • AME Invoice workflow - When invoice moves from Approval Require to Not Req

    Hello, I have a small Issue with AP Prepayment invoice Workflow.Version: 12.1.1 Issue Des:AME has been configured specifically for Prepayment invoices. however, when Initiate Workflow is clicked, the Approval status changes from Required to Not Requi