Moving file from Target to Archive Directory

Hi All,
My Scenario is that we have a .txt file in Target directory in SAP PI (AL11) and when an arching Script is run this file is moved from Target folder to Archive Folder and also uploaded in R3.
Now the requirement is that the file is transffered from Target to Archive folder without being processed.Now the user want the file back in Taget folder from Archive Folder also user also wants to know who has run the Script.
Please let me know how to put file back from Archive to target folder and check the log as who Run the Script.
Regards,
Nidhi

Hi Nidhi,
I think i am not getting your question
>>when an arching Script is run this file is moved from Target folder to Archive Folder and also uploaded in R3.
Now how the script is run? using OS commands of File adapter or by some other means
>>Now the user want the file back in Taget folder from Archive Folder also user also wants to know who has run the Script.
For getting it back in Target folder, you can manually copy it. Also to see who has done this you need to check how the scripts run. If it runs as a standalone one then you need to see whether in the system you have some log files of the run. If file adapter runs this scripts then check the Communication channel monitoring log (BTW it if was File communication channel which invoked this Scripts then the message would have sent to PI. Need to recheck that too)
Regards
Suraj

Similar Messages

  • Moving files from pc to mac - directory structure gets all messed up - help

    Hi, I just got my new Mac Book Pro (mid-2009) and I am having trouble bringing over my 70gb of data from my old pc. I am using VM Fusion and have also downloaded NTFS-3G. I cloned my PC HD onto an external USB HD (formatted with NTFS) and have plugged it into the Mac. I can mount the drive, read and write files from the drive, but when trying to copy files, it would start, but would not finish the job (threw an error after 50mb saying something about trouble copying a file and then froze). I called apple and they said try to do the copying through Fusion. I have one large Mac partition, no Windows partitions on my Mac drive and am running Fusion with XP Pro. I tested the copy function in Windows from my external HD to the "documents" directory in my Mac directory under my user node and small directories (.1 - 2gb) copied fine. But when I tried to copy a 20gb node, it started putting subfolders in random places within the tree structure under the root node I was copying. With 92,000 files, its hard to go re-sort the sub-folders into the right places. Why is it doing this and is there a better way? I'm leaving for 2 wk trip tomorrow and don't want to have to lug my PC with me. Anybody have any ideas? Thanks very much. Larry

    You are not in a MacBook forum.
    And I would use Boot Camp to set aside a Windows partition and install Windows natively.
    Fusion can run Windows on the Boot Camp partition just fine.
    MacFuse + 3G? or there is Paragon NTFS 7 for Mac OS X. Sometimes free is fine, sometimes commercial product. And Snow Leopard may have ability to read HFS+ from Windows (like MacDrive7/8 only that can write to HFS+ also).
    Corrupt directory?
    Bad filenames?
    Filenames that are valid for Mac Extended may not be valid on NTFS, but haven't heard of the reverse being a problem.

  • Issue in moving files from data fodler to processed folder in background

    Hi All,
    I am facing one issue in moving files from data fodler to processed folder in case of background execution.
    When i am executing the file in the foreground, i can move the file from Data folder to processed folder. I am using SXPG_COMMAND_EXECUTE FM to move the file from data folder to processed folder.  I can see the file in processed folder once the program is executed.
    But in case of executing the same program in background, it is giving me the error "Failed to move the file to processed folder" in the spool of SM37 and i can see the file still laying in data folder.
    I tried to check other programs which acesses the same folder as the above program, whether they are able to move. They are able to move the file to processed fodler successfully both in foreground and background mode.
    Please help me in resolving this issue.
    Thanks,
    Deepa

    Hi Sanu,
                    Please use teh following code to move the file from source to target folder.
    This is a code showing how to create and use COPY command of UNIX in ABAP
    PARAMETERS:
    Input file path
    p_input TYPE localfile,
    Processed file path
    p_proc TYPE localfile.
    Declare the Types to file data
    TYPES: BEGIN OF L_X_OUTPUT,
    sys(200), " Please note, there are asterisk before and after sys (i.e.sys)
    END OF L_X_OUTPUT.
    * Internal table to store file data
    DATA l_i_output TYPE STANDARD TABLE OF l_x_output WITH HEADER LINE.
    * Variable for the UNIX command
    DATA: l_v_unix_comm(255) TYPE c.
    Copy command of UNIX
    CONCATENATE 'mv' p_input p_proc
    INTO l_v_unix_comm SEPARATED BY space.
    For example the Copy command is stored as below
    cp u2018/data/interfaces/input/input_fileu2019 u2018/data/interfaces/processed/processed_fileu2019
    Examples of UNIX Command *u2022 mv filename1 filename2 --- moves a file (i.e. gives it a different name, or moves it into a *different directory (see below) *u2022 cp filename1 filename2 --- copies a file
    Execute the UNIX Copy command.
    This command will copy the file from input file path to the processed file path
    CALL 'SYSTEM' ID 'COMMAND' FIELD l_v_unix_comm
    ID 'TAB'
    FIELD l_i_output-sys.
    IF sy-subrc eq 0.
    write: 'File is copied successfully using UNIX command in ABAP'.
    ENDIF.

  • Moving file from one location to other in shell script

    HI All,
    I am facing one problem in moving file from one location to another location please help me out.
    My code is as below :
    mv ${file}.log ${DATA_XXX}/../archive/${file}.log_`date +"%m%d%y%H%M%S"`
    mv ${file} ${DATA_XXX}/../archive/'abc'.`date +"%m%d%y%H%M%S"`
    where file =test1 and DATA_XXX= "k01/aa/in"
    please help me on this
    Thanks

    Please describe the problem. Perhaps you are missing the / i.e. /${DATA_XXX}

  • Computer freezes when moving files from USB, or to another partitioned HD

    Hello, i've been moving files from two USB's to my Macintosh HD, and when I do that, the computer kinda freezes up, i can move the cursor, but not kinda click anywhere, and then a minute after or something, it gets normal again, but the transfer is going horribly slow. this happens when i move from Macintosh HD, to Macintosh HD 2 (a partitioned one). the files are 2 gb each USB. which means im transferring 4 gb at the time.

    Neurot wrote:
    I have 6 folders on my hard drive. These folders were created by downloading a bunch of rar files, then extracting them each to their own folder. I have not touched the permissions, so they should be the default of me having read/write and everyone else having read (correct me if i'm wrong).
    Using two Finder windows, I drag and drop the six folders from one hard drive to another, and hold down the Apple key so that it moves instead of copies. I let go and it starts copying the files (since there is no "move", but rather a "copy and then delete").
    I would recommend you don't use this method to move a lot of files between drives. it's much safer first to copy and if the copy is successful to delete the original afterward. there was a data loss bug in OS X a while back that wold sometimes lead to total loss on both the source and the target when doing this.
    this bug is supposed to be long fixed but still...
    How is the hard drive you are moving the files to formatted? what yo describe sometimes happens when moving a lot of stuff to or from FAT formatted drives. also, repair both drives in disk utility. repair disk, not permissions.
    Message was edited by: V.K.

  • HT4889 moving files from pc to mac book

    Hi have down loaded to set up moving files from pc to mac book pro but keep getting an error message on pc  saying error occurred whilst  preparing your info for transfer ! i am running visa on pc any help pls thanks

    Look at these links.
    *How to use your iPod to move your music to a new computer*
    http://docs.info.apple.com/article.html?artnum=300173
    http://www.ilounge.com/index.php/articles/comments/copying-music-from-ipod-to-co mputer/
     Cheers, Tom

  • Why does the new operating system not delete the moved files from their original location - it seems like an enormous waste of space, time and effort to clean up every file once you've moved it

    Why does the new operating system not delete the moved files from their original locations - it seems like an enormous waste of space, time and effort to clean up every file once you've moved it - also, when transferring large amounts of files it becomes a very large problem remembering which files were transferred and which not.

    You're going to need to be more specific, as I'm not quite sure I understand what you're talking about.
    If you're referring to copying from an external hard drive or flash drive, and you want to actually move files rather than copy them, you can hold down the option key to force it to do a "move" rather than a "copy." This is not new behavior, though... the Mac OS has worked this way as long as I can recall (and I've been using it since 1984).
    If you're having a problem with trying to move files from one place to another on a single drive causing them to be copied instead, that is likely because of some permissions issue preventing you from actually being able to move them.

  • I am having a problem moving files from a iMac  in location mac in another location.  I have tried using Dropbox and the Public folder in the i disc.  When I drag the files into dropbox they become alias' and I can't open them at the other end beca

    I am having a problem moving files from an imac in one location to an imac inanother location.  I have tried using Dropbox which is installed in both locations but when i drad a file ino yhe app it becomes an alias.  When I get to the other location it says I can't open the file because the " original application that created it is not present".  This is despite the fact that the app that created both files is installed in both computers.  If I use the Public folder in the idisc, when I get to the other location the file isn't there.  Am I forgetting to turn something on or off?  Should I manually sync the Public folder and if so how? Thanks
    Message was edited by: stephenfromdelray beach

    So now that's two of us.  Hopefully, someone has an answer. 

  • Moving files from PowerMac G3 to MacBook Pro

    I have a new MacBook Pro and am moving files from all my old macs onto it. I found an old beige desktop PowerPC hard drive but don't have a monitor for it. Also, I have ancient 3.5 floppies that I need to read and the old beige computer has a slot for that. So, the question is: How do I get my files off the beige G3 and onto the new computer when the beige PowerPC has NO firewire?

    One solution is to find any old crappy monitor and hook it up to the beige G3. Then you can configure it to use Ethernet, and set up a small Ethernet network with your new MacBook Pro. It is a little complicated, but not difficult.
    This article helps explain the concepts:
    106658- Creating a small Ethernet network
    Then this illustrated step-by-step can walk you through it:
    Car1sons OS 9 to OS X.3 File Sharing Setup

  • Issues exporting file from Target group

    Hi Experts,
    Can someone let me know the process for exporting file from Target group, I am working on CRM 7.0 .
    or give me the SNOTE to implement the same.
    Thanks
    Leela

    Hi,
    for small Target Groups (i.e. Target Groups that can be displayed completely on the UI, < 10k members) you can export them via the export to spreadsheet button on the header of the Target Group item page (right side). Note that only the members that are shown in the table on the UI are exported. For bigger Target Groups, you can only export them to the application server. To do this, you will have to press the "Export to File" button on the header of the Target Group page. this will schedule a job which exports your Target Group to the application server. You can download it from there using report CRM_MKTTG_FEXP_SHOW_FILE.
    Hope this helps
    --klaus

  • I am having trouble moving files from iPhoto to a thumb drive.  Sometimes I can move 20 photos next time I can only move 2 photos or 0---this is during the same session.  I also have trouble downloading photos to the internet.  Can someone please help?

    I am having trouble moving files from iphoto to a thumb drive.  During the same session sometime I can move 10 photos at a time, the next time I can only move one photo and sometime no photos will move.  I also have trouble downloading photos to the internet.  I was using a MacBook Pro and had no problems like this.  I then upgraded to the MacBook Pro with Retina Vision and this is the computer I am having problems with.  Can anyone please give me a suggestion in how to fix this problem. THANK YOU.

    iPhoto problems should be posted in their forums.
    I also have trouble downloading photos to the internet.
    Needs clarification.  You upload from your computer to the internet & download from a website/internet to your computer.  So which are you trying to do?  Either way, sounds like a browser issue.  You need to post in the forum of whichever browser you are using.

  • Moved file from Windows XP to Windows 7 - reason sound is bad?

    I can access my ITUNES after moving file from XP to laptop which uses WIN 7 but the sound is awful when playing through ITUNES. Music much better when played through WINDOWS Media. The equalizer doesn't seem to be engaged. Is there a setting that might be getting in the way or do you think it's the way it was transferred .... or something else. GENIUS's at stores offer no help since my laptop isn't an APPLE. No sympathy there either.

    The equalizer doesn't seem to be engaged
    Is it engaged?
    Check the EQ and check the settings in iTunes prefs -> Playback

  • Regrdin file transer from al11 to archive directory  URGENT

    HI ,
    my actual require ment is
    in BDC inbound interface i have to read data from applcation server .i did that.
    but now i have to send that file to archive directory after succefully reading that.
    can anybody help on this
    wt is archive directory?
    how to send that application server file to archive directary after succesfull reading it? .......
    is there any function module for this....
    wt is archive directory?

    Hi,
    An archive directory is just a concept where one directory on the operating system holds files that have been processed.  You don't need to do anything special, either take the internal table you already have and write it to a file in this directory or call an operating system command to move the file.
    You just need to find out for your system which directory is the archive directory.
    Regards,
    Nick
    P.S. Please consider the rules of the forum and do not mark your post as URGENT.

  • Safely copying files from Target Disk Mode to External USB. Advice?

    Just got a new iMac and transferred my system and important files to it from my old iMac. However, a partition on my old iMac has files I want to move to my new iMac so they can be included in Time Machine backups while others I want to move to another external hard drive since I have physical copies of most of those files elsewhere.
    I can connect my old iMac to the new via Target Disk mode and copy the critical files from Mac-to-Mac easily and quickly enough. What I want to know is if I’m safe to copy the other files from the TDM-connected iMac to a USB drive.
    I’ve read that having other devices connected to your Mac while another Mac is connected via TDM can result in corrupted files. Is this true? Is it unsafe to copy files from a TDM Mac to an external USB drive?
    If it is safe, is it best to connect the USB drive to the new Mac or to the old one while it’s in TDM? There’s a lot of data so I’m wondering about transfer times. One method would see files going over Firewire through the new iMac to a USB drive, while the other would go from TDM-connected Mac directly to a USB drive connected to its own USB port. That is:
    TDM iMac > New iMac > USB Drive connected to New iMac
    or
    TDM iMac > USB Drive connected to TDM iMac
    I have limited space on my internal drive and I also don’t want to copy-hop from TDM iMac to New iMac then copy from New iMac to USB drive. I'd like to go directly from old drive to external USB drive if it's safe.
    So I’m looking for advice on the best way to connect devices in order to cut down on copying time and number of copies, and to do it safely without corrupting data. Any advice is appreciated!

    I've used Migration Assistant already to move all of my immediately necessary data and settings over. This other data was on a separate partition and I'm unable to copy all of the data over to my new drive due to lack of space.
    Things are complicated by the fact that I need to change some of my externals over to Time Machine ready backups. Previously I was using 1 TB and a 2 TB drive for TM and another 2 TB drive for general backups/archiving. Now I need to juggle things around so that both 2 TB drives are for TM and the 1 TB is used for archiving.
    An important point I should have mentioned is that I can't use my old iMac normally due to a GPU problem that seizes the system up. This is the reason I can't just copy stuff directly from old iMac to external USBs.
    I'm interested to know if what I described above is safe and if there are any time savings or benefits for copying through my new iMac or connecting the externals directly to the old iMac in TDM.

  • Moving files from my Mac G-4 to my imac via fire wire

    I have my new imac up and running and want to transfer files from My existing Mac G-4 with the firewire but it just gave me a big firewire logo on the iMac. It must be in the connections.

    You may want to see:
    A Basic Guide for Migrating to Intel-Macs
    The Knowledgebase article Intel-based Mac: Some migrated applications may need to be updated refers to methods of dealing with migrating from PowerPC chips to Intel with the Migration Assistant safely. The authors of this tip have not had a chance to verify this works in all instances, or that it avoids the 10.6.1 and earlier Guest Account bug that caused account information to get deleted upon use of the Migration/Setup Assistant. However, a well backed up source that includes at least two backups of all the data that are not connected to your machine will help you avoid potential issues, should they arise. In event it does not work, follow the steps below.
    If you are migrating a PowerPC system (G3, G4, or G5) to an Intel-Mac be careful what you migrate.  Keep in mind that some items that may get transferred will not work on Intel machines and may end up causing your computer's operating system to malfunction.
    Rosetta supports "software that runs on the PowerPC G3, G4, or G5 processor that are built for Mac OS X". This excludes the items that are not universal binaries or simply will not work in Rosetta:
    Classic Environment, and subsequently any Mac OS 9 or earlier applications Screensavers written for the PowerPC System Preference add-ons All Unsanity Haxies Browser and other plug-ins Contextual Menu Items Applications which specifically require the PowerPC G5 Kernel extensions Java applications with JNI (PowerPC) libraries
    See also What Can Be Translated by Rosetta.
    In addition to the above you could also have problems with migrated cache files and/or cache files containing code that is incompatible.
    If you migrate a user folder that contains any of these items, you may find that your Intel-Mac is malfunctioning. It would be wise to take care when migrating your systems from a PowerPC platform to an Intel-Mac platform to assure that you do not migrate these incompatible items.
    If you have problems with applications not working, then completely uninstall said application and reinstall it from scratch. Take great care with Java applications and Java-based Peer-to-Peer applications. Many Java apps will not work on Intel-Macs as they are currently compiled. As of this time Limewire, Cabos, and Acquisition are available as universal binaries. Do not install browser plug-ins such as Flash or Shockwave from downloaded installers unless they are universal binaries. The version of OS X installed on your Intel-Mac comes with special compatible versions of Flash and Shockwave plug-ins for use with your browser.
    The same problem will exist for any hardware drivers such as mouse software unless the drivers have been compiled as universal binaries. For third-party mice the current choices are USB Overdrive or SteerMouse. Contact the developer or manufacturer of your third-party mouse software to find out when a universal binary version will be available.
    Also be careful with some backup utilities and third-party disk repair utilities. Disk Warrior, TechTool Pro , SuperDuper , and Drive Genius  work properly on Intel-Macs with Leopard.  The same caution may apply to the many "maintenance" utilities that have not yet been converted to universal binaries.  Leopard Cache Cleaner, Onyx, TinkerTool System, and Cocktail are now compatible with Leopard.
    Before migrating or installing software on your Intel-Mac check MacFixit's Rosetta Compatibility Index.
    Additional links that will be helpful to new Intel-Mac users:
    Intel In MacsApple Guide to Universal ApplicationsMacInTouch List of Compatible Universal BinariesMacInTouch List of Rosetta Compatible ApplicationsMacUpdate List of Intel-Compatible SoftwareTransferring data with Setup Assistant - Migration Assistant FAQ
    Because Migration Assistant isn't the ideal way to migrate from PowerPC to Intel Macs, using Target Disk Mode, copying the critical contents to CD and DVD, an external hard drive, or networking will work better when moving from PowerPC to Intel Macs.  The initial section below discusses Target Disk Mode.  It is then followed by a section which discusses networking with Macs that lack Firewire.
    If both computers support the use of Firewire then you can use the following instructions:
    1. Repair the hard drive and permissions using Disk Utility.
    2. Backup your data.  This is vitally important in case you make a mistake or there's some other problem.
    3. Connect a Firewire cable between your old Mac and your new Intel Mac.
    4. Startup your old Mac in Target Disk Mode.
    5. Startup your new Mac for the first time, go through the setup and registration screens, but do NOT migrate data over. Get to your desktop on the new Mac without migrating any new data over.
    If you are not able to use a Firewire connection (for example you have a Late 2008 MacBook that only supports USB:)
    1. Set up a local home network: Creating a small Ethernet Network.
    2. If you have a MacBook Air or Late 2008 MacBook see the following: >MacBook (13-inch, Aluminum, Late 2008) and MacBook Pro (15-inch, Late 2008)- Migration Tips and Tricks:
    MacBook (13-inch, Aluminum, Late 2008) and MacBook Pro (15-inch, Late 2008)- What to do if migration is unsuccessful; MacBook Air- Migration Tips and Tricks; MacBook Air- Remote Disc, Migration, or Remote Install Mac OS X and wireless 802.11n networks.
    Copy the following items from your old Mac to the new Mac:
    In your /Home/ folder: Documents, Movies, Music, Pictures, and Sites folders.
    In your /Home/Library/ folder:
    /Home/Library/Application Support/AddressBook (copy the whole folder) /Home/Library/Application Support/iCal (copy the whole folder)
    Also in /Home/Library/Application Support (copy whatever else you need including folders for any third-party applications)
    /Home/Library/Keychains (copy the whole folder) /Home/Library/Mail (copy the whole folder) /Home/Library/Preferences/ (copy the whole folder) /Home /Library/Calendars (copy the whole folder) /Home /Library/iTunes (copy the whole folder) /Home /Library/Safari (copy the whole folder)
    If you want cookies:
    /Home/Library/Cookies/Cookies.plist /Home/Library/Application Support/WebFoundation/HTTPCookies.plist
    For Entourage users:
    Entourage is in /Home/Documents/Microsoft User Data Also in /Home/Library/Preferences/Microsoft.
    Credit goes to Macjack for this information.
    If you need to transfer data for other applications please ask the vendor or ask in the  Discussions where specific applications store their data.
    5. Once you have transferred what you need restart the new Mac and test to make sure the contents are there for each of the applications.
    Written by Kappy with additional contributions from a brody.Revised 4/17/2011
    You want to boot the G4 into Target Disk Mode then boot the iMac normally.  See:
    Transferring files between two computers using FireWire

Maybe you are looking for

  • Can i create a website in iweb and convert it to wordpress?

    Can I create a web site in iweb and then convert it to wordpress?

  • Web Dynpro Navigation to previous screen

    Hello all, We have a requirement of displaying a Adobe form using Web-Dynpro for ABAP. This is perfectly fine and is done. Now it is like we have 2 Views in a Web-Dynpro 1. Main 2. Adobe Form display On the 1st Page user is asked to enter certain det

  • Socket connection problems

    I'm starting a server with the following code Semaphore semaphore = new Semaphore(maxConcurrentConnections); final ServerSocket serverSocket = new ServerSocket(Constants.NET_APPLET_PORT); while (true) { semaphore.acquire(); final Socket socket = serv

  • One role - One transaction - SoD errors

    I have a single role with just one transaction in it (F-44).  When I run this singel role through Risk Analysis, I get the following SoD risks. Risk Description:  P0030LI01 : Create fictitious vendor invoice and initiate payment for it Conflicting Ac

  • DI Server Update Item Object

    Getting an Invalid XML Error when trying to update an Item through DI Server. What is wrong with the following code? <?xml version="1.0" encoding="UTF-16"?> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> <env:Header> <SessionID>