Creating same files on Different FTP Locations

Hi All,
My scenario is like this
IDOC which is coming from SAP has to be sent to two FTP locations (XYZ20082210.dat both same structures)...
Can any one please give me the best approach to handle this...
I know i can do this by creating in two ways
1) Using 1:N mapping 
but this also i dont think the right approach as i need to duplicated the same Message Type and rename into 2 Message Type and use in the 1:N mapping.
2) creating 2 Message Mappings and two Interface mappings and two recievers ..
But this one XI processess the Mappings two times which is not good as we recieve multiple Idocs at a time...
Please suggest me a suitable approach for which way i can achieve by more Optmizing ...
Thanks and Regards,
sridhar reddy

Hi Sridhar,
If you want to work out this issue using OS command, then you configure your receiver file adapter to place the file in one folder say 'Source' . Let your two destinations be Target 1 and 2 in the network. Paste the below two lines in notepad, edit the path names and save as .bat extension.
xcopy D:\Source\.* "
NetworkPath\Target1"*
xcopy D:\Source\.* "
NetworkPath\Target2"*
If you receiver folders are in Windows network :
You should run the above mentioned bat file to copy your messages to the destination in network.
Note :  XI can NOT execute a OS command/ shell script on the receiver FTP server. The OS Command for the file adapter only runs on the system in which the Adapter Framework is running.
If you receiver folders are in FTP Server :
Refer this link : 
http://www.circa.ufl.edu/handouts/networks/ftp.html

Similar Messages

  • How to configure a scenario which posts same file to different directories

    How to configure a scenario which posts same file to different directories of a receiving system?
    Consider an Idoc to file scenario where I have to post same file to two different directories but logical receiver system has to be same.

    Hi,
    You can try out like this: Using multiple receiver interfaces you can send it to multiple directories with the help of enhanced interface determination/conditions and with the help of multiple receiver communication channels.
    Another option is to copy the file from one target directory into another directory  with the help of Unix script by executing the same from the OS command level.
    One more option is to create a Java Server Proxy and inside the proxy, you can write java code to FTP into different locations.
    Hope this helps,
    Regards,
    Moorthy

  • Create multiple files in different directories for receiver system

    Hi,
    My scenario is File-XI-File. Based on a value of a field(1...Unbounded) & its occurance in source file XI needs to create same file number of times(based on occurance of field in source file) in different directories on receiver system(Single Business System).
    What different ways/solutions are available to achieve this?
    Regards,
    Bharat
    Edited by: Bharat Rathod on Nov 21, 2009 5:24 PM

    Hi Bharath,
    >>Based on a value of a field(1...Unbounded) & its occurance in source file XI needs to create same file number of times(based on occurance of field in source file) in different directories on receiver system(Single Business System).
    This logic needs to be handled in message mapping ... and you need to use multimapping..check the link here
    http://help.sap.com/saphelp_nw04/helpdata/en/42/f3b31d48fb1bc8e10000000a11466f/content.htm
    Regards
    Suraj

  • Reading Files from an FTP location based on Timestamp

    Hi,
    I have a requirement of reading files from an FTP location. The files should be read in the order they were saved in the folder. Can someone tell me how to solve this?
    Thanks,
    Ravi

    Hi Arik,
    Thanks for your reply. I tried doing what u said, but it isn't working. My requirement is to List the files in the folder using FTP adapter and get the file name with the least file stamp from the FTP adapter and pass the FileName dynamically to another FTP adapter which reads the file based on the FileName. When i tested after including the property (for listing the files) you mentioned, it is giving the following error (copied from flow trace):
    <messages>
    <input>
    <Invoke_getFileListFTP_FileListing_InputVariable>
    <part name="Empty" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <empty xmlns="http://xmlns.oracle.com/pcbpel/adapter/ftp/APP_SequentialFileTransfer/PRJ_SequentialFileTransfer/WS_GetFileList_FTP"/>
    </part>
    </Invoke_getFileListFTP_FileListing_InputVariable>
    </input>
    <fault>
    <bpelFault>
    <faultType>0</faultType>
    <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    <part name="summary">
    <summary>Exception occured when binding was invoked. Exception occured
    during invocation of JCA binding: "JCA Binding execute of
    Reference operation 'FileListing' failed due to: Exception
    occured when binding was invoked. Exception occured during
    invocation of JCA binding: "Could not instantiate
    InteractionSpec
    oracle.tip.adapter.ftp.outbound.FTPListInteractionSpec due
    to: Cannot set JCA WSDL Property. Error while setting JCA
    WSDL Property. Property setListSorter is not defined for
    oracle.tip.adapter.ftp.outbound.FTPListInteractionSpec Please
    verify the spelling of the property. ". The invoked JCA
    adapter raised a resource exception. Please examine the above
    error message carefully to determine a resolution. ". The
    invoked JCA adapter raised a resource exception. Please
    examine the above error message carefully to determine a
    resolution.</summary>
    </part>
    <part name="detail">
    <detail>Cannot set JCA WSDL Property. Error while setting JCA WSDL
    Property. Property setListSorter is not defined for
    oracle.tip.adapter.ftp.outbound.FTPListInteractionSpec Please
    verify the spelling of the property.</detail>
    </part>
    <part name="code">
    <code>null</code>
    </part>
    </bindingFault>
    </bpelFault>
    </fault>
    <faultType>
    <message>0</message>
    </faultType>
    </messages>
    Thanks,
    Ravi
    Edited by: Ravi Santosh on Apr 24, 2012 11:02 PM

  • Creating a file in different directory.....

    i have program that uses File class from Java IO package for creating a text file. I have written this program in c:\test\proj and i am running the program in that location. So obviously text file is created in the same directory...
    But the information from this text file is required for my servlet that runs on web server tomcat 4.1..so i have to manually copy this file and place this on the required directory...i have written program to create the same file on in C:\Program Files\Apache Group\Tomcat 4.1\webapps\examples this directory but this is not happening..I reckon this is because of the spaces in the directory names....
    my problem is i am running program on c:\text\proj directory and i want text file to be created in C:\Program Files\Apache Group\Tomcat 4.1\webapps\examples...
    the statement i am using to create a file is...
    File f = new File("C:/Program Files/Apache Group/Tomcat 4.1/webapps/examples/ping.txt");
    do i have to modify the statment????
    please provide me with a solution...
    thanx

    You must be getting an IOException of some description when you open the output stream to the File.
    Or else you're looking for your file in the wrong place ...

  • Same file name - Different extension - Viewing problem

    I know this has been written about quite a bit and I have searched through the posts but I cannot find a solution to my problem. I shoot RAW, import then into Lightroom, make changes, import into CS3 & make more changes, save as a .psd file; no problem so far. I use Neat Image on some files that need the noise reduction so in CS3 I save the .psd as a .tif, run it through Neat Image and save it to the same directory where the RAW and .psd files are. Go back to Lightroom and no .tif file. If you "find" the file in Lightroom it shows up but shows as the .psd file. I have tried unstacking and everything else I can think of but I cannot make the .tif file display. I can go back to CS3 and locate the file through it but if in a few months or however long it takes me to forget that the .tif is there, the .tif will be lost in never never land. Bottom line, how do I get Lightroom to show ALL files, no matter name, extension, etc?
    I am using Version 1.3.1 on Windows XP, 2Gigs ram, 3.4 Gig P4 processor

    This issue was argued down to skeletal remains in beta and after. Adobe finally rlented somewhat and allowed the importation of files with same name and the RAW and jpeg extensions, because for one good reason some cameras produce both and some shooters utilize both for differring purposes.
    Jao,
    I will disagree with your reading of what is standard. That MS's stupid explorer or anything else won't show extensions is immaterial. First, anyone wanting to work at any speed and efficiency will be using something like Total Commander instead of Explorer, and it and virtually every other app I own shows extensions and treats files with the same name but differing extensions as unique files unto themselves--as it should be.
    After all it is digital data in the file that is unique. The extension is a tag to tell you and the computor how to deal with that data. The content is not identical, and therefore it ought not be treated as if it were by any application.
    Anyone with an interest in wasting several hours can trace the arduous wailing at the LR team to treat the extension as part of a unique name. As I said bdefore, they did make some concessions. Hopefully, they will go the whole distance soon.

  • Get Info sees different "Open With" for the same file on different computer

    I've got a laptop (17") and a desktop, both with OSX 10.4.3. I had a disk problem with the laptop, but was able to get everything off the disk, reformat it, and put it all back. Everything's been working fine until today, when I tried to use the Equation Editor in Office. It wouldn't work. As I tried to chase down the problem, including reinstalling Office, I realized that my laptop was seeing certain Office files using GetInfo as "Open With" Netscape. I compared this with the settings on the desktop, and they were different. Different applications, different icons, even.
    Then I noticed that when I have the CD in the laptop and do GetInfo on a file there, or even look at the icon, it's different from what appears when I look at the same file on the desktop. So it appears to be an OSX issue, not a Microsoft issue.
    I've rebuilt permissions several times. I changed the OpenWith settings, but that didn't solve the problem. But I think it's because other Office files are being misread by the OS, too.
    If anyone has a diagnosis (and hopefully, a cure), I'd really appreciate it.

    Hi, Jim.
    You wrote: " I realized that my laptop was seeing certain Office files using GetInfo as "Open With" Netscape."If you are seeing more than just Office documents displaying the incorrect default application, this could indicate a corrupted Launch Services cache or preferences on the affected Mac.
    In associating documents with applications, Finder employs Launch Services. Launch Services employs several files to associate documents with applications and vice versa. When these files become corrupted, this can result in problems including:
    - The wrong applications being launched when double-clicking a file.
    - Multiple copies of a single application appearing in the Open With menu for a given document.
    - Incorrect icons appearing on files, folders, or other objects.
    The following steps will remove all of the files used by Launch Services. Be sure to read these instructions entirely, including the Notes, before proceeding.
    1. Quit all running applications.
    2. Trash the following two files in the Computer > Macintosh HD > Library > Caches folder:
    - com.apple.LaunchServices-0140.csstore
    - com.apple.LaunchServices-014xxx.csstore
    where xxx is the uid number for the affected account in the NetInfo database. Type your Admin password when prompted to authenticate the deletion of the first file. See Notes [1] and [2].
    3. Trash the com.apple.LaunchServices.plist file in your Home > Library > Preferences folder. See Note [3].
    4. Restart your Mac.
    5. Log in to your account.
    6. Empty the Trash.
    Do not empty the Trash until after you have restarted your Mac.
    Notes:
    [1] Step 2 will result in you being prompted to approve the launch of the application associated with a document the first time you double-click a document. These alerts are a result of the security feature in Mac OS X. The list of applications which you have previously approved are saved in the caches deleted in step 2.
    [2] The first user account defined on your Mac is generally uid 501, the second uid 502, and so forth. For example, the second file ID for the first account would becom.apple.LaunchServices-014501.csstoreYou can find the uid number for any account as follows:1. Launch NetInfo Manager, which is in the Computer > Macintosh HD > Applications > Utilities folder.
    2. Select users in the middle column of the NetInfo Manager window.
    3. Select the desired user account in the right column of NetInfo Manager.
    4. The data for the selected user, including uid, is displayed in the lower pane of the NetInfo Manager window.[3] Step 3 will reset to default values all associations you have created between specific file types and applications. For example, if you set PDFs to open in Adobe Acrobat instead of Preview, they would now open in Preview again until the association of PDFs with Acrobat is reset. You may want to skip step 3 to see if the other steps resolve the problem. However, if skipping step 3 does not resolve the problem, running steps 1-6 again, including step 3, should resolve the problem.
    Note that some of the information above is from the "Applications" chapter of my book, Troubleshooting Mac® OS X, Tiger Edition.
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Same file is different on different OS'es

    Hallo,
    I am having the following problem. I am reading a file (image, sound, whatever) with the code below, and depending if it runs on windows or different linux versions some bytes are always different when reading the very same file. I really don't know why. Has someone had a similiar problem and knows a solution? Please answer...
    public void load(File file){
              try{
                   this.fistream=new FileInputStream(file);
                   this.distream=new DataInputStream(this.fistream);
              catch(FileNotFoundException ex){ex.printStackTrace();}
              catch(IOException ex){ex.printStackTrace();}
         public int nextChar(){
              try{
              if (distream.available()!=0)
                        return distream.read();
              catch(IOException ex){ex.printStackTrace();}
    return -1;
    Thanks a lot
    Max

    Homer_Sanchez wrote:
    I'm doing following. I want to create a "random" byte sequence from an arbitrary file. This sequence should be same everytime it's created from the same file. But this isn't the case this way. Windows XP gives different results than for example mandrake linux. Everything that's already been said still holds.
    So in essence this means, I don't need any binary data. What? This makes no sense. I have no idea what you're talking about here, but it seems to contradict everything you've said so far.
    The name nextChar() was just a name. It shouldn't mean anything.No, it should clearly and concisely describe what the method does. Don't expect others to read your code if you can't make the effort to make it make sense.
    But does the InputStream method in the code skip carriage-return and line-feed characters? No, it does not. The phrase "carriage-return and line-feed characters" is only meaningful when dealing with line-oriented text data. Read what we already said.

  • Two machines saving the same file as different sizes?

    My coworker and I both have the same version of Illustratir (CS6) and both use Lion on iMacs, but today noticed something weird. He saved a file similar to a file I had done before as both an eps and a pdf and his file size was more than twice what my file sizes usually are. I thought it was odd, so I copied everything from his file into a new file (same dimensions) and saved out an eps and pdf (default settings), and like I thought, my files were less than half the size of his.
    Why would two machines be saving identical files at different sizes? Is there a setting somewhere I'm missing? Everything in the file is vector, if it matters. There's not even any editable text.

    See the mechanism of saving here: http://superuser.com/questions/66825/what-is-the-difference-between-size-and-size-on-disk
    The size of the "blocks" depends on the size of the disk and how it's been formatted.

  • ABAP Code for loading the flat files kept at FTP locations

    Hi all,
    I need to automate the process of data loading via flat files with the help of process chains , with respect to which I require following help:
    1. what steps should I follow to load the data with respect that whenever the new file comes in the directory of the ftp location start that process chain for data load.(Note : there is no fix time that when the new file will be coming)
    2. Every time the new file will be having differnt name , then in that case how we will be fetching the new file which is require for data loading?
    Thanks and Regards,
    Neha

    Hi Neha,
    I have not worked on this or made this code.
    Recently my onsite did it.
    Try to find more gyan on this functiona module...'DX_GET_PHYSICAL_FILENAME'
    Code is... write it in infopackge start routine.
    DATA: v_filename LIKE dxfile-filename.
    Below function module generates the filename with the complete path
    based on the app server attached to the Central Instance
    The logical mapping Z_INBOUND_EBIZ_PAYMENTS is maintained in the
    transaction - "FILE"
      CALL FUNCTION 'DX_GET_PHYSICAL_FILENAME'
        EXPORTING
          i_filename             = 'Z_INBOUND_EBIZ_PAYMENTS'
        IMPORTING
          o_filename             = v_filename
        EXCEPTIONS
          not_registered         = 1
          logical_filename_error = 2
          OTHERS                 = 3.
      IF sy-subrc = 0.
        p_filename = v_filename.
        p_subrc = 0.
      ELSE.
        p_subrc = 4.
      ENDIF.
    Regards,
    San!

  • Creating same-name directories, different cases

    I'm trying to set up two directories with basically the same name but different cases:
    domain.com/DirectoryName
    domain.com/directoryname
    Just because I know someone will type it in the second way assuming it will work, since the typical user does not know urls can be case-sensitive. The first directory will just redirect to the second.
    My problem is that Dreamweaver won't allow me to create the two directories because it considers them to be the same (and is giving me the "folder already exists" error), regardless of the cases. Does anyone know how to work around this?

    I don't follow. Physical directories never can have the same name inside the same parent directory on Windows or Mac, so it's nothing related to DW. They can on Unix systems, but that's a whole different matter and in your case an exclusive one of the server configuration. This needs to be done with aliases, symbolic links, resource mapping or URI forwarding on the server, not on how you design your webpage locally. A browser URL is just a virtual directory/ path and not immediately related to the actual physical structure and because of that, it's the server's responsibility to either convert the characters or not.
    Mylenium

  • How to create Same File Name in Recever side

    Hi Frnds,
    1)In my sender side i am having one XML file Name:  vendor123.xml
    i have to send this file to receiver side with same file name, what are setting i need to do in file adapter.
    In receiver side i dont have any file, i have to crete with same file name.
    2)
    In my scenario my message interface name Vendor123_mt.
    In receiver side my file name should be Vendor123_mt, How to do handle this situation.
    Regards,
    Raja Sekhar

    Hi Raja,
    Regarding you 1st question: It can be easily achieved using the Adapter specific Message Attributes. You can refer the Michal's blog for it.
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Regarding your 2nd question:
    Here you will need to use Variable Substitution. Use the following link:
    http://help.sap.com/saphelp_nw70/helpdata/EN/ae/d03341771b4c0de10000000a1550b0/frameset.htm
    Hope it helps.
    Regards,
    Sanjeev.

  • Same files, two different play sequences

    This is probably a stupid question, but I don't know DVD Studio that well.
    The situation:
    I have 8 separate video files.
    They need to be able to be played individually (coming back to a menu at the end of each video), and to be played through completely (when a "play all" button is selected).
    I want to reference the same files to keep the highest quality.
    Help?

    There is something called "end jump" or something (my version is in French, can't tell you for sure).
    This is where you tell the DVD where to go when it's finished playing (example : go back to the menu, or jump to the next of your 8 tracks)
    There is another thing called a story.
    Here, you tell what chapters the DVD should read in an alternative order.
    So maybe we can imagine that you have chapter markers almost at the end of each track.
    You make 8 stories (that's the way it works) in which you drag the first chapter of each track (remember, the second chapter is only a few frames, it's almost at the end). So when a story plays, it only plays most of the trak.
    Then you tell it what to do when it gets to the end of each story (made up of most of each track)
    What you tell it, is to jump to the next story.
    So this is your architecture :
    Tracks 1 to 8 have chapter 1 and 2 (2 being almost at the end) and at the end of the track it jumps to the menu
    Stories 1 to 8 which only contain chapter 1 from each track and who jump to the next story at the end.

  • Why would two copies of Lightroom 5 create DNG files with different sizes from the same RAW file? (size is dramatically different, on the order of doubled in size.)

    I have a copy of LIghtroom 5 on my office computer and a personal copy on my home computer. I convert my RAW files to DNG with Lightroom when I import them. Files I shoot for work also get imported on my home workstation. I noticed today that the resulting DNG files for the same RAW image are widely different in size. The ones at home are roughly twice as big as the ones from the office.
    To the best of my knowledge, things are set up the same on both workstations. Any idea what setting might be causing this variation?

    I don't think it's possible to apply lossy compression when importing directly into Lightroom.  I know you can do it with the DNG converter and on export but I don't think this is the case here.
    In which case we need to determine which set-up producing is the "correctly" sized files.  What's the camera and what are the respective file sizes from work and home?

  • Creating Multiple Files with different name at Receiver side

    Gurus -
    Can anybd tell me how to generate multiple files at the Receiver side in the given target directory with different file names?
    One source message will contain number "N" using which we have to generate files "N" number of times at the Receiver side.
    Kindly help.

    hi,
    are you following this blog?
    provided you have SP>14 and no IDOC/HTTP involved.
    and have you got the error you mentioned when testing with sample payload?
    from where did you take the payload? if is from SXMB_MONI make sure you dont have <MESSAGE> tags in the payload,generally systems adds <MESSAGE> tags when you do multi mapping.
    get the payload from SXMB_MONI right click ->view source payload(this is raw data) and test it.
    it should be ok now.
    and refer my discussion in the thread ,as I got he same error.
    Split mapping created no messages -Mluti Mapping

Maybe you are looking for

  • How to extract data from .xltm file in a (dataset, datatable or a list) using wpf c#

    Hi all, As we can get data from .xls, .xlsx file in a dataset. Now i want to read all the entire data from .xltm file. I also want to get all sheets name from .xltm file. I am using .Net framework 4.5, Visual studio 2012. Please help me. I am unable

  • NG 7 Billion - How'd they do that?

    Curious if anyone knows how National Geographic achieved launching the ipad email browser filled in with HTML body content directly from their digital magazine? At the beginning of each article, there is an email icon displayed, and when you click on

  • ValidateData.js - apply changes to data form

    Hi, I've modified the ValidateData.js file to add a button to a form. My question is how do I actually see the changes I've made in the file appear in the data form? In layman's terms, how do I execute the code inside ValidateData.js? Thank you!

  • Publishing to .exe without embedding movie...

    Hello, I have project that uses many imported .flv movie. Is it possible to publish captivate proect into .exe without embedding the flv movie? So the movie still in separate file like if I publish to flash movie. Thanks

  • System Preferences ask me to move to iCloud but I'm already there. What's going on?

    Hello all, I'm a little confused. Every time I go to system preferences and select iCloud I get the pane which tells me to move my MobileMe account to iCloud. So every time I select it and it takes me to the mobileme page and onto the find my iphone