Archiving the file in to Multiple Directories

Hi,
   I have a scenario which takes the file from the source system and uses proxy to post the data in to ECC.When it picks the file it has to pick from multiple directories.This i can achieve by using advanced selection for source files and
also i need to archive these files to multiple directories depending on the source directory. I have given an example below.
      ex : Source directory : /users/system/location1/input
             Archive Directory : /users/system/location2/archive
            The file can also be picked up from
             Source Directory :/users/system/location2/input
             Archive Directory : /users/system/location2/archive
So i have to read the data from multiple directories and archive the same to multiple directories(Depending on the source).Can we achieve this using single file adapter(Communication channel)
   Please help me to resolve this issue.
Thanks in advance
Sripathi G Yogesh

Hi Sripathi,
no, you need for each folder an adapter resp a Communication Channel and, as well, a Sender Agreement for that Channel. But you can copy a well working channel and just change the path to the folder and to the archive. You can reuse the interfaces and the receiver determination as well. I dont see any need for BPM in that case.
Regards,
Udo

Similar Messages

  • How to archive the file

    HI All,
            In file to file scenario, i am trying to archive the file being sent by the source. But it's not showing up in the archive directory.
    The scenario is working fine, i am getting the file at the target end as req. But why is archiving not working?
    Does the archive option in the Sender File adapter archive file on the source or the target folder?
    XIer
    Message was edited by:
            XIer

    Hi,
    I hope you already have created the archive directory in the specified path. If not please create first and then run your scenario. Also once when you create the directory and when you run the scenario if you dont have the file in archive directory then please check permissions. Please see the sender communication channel for any error. If everything is working till this step then check the file you are picking. Might be the file is Read-only. If it is yes then change the permissions from read only to full control.
    Regards,
    ---Satish

  • Adding time stamp while archiving the file in b2b

    Hi
    I want to add the time stamp when archiving the file when I am using file/ftp channel. can anybody tell me how can I do that. otherwise it is overwriting the exising file in archive directory.
    Thanks
    Sri

    Hi Sri,
    otherwise it is overwriting the exising file in archive directory.It might be happening because inbound files are not having unique name. You have two options -
    1. Make sure that inbound files have unique name (you may add timestamp in inbound filename format)
    2. Do not use the archive feature of Oracle B2B. Instead use a transport callout to write a copy of incoming document into desired directory with desired filename. To know more about callout offering of Oracle B2B, please refer -
    http://docs.oracle.com/cd/E28280_01/user.1111/e10229/callouts.htm#CHDEFBDG
    Regards,
    Anuj

  • How OSB archive the file name

    How OSB archive the file name?
    I have used JCA adapter to archive file while reading in OSB and OSB does archive the file with different name.
    But OSB is creating the file with name as understandable form. Is it possible to give my own defined name while archiving the file(s).
    Please help me !
    -Thanks

    I dont think it is possible to change the names of the archive files once OSB processes the file. I haven't found any references of the same in the JCA adapter documentation as well.
    You can check with Oracle support if this is feasible.
    Thanks,
    Patrick.

  • Creation of multiple Records in the file as per multiple segments in IDOC

    Hi SapAll.
    i have got a requirement to create a multiple records in a file based on multiple segments at sending Idoc in a File To Idoc Interface.
    the Scenario  is the reciever message type is mapped with fields of 3 segments in sending IDOC.
    SEG01   1.....1(PARENT SEGMENT)
      SEG02  0...999999(CHILD SEGMENT)
      SEG03 0...9999999(CHILD SEGMENT)
    in an instance where if the SEG01 exists for one time and SEG02 exists for 2 times and Seg03 Exists for 2 times PI is creating the file with 2 records in it but
    when if the SEG01 exists for one time and SEG02 exists for 2 times and Seg03 Exists for 1 time it is raising the error in message mapping where it is supposed to create 2 records in a file with empty values in the fields (mapping with seg03) segment.
    can anybody help me in this.
    regards.
    Varma

    you can create a UDF after you validate if the count match. if match you create the message if not, call de UDF.
    this UDF should receive two parameters -->Queue SEG2 and queue of SEG3.
    then you should loop by the count of SEG2. if you find a Supress Value in the queue of SEG3 add a "" to result. for example.
    for(i=0;i<=SEG2.count;i++){
    If SEG3<i>.equals(ResultList.SUPPRESS) {
           result.addValue(" ");
    }else{result.addValue(SEG3<i>);
    the result of UDF is a queue which should map to target field directly coz it has context changes
    I think that is what you are needing. if no let me know.
    RP
    Edited by: Rodrigo Alejandro Pertierra on Jun 17, 2010 11:56 AM

  • How to use the js in the case of not sure the file name into multiple files to PS?

    function place($path){
        var idPlc = charIDToTypeID( "Plc " );
        var desc28 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
        desc28.putPath( idnull, new File( $path ) );
        var idFTcs = charIDToTypeID( "FTcs" );
        var idQCSt = charIDToTypeID( "QCSt" );
        var idQcsa = charIDToTypeID( "Qcsa" );
        desc28.putEnumerated( idFTcs, idQCSt, idQcsa );
        var idOfst = charIDToTypeID( "Ofst" );
            var desc29 = new ActionDescriptor();
            var idHrzn = charIDToTypeID( "Hrzn" );
            var idRlt = charIDToTypeID( "#Rlt" );
            desc29.putUnitDouble( idHrzn, idRlt, 0.000000 );
            var idVrtc = charIDToTypeID( "Vrtc" );
            var idRlt = charIDToTypeID( "#Rlt" );
            desc29.putUnitDouble( idVrtc, idRlt, 0.000000 );
        var idOfst = charIDToTypeID( "Ofst" );
        desc28.putObject( idOfst, idOfst, desc29 );
        executeAction( idPlc, desc28, DialogModes.NO );
    for(i=1;i<=4;i++){
        place ("E:\\aaa\\"+i+".jpg");
    目前我的解决方案是,把多个文件提前修改成数字序列,然后用for循环调用,我想问的是,如果我不更改文件名,是否也可以同时导入多个文件?
    At present my solution is to advance the multiple files modified into a sequence of Numbers, and then use a for loop calls, I want to ask is, if I don't change the file name, also can import multiple files at the same time?

    You could use a file or folder selection dialog and then feed the selected files into the for-clause.
    var aFile = selectFile(true);
    alert (aFile);
    ////// select file //////
    function selectFile (multi) {
    if (multi == true) {var theString = "please select files"}
    else {var theString = "please select one file"};
    if ($.os.search(/windows/i) != -1) {var theFiles = File.openDialog (theString, '*.jpg;*.tif;*.psd;*.png', multi)}
    else {var theFiles = File.openDialog (theString, getFiles, multi)};
    ////// filter files  for mac //////
    function getFiles (theFile) {
        if (theFile.name.match(/\.(jpg|tif|psd|png)$/i) || theFile.constructor.name == "Folder") {
            return true
    return theFiles

  • Archiving the File in the same source folder

    Hi EveryBody,
    I have a file to file scenario.
    Scenario Description :
    I have 10 source folders and one Communication channel.I am picking the files from different source folders (with .txt extension) using the option Advance Selection for Source File in the CC.
    I am able to pick the files,do the Content Conversion and process them.
    Now i want to archive these files in the same source folder from where i pick.The Archive Filename will be same as the Source Filename with the extension changed to .eof (for example if i have a file in folder X with the name input.txt then it shld be picked and archived in the same folder X with the name input.eof).
    Can somebody help me out on this?
    How can i do this?
    Is there any option to do such type of archiving for any number of folders using a single Communication channel?
    Adapter Module is one of the option but is there any other option?
    If Adapter module is one of the option , can somebody expain me the Module execution flow for the sender file adapter , that is whether custome model will execute first or standard module is executed before that.
    Helpful answers will be rewarded with points.
    Thanks,
    Zabiulla

    Hi
    While configuring your communcitation channel, in the processing tab --> processing mode,you need to select the archive mode and then specify the path as to where you want to post it, in your case it will be the same path as to your source path, give the same path and specify the name of the file as to what name you want to archive
    Hope this clears your doubt
    Thanks
    Saiyog
    Edited by: Saiyog Gonsalves on Jun 4, 2008 12:14 PM

  • Sharepoint 2010 - Archiving the files from one document library to another document library in sharepoint site

    I have a requirement to move the documents from one document library to another document library.
    Source Library - DocumentLib
    Destination Library - Archive
    Archive document library will have folders by fiscal year.
    Source documentlibrary has files from year 2012 till date.
    Archive folder will have folders by fiscal year -(fiscal year starts from July1st -June 30th )
    If the document is created date  between 1st  July 2012 -June 2013 then move the document to Archive document library and in  folder Fiscal Year 2013.
    If the document is created date  between 1st  July 2013 -June 2014 then move the document to Archive document library and in  folder Fiscal Year 2014.
    The structure of destination document library folder should be same as source document library.
    Please find attached the screenshot of the requirement.
    Files Type - Excel,pdf,microsoft outlook item
    Could we use Sharepoint designer workflow to achive this task?
    Any help on this will be appreaciated.

    Hi Asritha,
    According to your description, you want to create a workflow to meet the need.
    Per my knowledge, there is no built-in action which can move the documents from the current library to a folder in another library.
    I recommend to use the custom activity 'Copy List Item Extended' which need to be downloaded from
    http://spdactivities.codeplex.com/.
    Please per the steps below to deploy the custom activity to SharePoint:
    Download the activity form http://spdactivities.codeplex.com/
    Open Dos command prompt.
    Browse to the directory that you can access stsadm.exe. The default location in version 3.0 is C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\bin
    Type the stsadm commands: stsadm -o addsolution -filename C:\UsefulSPDWorkflowActivities_0.5.0\DP.Sharepoint.Workflow.wsp (“C:\UsefulSPDWorkflowActivities_0.5.0\” is the file path)
    Type the stsadm commands: stsadm -o deploysolution -name DP.Sharepoint.Workflow.wsp -allowgacdeployment -force -immediate 
    Open the Center Administration, Click System Setting->Manage Farm Solution-> dp.sharepoint.workflow.wsp->Deploy to the Web Application.
    After that, we can create a workflow to meet the need.
    Here is the detailed steps to create the workflow:
    Create a workflow associated with the Source Library DocumentLib and set the workflow to start when an item is created.
    Select If current item field equals value, change the settings to be If Current Item: Created is greater than 7/1/2012.
    Select If current item field equals value, change the settings to be If Current Item: Created is less than 6/30/2013.
    Select Copy List Item Extended, change the settings to be Copy item in Current Item to list at Fiscal Year 2013 folder url.
    Select Delete Item, change the settings to be Delete Item in Current Item.
    Select If current item field equals value, change the settings to be If Current Item: Created is greater than 7/1/2013.
    Select If current item field equals value, change the settings to be If Current Item: Created is less than 6/30/2014.
    Select Copy List Item Extended, change the settings to be Copy item in Current Item to list at Fiscal Year 2014 folder url.
    Select Delete Item, change the settings to be Delete Item in Current Item.
    Publish the workflow.
    Best regards.
    Thanks

  • Can the File Adapter handle Multiple Record Layouts in COBOL?

    I am trying to parse flat files that have a record type field in the first four characters on each record. As a test I tried to use the following record definitions:
    01 CONTRACT-HEADER.
    05 RECORD-TYPE PIC X(4).
    05 TRANSACTION-TYPE PIC X.
    05 CONTRACT-NUMBER PIC X(32).
    05 CONTRACT-RELEASE-NBR PIC X(30).
    05 CONTRACT-FILLER PIC X(2025).
    01 CONTRACT-LINEITEM.
    05 RECORD-TYPE PIC X(4).
    05 TRANSACTION-TYPE PIC X.
    05 LINE-FILLER PIC X(1664).
    I also tried smaller records with simple test data. When I press the "test" button in the native file adapter the XML is never generated if I have more than one record type as above. Suppose that the contract-header record type always has the string "X001" in it, while the contract-lineitem always has "X015" in the record-type. I chose Us-ascii and chose $eol as a delimiter. The file on my windows computer has carriage return line feed after each record. I know that the fixed length converter works, but because the records really have 50 fields on each record type and are long, I don't think I can actually use that one in one sitting. Has anyone ever gotten two different record lenght cobol definitions to work? Do I have to hand edit the XML to specify the delimiter? I don't see any delimter specified in the generated XML before I attempt the test.

    Rahul,
    I recommned you should use "|" as "," can be embedded in a text string. I guess you can pass a directive to use to deliver "|" delimited file :). If you want to handle both then you might have to write a shell script or bat to pass delimiter as an argument which will edit and replace your control file.
    Regards

  • Changing The File Type On Multiple Documents Simultaneously

    I have over 100 documents that I want to end in ".aif". Is there a way to do this in one pass? I would, if possible, prefer not to have to go through each and every doc individually and change them manually. I've done the very thing on enough ocassions and it's very time consuming to say the least.
    I opened Automator, but it didn't seem to have anything for this function. I selected all the files and did a mass "information" (apple "i"), but was not allowed to change the name and extension area.
    Any help would be greatly appreciated.
    Thank you very much one and all in advance for all the help and support,
    Javier Calderon

    Thank you both. Niel, I shall look at some of the options available on the link you provided and see what occurs.
    Gnarl, regarding the Applescript, I just took a look at it, and, although it at first glance looks pretty intimidating, I think that this might be the very thing that will get the job done . . . no? I'll try to follow the instructions, cross my fingers, and hope for the best.
    Thank you both again.
    Javier

  • IDOC to File scenario with multiple directories on same FTP.

    The scenario is IDOC -- to FTP (Receiver file adapter). Based on the condition in the sender IDOC say if EIDKA01-BSART = Y than the directory path on FTP server is 'A' ELSE 'B'.
    There is only one reciever service defined for the FTP server in the Integration Directory. Its not multiple receiver scenario.
    How do we do this?
    Thanks

    Hi !
    Just create an UDF in graphical mapping and put this code inside:
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    //get Key of Directory
    DynamicConfigurationKey keyD = DynamicConfigurationKey.create( URLFile, "Directory");
    //Replace value of Directory
    conf.put(keyD,dir);
    where "dir" contains the destination path depending on the EIDKA01-BSART value. When this code executes, if the receiver file adapter has the adapter-specific attributes (directory) checked, then it will set the "directory" value to the one specified in the "dir" variable.
    Regards,
    Matias

  • Where does the details of the files on usr/sap directories get saved?

    hi,
    when a (.dat) file is created by background job processing in the 'usr/sap/' directories, where does the details like last changed, last modified of these files get saved?
    which table does these detiails get saved?
    thanks,
    swamy

    Hi,
    Transaction AL11 does exactly wat you are looking for,
    it lost list of files present on the server SORTED on date and time.
    and also u can use function module EPS2_GET_DIRECTORY_LISTING which contains a date/time stamp
    Hope it helps u...

  • File sharing across multiple user accounts on the same machine

    Hello,
    I try to figure out how multiple users (my wife and I) on the same mac can have equal access to files on the local drive without granting that access to all users on that machine or even the rest of the world.
    My research sofar hasn't come up with a satisfying solution. Here are the solutions that I am looking at:
    1. Enable a permission system that ensures access to both users in all cases (file/directory creation, copy and move).
    I only found a suitable solution for creating and copying files/directories but not for moving them.
    See the following articles for reference:
    https://discussions.apple.com/message/20787617#20787617 Setting up a shared structure that works e.g. for iPhoto Library but not for moving files to and from
    https://discussions.apple.com/message/4005647#4005647 Helpful information on POSIX Permissions, ACL's an Permission inheritance
    This would be my first choice if I can get around the problem of moving files...
    2. Disk Image
    Create a disk image which ignores persmissions and set permissions for the file that contains the image instead.
    Read this article to get further details: http://support.apple.com/kb/HT1198
    This solution will work but has a few disadvatages:
    There's no mutual access from multiple user accounts since an image may only be mounted by one user at a time.
    One has to create a startup script that mounts the image upon login which would create a first come first serve for access to the image content.
    3. Using a file sharing protocol (e.g. afp or smb) locally.
    The idea behind it is to have a server providing the files mutually to multiple users one the same machine. At them moment this seems to be the most promising approach to me.
    Unfortunately I can get acces from another machine but not from the same machine. Has anyone ever tried to access the file sharing (afp or smb) from the same machine on which the server is located?
    Has anyone got some helpful hints for me?
    Thanks in advance.

    Sorry, but you didn't specify details, and it was worth checking whether or not you had overlooked this approach.
    The problem you're having (as I suppose you already know) is that any new disk item inherits the permissions of the folder it is originally created in in.  These permissions (sensibly enough) need owner or administrator permission to change once they've been established; that will happen when you copy a file to a new location (because that's essentially creating a new file) but not when you move it. any of the following would work:
    changing the permissions on newly created files for both users so that they all explicitly give r/w access to a particular group.
    writing a droplet that would change the permissions of files dropped on it and move them programmatically to the shared folder
    set up a folder action or launchd job that would watch the shared folder and automatically convert permissions on files placed in it.
    The last would be the approach I would take, but...  which appeals to you?

  • Multiple drag emails from Mail to a finder window and for it to name the files as the subject heading

    Hi
    I have been using Mac's now for about 10 years and this is my first problem.
    I have recently moved into an office that use PC's with a Windows server.
    I have set up the network to transfer files and view the windows server and it  works fine.
    I have a problem in that my colleagues on PC need to be able to view my emails which I send and receive using Mail. They therefore need to have logical title names and the date sent and ideally who to or from. I view them and archive them using Mail which is fine for me.
    I understand about the archiving and copying of mailboxes but this gives every email the un-fathomable title name 9944847 etc.
    I can get round the problem by dragging and dropping every email I send and receive individually and it will automatically give it a more logical title of the subject heading however the date is when it was dragged not when sent. This is a pain if I am away or forget to save an email for a day or two and then the date is inconsistent.
    Is there a way to batch copy emails from Mail to a finder window and for it to name the files as the subject heading or to archive the files in a similar way so they retain the detailed information my colleagues require.
    And no I can not get to all change to Mac and I don't really fancy using Outlook, Entourage or Parallels.
    Please help.
    Toby

    Quit Mail. Force quit if necessary.
    Back up all data. That means you know you can restore the Mail database, no matter what happens.
    Triple-click the text on the line below to select it:
    ~/Library/Mail/V2/MailData/Envelope Index
    Copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder
    from the menu bar. Paste into the box that opens (command-V), then press return.
    A Finder window will open with a file selected. Move the selected file to the Desktop, leaving the window open. Other files in the folder may have names that begin with "Envelope Index". Move those files, if any, to the Trash. Relaunch Mail. It should prompt you to re-import your messages. You may get a warning that the index is corrupt and that Mail has to quit. Click OK.
    Test. If Mail now works as expected, you can delete the file you moved to the Desktop. If you get a warning that the file is in use when you try to empty the Trash, log out and log back in.

  • Drop the files into different directories based on the filename

    Hi,
    I had a reqiuirement based on the file name, i should drop the files in to different directories.
    I can get the filename through variable substitution in receiver file communication channel, now i want to drop the file into different folders based on conditions.
    suppose, if the file name is DDDX234
    i should do substring of filename0+(4), if the value is L then i should drop in X directory
    suppose, if the file name is DDDY234
    i should do substring of filename0+(4), if the value is L then i should drop in Y directory.
    How can i drop the file into differnent directories based on filename.
    Thanks
    Srinivas

    Thanks Michal,
    I mapped the directory and filename to the target header in the mapping
    Filename --> UDF --> Header(target)
    and in the receiver channel checked the ASMA and given * in the filename and directory name.
    But in runtime iam getting the error as
    Attempt to process file failed with com.sap.aii.adapter.file.configuration.DynamicConfigurationException: The Adapter Message Property 'FileName' was configured as mandatory element, but there is no 'DynamicConfiguration' element in the XI Message header
    MY UDF is
    public String Directory(String a,Container container){
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key  = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "Directory");
    String FileName = conf.get(key);
    FileName = a;
    conf.put(key, FileName);
    %%%based on filename the directory should change
    String Directory = conf.get(key1);
    Directory = "/SAPInterface/XI/PPD/DHX/out";
    conf.put(key1, Directory);
    return "";
    Help me in correcting this error.
    Thanks
    Srinivas

Maybe you are looking for