Rename file in source directory

Hi all,
I have a scenario where we leave the flatfile in the sourcedirectory after we transported it via XI to the target. To make sure I do not send the same file twice I want to rename it right after the transport. So far I do not really know how.
Can someone help me?
Thanks
Cornelius

HI,
As mentioned by other reply, first option is you can Archive the files in the different folder.
http://help.sap.com/saphelp_nw2004s/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
Second option is Executing a Shell Script from the Sender File Adapter using OS Command option.
You can archive with DateTimestamp..
Regards,
Moorthy
Message was edited by: Krishna Moorthy P

Similar Messages

  • Error in sender file adapter: source directory does not exist

    Hi,
    The PI system is 7.11
    I've created sender file adapter with following details:
    Transport Protocol : File System
    Source directory: /interfaces/In
    I checked in AL11 that this path really exists and it does. (I can even see the .txt file that should be processed.)
    But still i get in Communication Channel Monitoring the following error:
    "Configured Source directory "/interfaces/In" does not exist.
    (i also tried to give the source directory as "interfaces/In" and as "//interfaces/In" but still the same error.
    Any suggestions as to what is wrong?
    kr
    Robert

    Actually, Need to use forward slash (/) to separate directory names in accordance with the Java specification.
    But wanted to try if that works..
    Also check directory name , path again as this is case sensitive...
    --Divyesh

  • File Adapter Source Directory

    I have set up a File Adapter comms channel that should be picking up a file from the XI SAP system directory path F:\usr\sap\temp.
    I place a file in that directory and can see it via SAP transx AL11.
    However my comms channel is not picking up the file so my process does not start.  I had previously been using a FTP File Adapter and that was working fine. So I know my other configuration is correct.  I now needed to testing something use just the plain File Adapter.
    The RunTime Cache has been refreshed and I can see my CC via SXI_CACHE.
    Here is what I have entered into the File Sender Adapter
    Transport Protocol : File
    Message Protocol : File
    Adapter Engine : Integration Server
    Source directory : F:\usr\sap\temp
    File Name         : MYFILE.XML
    Processing Options :
    QAS : EO
    Poll Interval 60s
    Processing Mode : Delete
    Processing Seq : By Name
    File Type : Binary
    Adapter Status : ACTIVE

    Hi
    check the following things
    first select ur message protocol as "NFS". save the changes and activate the channel.
    if still not work go to the communication channel monitoring using the path
    runtime work bench->compnent monitoring->dispaly->adapter ebngine->communication channel monitoring--->enter ur channel name and click on use filer button.
    and check whether the channel is started or stopped.
    if stopped start the channel and the try.
    if u still face the problem please reply me back.
    Thanks
    Rinku

  • NFS Sender File Adapter Source Directory

    Hello everybody,
    I have the next problem cause company politics I can't put some files that I need in the XI Server, so I sould take them from another server directory, and cause compañy politics too I can't use FTP so I need to use NFS, but I've been reading some threads about it and some of them says I can't do it and some of them says that I can do it and even give come paths, now the file system is in a Unix Server, how can I do this????? should I put the server an path direclty in de cc or should I map the directory and how do I do this, any help would be appreciated, thanks in advance.
    Regards,
    Julio

    Hello Julio,
    If your lacation is as follows:
    server01\path1\path2
    Then put *
    server01\path1\path2* as your source directory.
    Important
    For Linux ensure that the <sid>adm user can access the specific location.
    For Windows ensure that the sapservice<sid> user can access the specific location.  (Will probably have to be on the domain to achieve this).
    Regards,
    Yaghya

  • Renaming files in document directory

    Hi,
    in my app I save files to the document directory. Everything works fine.
    But now I want to rename files from within the app. So in my uitextfield I type in the new title of the file and click save.
    How do I do that? I have searched but I couldn't find anything.
    Thanks for your help!

    NSFileManager moveItemAtPath:toPath:error

  • I want to Pick the Single file from The source Directory

    Hi,
       My Scenario is File to RFC .. I'm getting the files in the source Directory.. File names  are  SENDER_(TIMESTAP).XML .. but the problem is... When ever  Files  are available in the Source Directory  Immediately  XI was picking  all the files at a time.. But I want to   to Pick a single file at a time..
    for Making  this what we have to do..   After Processing the first file then only my Sender adapter should pick the next file...  (even though Multiple files are available in my Source Directory)
    Regards
    Jain

    Hi,
    the other option was use Adapter specific attributes in the Sender Communication channel..
    or
    while droping the files ask them to drop using time stamp in another directory  and an external validation is required .. and after validation push single file to Source directory using batch file..
    i.e use a batch file using run time operating system or make that batch file to run at OS level ..
    where the batch files needs to validate the time interval of the file and needs to push a single file to the source directory.. where from there we can directly pick a single file and process..
    regards,
    Kishore

  • Move files from source to destination directory

    I would like to copy files from source directory to destination directory, which have a creation date lower than p_date. p_date is a entered value of a forms field.
    source:
    c:\tmp\my_b.pdf 10.10.06 04:21
    c:\tmp\my_c.pdf 10.10.06 04:20
    c:\tmp\my_d.pdf 09.10.06 01:35
    c:\tmp\my_e.pdf 05.10.06 02:13
    c:\tmp\my_f.pdf 01.10.06 00:20
    User enter the value: 09.10.06 09:35
    destination should be:
    f:\tmp\my_d.pdf 09.10.06 01:35
    f:\tmp\my_e.pdf 05.10.06 02:13
    f:\tmp\my_f.pdf 01.10.06 00:20
    win_api_utility.move_file move all files from source to destination, but only I need a part of them. I have installed Forms 6i and Windows 2000. Does anybody have an idea?
    Best regards,
    tom

    Hi Tom,
    In a Forms 10g environment you would probably use a Java component. On a c/s environment I would issue a host command. Although the windows 'copy' statement has no 'date' flag, the windows 'xcopy' statement has. Type 'help xcopy' in a command/dos box for the syntax/flags for the 'xcopy' statement.
    Hope this helps,
    Matthieu de Graaf

  • Using anonymous to delete or rename files

    We have setup pure-ftpd on our Sles 10sp3 Oes2, we would like the anonymous user to be able to delete or rename files in the directory, but we cannot find any setting for this on the configuration file. The anonymous home directory is located on the NSS volume. So is it possible to configure the anonymous user to delete or rename files ?

    grpadmin,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Forums Team
    http://forums.novell.com

  • Renaming the file in the Source Directory

    Hi ,
    I have a scenario where the file is left in the source directory after sending it to XI for processing. In order to exclude the file from next polling onwards , the file needs to be replaced . I know the solution is possible through Archiving or OS Command (which are not possible in my project)....Please let me know the feasibility through adapter module(if possible ,sample code pls) or any other solution ?
    Thanks in advance
    Edited by: chitra l on Aug 12, 2009 12:09 PM

    Chitra,
    Why do you want to go to the hardest route when you have a standard and simple route. The hardest would be to write an adapter module. The simplest way would be simply read the file and send it to the same folder with a different name. You dont need to do anything in IR also.
    /people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
    Regards,
    ---Satish

  • Ssis - move files from one directory to another and rename destination file if present

    Hello,
    How is it possible to move files from one directory to another directory and if the file already exists in destination directory then rename it?
    Thanks

    1. Use a foreach loop with file enumerator pointing to first directory.
    Inside loop have a ssis variable of type string to get filename (@[User::FileName])
    Choose option as Fully Qualified in loop
    2. Add another variable called @[User::DestFileName], set EvaluateAsExpression true for it and set expression like this
    REPLACE(@[User::FileName],<source directory path>,<destination directory path>)
    put actual paths in above expression in your case
    and another variable called @[User::RenameFileName], set EvaluateAsExpression true for it and set expression like this
    REPLACE(@[User::FileName],".","_old.")
    3. Create a boolean variable say @[User::FileEXists]
    4. Add a Script Task inside the loop and pass @DestFileName variable in ReadOnly mode and FileExists in ReadWrite mode
    Inside Script Task write code as per below
    http://blog.dbandbi.com/2013/11/13/check-file-exists-ssis/
    5. Add File System Task choose operation as Rename File, Select IsSourcePathVariable as true and select @[user::DestFileName] variable and IsDestinationPath variable as true and select @[user::RenameFileName] variable
    6. Choose ExpressionAndConstraint option for precedeence constraint from ScriptTask to above File System Task and choose constraint as OnSuccess and expression as
    @FileExists == True
    7. Add another File System task with operation as Move File Select IsSourcePathVariable as true and select @[user::FileName] variable and IsDestinationPath variable as true and select @[user::DestFileName] variable. Join Script Task as well as
    File System Task above to this task and choose constraint as OnSuccess and Multiple Constraint option as Or (dotted line)
    Then once executed it will work as per your requirement
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Renaming the Source Directory

    What negative effects will renaming the source directory have on my help file topics, graphics etc.  For example, the current directory is c:\PRD and I need to rename it to c:\PRD2.

    For what it is worth, you can also click on the link whereupon Rh will report it doesn't exist and remove it for you. Then you can browse to the new location.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How can I get a file to copy all of the files in a directory except itself and the source of the copy function will be the directory the final program is in?

    How can I get a file to copy all of the files in a directory except itself and the source of the copy function will be the directory the final program is in? This application must be in Lab View 8.

    you mean something like this (see below)?
    Now you may have to implement code to check if the destination folder exists and to create it, etc.  But if you use the Front Panel Control to select the destination folder, it should be okay.
    Not the best implementation, mind you but you'll get the idea..
    Message Edited by JoeLabView on 04-18-2007 03:43 PM
    Attachments:
    copy folder contents.PNG ‏10 KB

  • Does anyone know how to load a file from the source directory?

    I have a Photoshop panel  that uses the Texturizer function. I would like to use the images in the src images directory of the  project. I need to reference the /src/images directory of the panel when the project is running.
    Does anyone know how to access the source directory using action script?
    I have tried a number of options but only seems to work if I hard code a location
    public static function Mat02(): void
    // Works
    var myTexture:File = new File("C:\\Users\\Ed\\Adobe Flash Builder 4.6\\LayoutBuilderSuite\\src\\images\\mat 02.psd");
    // Tried - no luck
    //          var file = File.applicationStorageDirectory.resolvePath("mat 02.psd");
    //          var file:File = File.applicationDirectory.resolvePath("mat 02.psd");
    //var file:File = File.applicationStorageDirectory;
    //file = file.resolvePath("mat 02.psd");
    //var myTexture:File = File.applicationDirectory.resolvePath("mat 02.psd");
    //var myTexture:File = File.documentsDirectory.resolvePath("mat 02.psd");
              var desc5:ActionDescriptor = new ActionDescriptor();
              desc5.putEnumerated( app.charIDToTypeID( "GEfk" ), app.charIDToTypeID( "GEft" ), app.charIDToTypeID( "Txtz" ) );
              desc5.putPath( app.charIDToTypeID( "TxtT" ),   myTexture  );
              desc5.putInteger( app.charIDToTypeID( "Scln" ), 150 );
              desc5.putInteger( app.charIDToTypeID( "Rlf " ), 4 );
              desc5.putEnumerated( app.charIDToTypeID( "LghD" ), app.charIDToTypeID( "LghD" ), app.charIDToTypeID( "LDBR" ) );
              desc5.putBoolean( app.charIDToTypeID( "InvT" ), false );
              app.executeAction( app.charIDToTypeID( "GEfc" ), desc5, DialogModes.NO );
    Thanks

    I haven't seen too many questions like this on this forum.  Did you also try the photoshop forums?

  • Source Directory same in FIle to IDOC

    Hi Friends
    Can we have a same File Name and same Source Directory for 2 different scenarios?
    Means in my communication channel i am putting
    this
    Source Directory : /POS/input/test
    File Name:     *.DAT
    for one let us say ABC file to xyz-iDOC scenario
    and same Source directory and same file name for
    another scenario say hgf file to uio-iDOC scenario
    Will it work or do i have to change the name of the file or something?
    Please guide
    Thanks

    Swarup,
    I've some doubts.
    >It will definately work provided you have not marked any action such as archive or delete file after processing in sender communication channel.
    Ok, I agree to this point. If you give TEST mode then obviously it will work. Provided there is atleast some time gap between these communication channels polling time. For example Channel1 Polling time 60 seconds, Channel2 Polling time 60 seconds. For example if he activate the first channel at  10:00:00 AM, then he need to activate the other channel 10:00:30 AM( hh:mm:ss). But I always need to make sure, re-activating again it's big pain we need to check at what time the first channel is activated based on that  u need to re-activate the next.
    >If suppose you need to use the file for both scenarios then you could even use the common sender communication channel also.
    Is it, are u sure? So u mean the same comm.channel can be assigned to different scenarios also is it? I mean for two diff.O/B Interface you can create two diff.sender agreements with same channele? Can you try this and let me know?
    raj.

  • File Sender Adapter - Multiple Source Directory

    Hi all,
    I have the following file to IDoc Scenaraio:
    The source file might be in any of 3 directories in source system and so created file sender adapter as follows:
    File access parameters:
    Source Directory : Directory1
    File Name         : Filename*.XML
    Addiontal Directory:
    Directory2    Filename*.XML
    Directory3    Filename*.XML
    The porblem we are facing is the file adapter is picking the file from Directory1& 2 and not from Directory3.
    If the change Directory Order in adapter as follows:
    File access parameters:
    Source Directory : Directory3
    File Name         : Filename*.XML
    Addiontal Directory:
    Directory2    Filename*.XML
    Directory1    Filename*.XML
    ... then file from Directory 2 & 3 is getting processed and not from Directory1.
    Any thoughts on this will be greatly appreciated.
    Thanks
    Sarat.

    Why use BPM for this?
    Instead write an abap program to pick from any of 3 directories in source directory and place it in the shared XI folder and configure your file adapter pointing to XI shared folder...shecdule the abap report for every 5 min..
    Wanna know more /people/sravya.talanki2/blog/2005/08/23/sender-xi-ftp-adapter-with-regular-path-expression-150-abap
    Or write OS level scripts for doing same.

Maybe you are looking for

  • Need to know the table for sales org and sales area of role Sold-to  in CRM

    Dear Sir, Our server is CRM 5.0, I would like to download the data from CRM , however, I would like to know the table name which keep the sales org and sales area of role Sold-to  in T-code : BP . However, we can't find the actualty table. Please kin

  • Safari Keeps Crashing on MacBook Pro 10.9.1

    Can someone who knows what to look for take a peek and see what's up here? Here is the crash report: Process:     Safari [3178] Path:        /Applications/Safari.app/Contents/MacOS/Safari Identifier:  com.apple.Safari Version:     7.0.1 (9537.73.11)

  • Icloud mail attachment file name error

    Here is what i found out on icloud.com using Mozilla Firefox ver 15. If attachment name starts with "Print" in iCloud mail, it will not save properly when you click it. File name contains only "Print" no matter the length of file name.

  • Create a BI client in SM7.0

    To implement the E2E monitoring on SM, we need to create a BI client.  1) How to create a BI client on SM? 2) We have a client100 which is used for CHARM.  Can we use the same client for E2E? Thanks a lot!

  • FaceTime volume cutting out mid-conversation

    In the middle of using FaceTime I all of a sudden can't hear the person I'm speaking with. They can hear me but I can't hear them. It's almost as if they've pressed mute but this isn't the case. This has happened with multiple people. Any advice? Tha