FTP to File scenario : Mail to be send on file transfer success

Hi guys,
I have a FTP Sender channel, which polls several files from a given folder. On the target system II have a FS Receiver channel, the scenario just transfer the files unchanged. What I want to achieve is to have a kind of email notification to specified recipient when the files are (being) transferred to the target system. Actually, I can put another Mail Receiver channel, but the mail will contain the payload files (XIPAYLOAD) - something that I would like to avoid - pure text notification is desired.
Best Regards,
Lalo

Hi guys,
Yep, I can send the email, but actually I am wondering how to avoid adding in the email the already read from the source FTP files, which are anyhow part of the payload. In Mail adapter settings, if I put XIALL, the whole envelope+payload will be put, in XIPAYLOAD - only the payload. What I want to achieve is to have only text mail without any attachments - is it possible ?
BR,
Lalo

Similar Messages

  • Sender FTP Adapter (file transfer w/o mapping)

    Hello everyone!
    Is there a way to configure a Sender FTP Adapter such that it simply picks up a file in an FTP folder then moves it to another FTP folder without changing any data (no mapping needed)?
    I tried doing it, but the Sender Agreement requires you specifiy an Outbound interface (which is not needed in this case). Would anyone of you know a workaround to this?
    Warm regards,
    Glenn

    Hi
    Use dummy interface name. But that should be same in ID objects
    Check this
    How to send any data (even binary) through XI, without using the Integration Repository
    Thanks
    Gaurav
    Edited by: Gaurav Bhargava on Oct 29, 2008 9:48 AM

  • Unable to FTP a file

    Hi Experts,
        My requirement is i have to send a file through FTP from SAP to WIndows Server...
        I have checked the forum for the answer but couldnt solve my req..
       My req is....
        I have data in internal table ...now i have to place this data from internal table to text file and create this file
       at the path provided...
       My code goes like this...
    CALL FUNCTION 'HTTP_SCRAMBLE'
      EXPORTING
        SOURCE            = gv_pwd
        SOURCELEN         = gv_slen
        KEY               = gv_key
    IMPORTING
       DESTINATION        = gv_pwd.
    CALL FUNCTION 'FTP_CONNECT'
      EXPORTING
        USER                   = gv_user
        PASSWORD               = gv_pwd
      ACCOUNT                =
        HOST                   = gv_host
        RFC_DESTINATION        = SAPFTP'
    CALL FUNCTION 'FTP_COMMAND'
      EXPORTING
        HANDLE                = gv_hdl
        COMMAND               = 'dir'
        COMPRESS              = gv_compress
    TABLES
        DATA                  = it_final
    The data is in it_final...but when i execute this some more txt  is appeneded at the end if my it_final...
    I checked the appeneded data, it is the same DATA that is displayed  when i execute the DIR command on FTP...
    Please help me to place a text file in location INBOUND/file.txt at FTP server...
    Thanks
    Ajay

    Hi Ajay,
    please find the below code for reference.... u can ignore the varient names etc.
    DATA : user(30) TYPE c VALUE ' ',
               pwd(30)  TYPE c VALUE '',
               host(64) TYPE c VALUE '10.2.203.64',
               cmd1(80) TYPE c,
               cmd2(80) TYPE c,
               cmd3(80) TYPE c,
                var TYPE i,
                action(3),
                command_index TYPE i,
               key TYPE i VALUE 26101957,
               dest TYPE rfcdest VALUE 'SAPFTP',
                dstlen TYPE i,
               compress TYPE c VALUE 'N'.
      DATA: command(80).
      DATA: BEGIN OF commands OCCURS 0,
              line(80),
            END OF commands.
      DATA: BEGIN OF result OCCURS 0,
              line(100),
            END OF result.
      DESCRIBE FIELD pwd LENGTH dstlen IN CHARACTER MODE.
      CALL FUNCTION 'HTTP_SCRAMBLE'
        EXPORTING
          SOURCE      = pwd
          sourcelen   = dstlen
          key         = key
        IMPORTING
          destination = pwd.
      CALL FUNCTION 'FTP_CONNECT'
        EXPORTING
          user            = user
          password        = pwd
          host            = host
          rfc_destination = dest
        IMPORTING
          handle          = var
        EXCEPTIONS
          not_connected   = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
        WRITE /: 'Sorry no connection to FTP'.
      ELSE.
        command = 'bin'.
        CALL FUNCTION 'FTP_COMMAND'
          EXPORTING
            handle  = var
            command = command
          TABLES
            data    = result.
        IF sy-subrc <> 0.
        ENDIF.
        CLEAR command.
    DATA:blob_length_l  TYPE i.
        DATA: fname LIKE epsf-epsdirnam VALUE 'forex1.txt'.
        DATA: tmp_text(50) TYPE c.
        DATA: result1 LIKE tmp_text OCCURS 0 WITH HEADER LINE.
        CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
          EXPORTING
            text = 'Read file from FTP Server'.
        CALL FUNCTION 'FTP_SERVER_TO_R3'
          EXPORTING
            handle               = var
            fname                = fname
           character_mode       = 'X'
         IMPORTING
           blob_length          = blob_length_l
         TABLES
      BLOB                 =
           text                 = result1
         EXCEPTIONS
           tcpip_error          = 1
           command_error        = 2
           data_error           = 3
           OTHERS               = 4
        IF sy-subrc <> 0.
          WRITE /: 'File Transfer Unsuccessful -- ' , backfname.
        ELSE.
          WRITE /: 'File Transfer Successful --' , backfname.
    I hope this will help....
    Regards,
    Nitin

  • Peculiar behaviour in picking file from FTP in File-IDoc scenario

    Dear XI Expert,
    I have successfully completed configuration of FTP --> XI --> IDoc scenario. I have noticed a peculiar behaviour in picking the file from FTP. I placed a file on FTP and activated File Adapter with poll interval '60' secs and processing mode as 'Archive'. For the first time it has picked the file with expected behaviour and IDoc got posted to SAP successfully. But when I placed file for the second time and when refreshed the FTP directory, immediately file got archived without waiting for 60 secs. But in sxi_monitor I could not see any activity of processing this scenario. Surprise is that, file got archived in target directory. This goes on and on... without registering any activity of processing the message in Message monitoring.
    In adapter monitoring it shows the message as described below:
    <i>History:
    2006-05-09 22:57:25 : Processing started
    2006-05-09 22:57:25 : Error: Processing interrupted due to error: FTPEx: No such file
    2006-05-09 22:57:24 : Processing started
    2006-05-09 22:57:24 : Error: Processing interrupted due to error: FTPEx: No such file</i>
    For your information my SAP XI system is on SP16.
    Please find below the parameters of sender adapter:
    <i>Quality of service: Exactly once
    Poll interval: 60 secs
    Processing mode: Archive
    Connect Mode: Per File Transfer
    Transfer Mode: Binary</i>
    Can anybody help me out in resolving such a problem in this scenario?

    Hi Jayakrishnan,
    Thanks for your reply.
    Once again the same problem is noticed. i.e., for the first time when file adapter is activated the file got picked, activities were logged in monitoring and IDoc got posted to destination system. For the second time when file is placed, before 60 secs got completed the file is picked and archived in the target directory. No activities in monitoring are logged.
    I have tried it checking the message at adapter level, but it is showing 'No results' (even in the case of successful pick of the file for the first time, not even it is showing other file adapters).
    I was not able to understand where the problem could lie?
    Regards,
    Suraj Kumar

  • Send attachment (jpg) in scenario Mail to Mail

    Hi all,
              I have a scenario mail to mail (Mail Adapter) with attachments (jpg image). I receive an email that contains a jpg image and I would like to send it by mail too.
    The scenario is working fine, but when the jpg image arrives is destroyed.
    I'm using the logic of this blog:
    /people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
    but, it doesn't work in my scenario (mail adapter).
    Plz help me !!!
    Thanks,

    Hi,
    this document is about a jpg scenario file to mail:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816
    Hope it helps.
    Regards
    Patrick

  • When I want to attach a file to an e-mail I'm sending from my iCloud account it makes the file show up in the body of the e-mail instead of attaching it as a separate file the receiver can open.  How can I change this?

    When I want to attach a file to an e-mail I'm sending from my iCloud account it makes the file show up in the body of the e-mail instead of attaching it as a separate file the receiver can open.  How can I change this?

    It should be an attachment.  Your Mac just displays a preview of certain attachments (such as .pdfs) in the body of the message.  A PC, for example, will see it as an attached file rather than a preview.
    You can save the attachment on your Mac by Control-clicking on it and selecting Save Attachment.

  • Mail in Mavericks sending my filled form Adobe Acrobat Pro PDF files blank, this didn't happened in Mountain Lion, please help!!! :(

    Mail in Mavericks sending my filled form Adobe Acrobat Pro PDF files blank, this didn't happened in Mountain Lion, this where created in Adobe Acrobat Pro X and never had any problems in Monutain Lion, please help me

    Thanks for your response, it is a mail problem, I been sendings filled form PDFs estimates for years from my Mac then yesterday I went from mountain lion to mavericks and the problem started, if I zip or move te files to any other windows or Mac computer it opens fine, the problem is when I attach it to a message in mail it attached the file blank

  • AOL mail doesn't send .doc-files with Firefox

    When using Firefox AOL Mail doesn't send .doc-files. Instead a corrupted file with a different size is sent. Any other file type works aswell as sending .doc-files with other browsers works...

    I'm getting a similar problem. Snow Leopard Mail for me seems to be choking on large attachments - sending them, forwarding them, or even moving them from one IMAP folder to another.
    My mails are getting through, but it takes a long time and they are dragging the whole system to a crawl in the process.

  • HT2500 how can i insert a file in a mail message i send to someone?  i don't want the picture to be open or the text to be displayed.  I want to send the file as a file.  Pleas advise.

    how can i insert a file in a mail message i send to someone?  i don't want the picture to be open or the text to be displayed.  I want to send the file as a file.  Pleas advise.  thank you.

    Attach it to the message. An attachment is an attachment -- if it is displayed or not by the recipient's e-mail client is not under your control.
    You can zip it (compress it) before sending it; if it's text, you should zip it anyway; if it's JPEG, zipping will not reduce the size (in fact, it's even possible it may increase it slightly), but most e-mail clients do not display what's inside a zip archive.

  • Is CPA Cache refresh linked with  ftp or file pooling process in XI?

    Hi,
    I have a file to file scenario using Transport protocol as FTP in XI 3.0 SP 15.
    When we try to sends some file using ftp protocol where we are using
    FTP  connection parameters
    Server                          = <CORRECT IP>,
    Port                               =  21 ,
    User name                <CORRECT NAME>,
    Password                  <PASSWORD> ,
    Data Connection           = Active
    Connection Seq          = None
    Connection Mode          = Permanently
    Transfer Mode            =   Text
    Processing Parameters
    Quality of Service    = Exactly Once
    Pooling Interval        = 1 sec
    Processing Mode    = delete
    File Type                   = Text
    File encoding           = utf-8                 
    The problem we are facing like some time the ftp is not working even the file is present in the location for pick up. If few files are stacked up to be collected then when we are using CPA Cache refresh in Full mode manually then it fetches all the files from the location but the problem is that ,we have a time constraint for this process to be completed in just 60 seconds if we are not able to pick up a  file in 60 Secs then the file will be treated as invalid.
    So I just want to know how Manual CPA CACHE refresh in full mode generally solve the problem.
    Next if more files will be stacked up then cache refresh also failed to solve the problem and more cache refresh result in NOT pooling any other files in XI including the above discussed flow.
    So,in anyway Cache refresh linked with ftp or file pooling process in XI?
    Please assist me in correctly understating the whole problem and what solution could be put to solve this.
    Thanks,
    Satya
    Edited by: Satya Jethy on Mar 14, 2008 12:28 PM

    Hi Suraj,
      If you see my query i have mentioned that the pooling interval is 1 Second.
    If we are not able to pick the file with in 60 Secs as this is a  real time scenario so the file will be treated as a invalid file.
    Moreover this problem is happening some time.
    I have also checked the component monitoring it is saying everything is ok as because we are receiving the file with out any error and the file transfer is also success.The only problem is that it is not collecting the files from the given location.
    Hope i make you understnad the problem .If not please revert back i will try to explain once again.
    Thanks,
    Satya

  • SAP PI ftp FIle transfer one to one with the same filename

    Hello all,
    maybe sombody ask the same in this forum, but couldn't find any topic regarding these.
    Okay:
    We have a scenario which have to pick up a txt file from a folder and to deliver to another folder
    outside. The file transfer itselfs isn't a problem and works propertly, but we need the same file-
    name for the outgoing file. Unfortunaltey we have huge different filenames..
    So, my question would be, what for possiblities we have to sure, that if we can deliver the
    file which the same filename as we have in the orginal (source) filefolder.
    e.g. file named in source called TEST.123 in the destination should be also TEST.123.
    The next file called TEST123.abc should be also in the destination TEST123.abc.
    Thanks

    Hi friends.
    I don't know about if you need still any help. But i think it will be useful for another people who have encountered that problem and looking for the solution.
    The solution is pretty simple for case if you are going to some file by scenario FTP - to - FTP without interface mapping. I was able to create simple example ant put it on my site to let you use the portable short instruction with screen shots and highlighted marks that help you understand it more clear. Indeed you don't need any udf if you wish to repeat that example in your real scenario. Link is HERE
    Shortly you have to do the next:
    1) for the sender adapter in tab "Advanced" switch on the check-box "Set Adapter Specific Attributes" and check that "File name" is switched on as well.
    2) for the receiver adapter you have to repeat step 1 as well. Plus you have to change setting on the tab "Processing". On that tab you need to change "File Construction Mode" into "Create" and than you have to switch on the check box named as "Overwrite Existing File".
    That's it.
    Thank you, i hope that is help.
    Sincerely, LukCAD.

  • TS3276 My o2 email account does not work when sending from my MAC it will accept incoming mail but not send it gives me a message that  o2 account (offline) my mac I have no problem with my iPhone  or mac laptop. any suggestions please.

    My o2 email account does not work when sending from my MAC it will accept incoming mail but not send it gives me a message that  o2 account (offline) my mac I have no problem with my iPhone  or mac laptop. any suggestions please.

    Sorry for the delay...
    I did what you've told me, new account and manually copied my files from Time Machine. I had lots of permissions problems, but at the end, almost everything is in order... It seems it had to be with some of the Apple Preferences, but I can't be sure, as most of them were dumped to the trash can.
    I still don't have my Mail Rules back, unfortunately, although I did goggled some. It is a pity, as I had around 30 or 40 of them, getting my mail in order to each of its mailboxes, but it is a small price as the rest doesn't show the before syntoms.
    Thanks for the help, anyway!!

  • Mail doesn't send to certain e-mail addresses, receiving seems ok

    I am using the latest version of the Apple Mail application under Leopard (with all updates downloaded). About a month ago I e-mailed a friend from my home account and unusually didn’t get a reply. I then e-mailed again a few weeks after, again no reply. After a phone conversation found out she didn’t receive either of my mails. This prompted many test e-mails, the outcome of which was the following:
    1 - Was able to receive my friend’s e-mails, but if I replied using Apple mail (hitting the reply button), my reply never got back to her.
    2 - Was able to send to and receive my friend’s e-mails using MS outlook from my place of work using a PC and my work e-mail account. No problems.
    3 - Was able to send and receive to my work account from my home account using Apple Mail, no problems.
    4 - Was able to send and receive my friend e-mails from my home account, using web mail rather than using Apple Mail.
    5 - Could no longer e-mail my wife using the Apple Mail (and she could not e-mail me), we both use the same ISP. However using web mail rather than Apple Mail we could still send and receive e-mails from each other.
    6 - Phoned my ISP, my account seems to be ok, which was also confirmed by using webmail as described in the previous two points.
    7 - Other than the regular Apple updates the Mail app is the same client I have been using since I got my new Mac last October. I didn’t appear to have any problems until about a month ago and have made no changes to settings etc.
    8 - When I do attempt to send e-mails to my wife or friend, I get the usual whooshing sound and a progress bar to show that the mail has been sent. The outbox is empty and the mail appears in the sent box, but never arrives to its destination. No error messages or e-mail bounce backs, nothing.
    9 - Downloaded and installed Thunderbird, all the problems seem to go away – I can now send and receive e-mails from both my wife and friend.
    It’s a bit weird that Apple Mail seems to have taken an aversion to sending mail to some particular e-mail addresses. Unless someone can explain what is going on here, I think that this is a serious problem. As I’ve mentioned, there is no hint that Apple Mail is not sending e-mail, as far as I was concerned e-mails were leaving my Mac. Has anyone experienced something similar? Is there an easy fix?

    I just did a quick test in InDesign CC and my one worked. Maybe you should delete the button and redo it.
    By the way on a slightly different matter, do you know that to enable users to complete the form and store it on their computer using Acrobat Reader, you need to enable the form as follows:
    Open the form in Acrobat XI  and then:
    File > Save As Other > Reader Extended PDF > Enable More Tools (includes for fill-in & save). . . Your users will be able to fill in the form and save it (assuming they have the later versions of Acrobat Reader).
    Make sure you keep a copy of your original PDF with a different file name as once you've created a Reader Enabled PDF Form you can't change it.

  • Mail does not send email

    My problem is simply that Mail does not send email.
    I have just migrated from iMac G5 to iMac Intel by using Migration Assistant. Everything else works just fine and I can receive email. However, if I try to reply, forward or send a new email message, Mail just does not do anything - no error message, nothing.
    The fixes I have tried so far are removing the Mail plist file, repairing disk permissions and mailboxes. Of course, I have checked the account settings, especially outgoing server settings. I also reinstalled Mail application with Pacifist. None of this has solved the problem. I have tried sending email with Thunderbird and it works with no problems.
    Does anybody have any suggestions how to fix this issue?
    The OS is 10.4.8, Mail Version 2.0.6 (749.2/752.3), all the suggested software updates done.
    iMac Core Duo 20" 2GHz   Mac OS X (10.4.8)  

    Reinstalling Mail is rarely necessary or appropriate to solve a problem. It certainly cannot fix anything that could be wrong within your home folder or at the server or with the network, and may even introduce new issues if not done properly. Moreover, in Mac OS X 10.4 you don’t need Pacifist to reinstall Mail, you could also do it as described in the following article:
    Custom installs in Mac OS X 10.4
    Verify/repair the startup disk (not just permissions), as described here:
    The Repair functions of Disk Utility: what's it all about?
    After having fixed all filesystem issues, if any, if the version of the system software on your install disks is earlier than what you’re using now (and only in that case), then you must also reinstall the Combo Update for the type of computer and the version of Mac OS X you’re using, to bring Mail back in sync with the rest of the system:
    About the Mac OS X 10.4.8 Combo Update
    Mac OS X 10.4.8 Combo Update for PPC
    Mac OS X 10.4.8 Combo Update for Intel
    The above won’t solve the problem. It’s just to ensure that you’ve properly reinstalled Mail, which you shouldn’t have done, and which apparently you didn’t do properly -- the version of Mail on your system should be 2.1.1, not 2.0.6.
    The original problem could be caused by some Launch Services cache or preferences corruption. The following article describes how to manually reset Launch Services -- the notes at the bottom of the article also provide information about the side effects of deleting each of the files involved:
    Resetting Launch Services
    If you prefer using a cache cleaning utility instead of following the manual procedure described in the previous article, this other article provides links to some utilities that can be used for troubleshooting and cache cleaning:
    Resolving Disk, Permission, and Cache Corruption
    It seems that the most appropriate utility for solving this particular problem is Tiger Cache Cleaner, but you may also want to consider other utilities, such as OnyX, or Cache Out X, which are free. Whatever utility you choose, be sure to read this first:
    Side effects of System cache cleaning
    As an example, this is how you should proceed with OnyX:
    1. Quit all applications.
    2. Launch OnyX and enter your administrator password.
    3. Click Maintenance. In the Reset section, check LaunchServices database.
    4. You may uncheck any other pre-checked options if you wish.
    5. Click the Execute button.
    6. Restart the computer.

  • HTML Mail content in Sender Mail Channel

    Hi Experts,
    I am doing a PoC using sender mail channel to read an incoming HTML email & take few values from the mail body to send out as proxy message. Settings in my Sender channel are Transport Protocol: IMAP4 & Message Protocol: XIPayload. I have tried the "Use Mail Package" parameter checked & unchecked. If "Use Mail Package" is checked the XML payload I am getting contains the mail body under <Content> tag with all HTML tags.
    Without "Use Mail Package" option checked the content is coming as plain text as below.
    I have tried adding modules MessageTransformBean & ASMA setting "IMail.AssumeXMLContent=true". But Not able to make the content into mapping ready XML. Is it possible to convert the HTML email body into mapping ready XML or I should use Java or XSLT mapping to work on the HTML mail body?
    Thanks in advance for any help.
    Regards
    Prem A.

    Hi Amit,
    Thanks Amit. I will try XSLT or Java mapping for this scenario. Appreciate your help.
    Regards
    Prem A.

Maybe you are looking for