File move from one dir to another with SXPG_COMMAND_EXECUTE

Hi all,
Need some help in using UNIX COMMAND with SXPG_COMMAND_EXECUTE.
I need to move files from one directory to another with MV command,so anybody have any idea regarding the same?
If any sample code then that will be really gr8.
Its urgent requirement so pls do the needful
Thanx in advance

Hi
You will have to create external operating system command in SM69 to use with SXPG_COMMAND_EXECUTE. Pass the command name that you create in sm69 to this FM .
You would need authorization objects S_LOG_COM, S_RZL_ADM to be able to successfuly use this FM.
Regards
Kalpana

Similar Messages

  • Move posts from one tabel to another with checkboxes in HTML DB

    I wish to replace the checked rows from one table to another with a PL/SQL statement.
    When I wish to replace one row, there is no problem. But when I wish to replace two or more I get an error ORA-00001: unique constraint (HTMLDB_ERASMUS.SYS_C0042823) violated.
    The only unique constraint in my table is the primary key ID, witch is generated with a sequence, so normally there is never twice the same value for an ID.
    Can someone help me here, please?
    Here is my code
    DECLARE     
    lv_i NUMBER :=1;
    lv_ID add_post.ID%TYPE;
    lv_auteur add_post.auteur%TYPE;
    lv_titel add_post.titel%TYPE;
    lv_community add_post.community%TYPE;
    lv_rating add_post.rating%TYPE;
    lv_description add_post.description%TYPE;
    CURSOR move_posts iS
    SELECT ID, auteur, titel, community, rating, description
    FROM add_post
    WHERE ID = HTMLDB_APPLICATION.G_F01(lv_i);
    BEGIN
    FOR lv_i IN 1..HTMLDB_APPLICATION.G_F01.count LOOP
    OPEN move_posts;
    FETCH move_posts INTO lv_ID, lv_auteur, lv_community, lv_titel, lv_rating, lv_description;
    INSERT INTO wouter_published_posts VALUES (lv_ID, lv_auteur, lv_community, lv_titel, lv_rating, lv_description);
    DELETE FROM add_post WHERE ID = HTMLDB_APPLICATION.G_F01(lv_i);
    --EXIT WHEN move_posts%NOTFOUND;
    COMMIT;
    CLOSE move_posts;
    END LOOP;
    END;

    That should not be necessary because I get the value of ID out of another table, where I generate ID with a sequence..
    So normally it should just tranfer that row from one table to another. But it doesn't !
    Knowing that I cannot create a row in the table wouter_published_posts(I can just move rows from the add_post table to the wouter_published_posts table), It should be inpossible that twice the ID appears. But yet he keeps trowing errors...
    help me, please

  • Images I move from one folder into another are disappearing, at first it was occurring immediately if I did not copy and paste the images. Today however I found out that images I had been using for days just up and vanished from their new location.

    Images I move from one folder into another are disappearing, at first it was occurring immediately and only if I did not copy and paste the images. Today however I found out that images I had been using for days just up and vanished from their new location. A few of these images had copies in another folder that remained and the ones I couldn't find may or may not have ever had copies. I had backed up my system with time machine recently as well, so I went into the backup to retreive the lost images. When I searched and found the backup copies I got the error "the file alias cannot be opened because the original cannot be located". The crazy thing is that the images that remained on my computer did not give me the same error and opened like they should.
    In short images that I am creating, saving, and using are disapearing so epically that even time machine versions are affected when retrieval is attempted. Any suggestions as to what I could be doing wrong without realizing it? Or perhaps other people have had similar bugs that are software related and have a solution?

    Hi Kevin,
    I understand what you tried to do but it doesn't work that way. Swapping drive names will just mess things up.
    You should be able to reconnect the files though: in the Locate Referenced Files dialog make sure you click the Show Reconnect Options button — this will give you access to all the connected drives. Locate one of the files and hit Reconnect All. Should do the trick.
    Best

  • Transferring home movies from one computer to another

    What is the best way to do this? I have about 500 video clips that I want to move from one computer to another. I've tried using the export function in iPhoto but all I get upon transfer is a single frame of the movie. I keep the files on an external HD but I can't find where they are stored. I see the iPhoto app to open but not the original files. Additionally, whenever I do locate these files, how can I get them transferred with the keywords assigned to them? TIA! Going from a MBP running 10.6.8 to a MBA running 10.8.2

    I'm not sure you can assign keywords to a movie on export, as these are written to the exif metadata of a photo and most video has no such metadata.
    You say you've tried the export function in iPhoto, but what settings have you used? Exporting with the Kind set to Original should yield the videos.
    Regards
    TD

  • HT1688 Messaging does not let me move from one conversation to another without going to the contact info of the person and choosing "send a message", then I can continue the conversation. I'm sure it's a setting I have made by mistake, but can't figure it

    Messaging does not let me move from one conversation to another without going to the contact info of the person and choosing "send a message", then I can continue the conversation. I'm sure it's a setting I have made by mistake, but can't figure it out

    Hi Elaine
    Here si what I do:
    Since I tend to message with teh same people I leave the messages available to me.  If you are in one conversation with "Karen"  and want to message with "Kathy" tap the message back arrow and select Kathy.
    As always just be careful to rememeber who you are messaging to!

  • Why the menu to move from one page to another is not seen when the page is online?

    On my web, I have different pages like 'Homepage' or 'Contact' but when I publish my web I can not see the menu.
    why the menu to move from one page to another is not seen when the page is online?
    Thank you,
    Roger.

    Where are you publishing and how are you uploading the files?

  • Getting error in file transfer from one system to another system

    Hi All
    One of my client (User) wants to transfer his file from  SAP R/3 System SAP XI system. He is using a customize t-code ZFIR0325 (Trial balance report transfer to Hyperian System). When user execute the  program he is getting error "File Transfer Failed due to Network chk with Admin"
    I checked with Network team but they said it is okay from their side. We also check for authorization but there is no issue regarding authorization.
    Name of File Path of Aplication Server, XI destinaion and XI directory entered by user is correct.
    We also put authorization trace in XI System to RFC User (In file transfer from one system to another system this RFC User is geeing Used) but no authorization issue was found.
    Please help me to resolve this problem. I any detail require I will provide the same.

    Guruprasad Wrote:
    He is using a customize t-code ZFIR0325 (Trial balance report transfer to Hyperian System).
    We also put authorization trace in XI System to RFC User (In file transfer from one system to another system this RFC User is geeing Used) but no authorization issue was found.
    Firstly, no one in the community can answer on how a custom transcation code and a program associated with it behaves.
    If there are no authorization issues in the system, you have to look at the exact error message. Look if your XI system is allowed to receive files from the SAP system.
    Unfortunately, you should do some more home work before putting your question here. If everything is fine and configured correctly, then the issue might be with the program.
    Regards,
    Raghu

  • Tutorial to Move from one iPhone to Another

    Would anyone happen to know of a good source to give a step-by-step tutorial of how to move from one iphone to another?  (move from iphone 4 to iphone 5).  Would like to get myself familiar with this process before I have to do it on Friday, Sept 21st.  Thanks for your help and suggestions.

    iPhone- Transferring information from your current iPhone to a new iPhone. Basically, sync your old phone with iTunes. Then sync the new phone.

  • How do i copy music from one ipod to another with 1 cord?

    how do i copy music from one ipod to another with 1 cord?

    You cannot copy content directly from one iPod to another. If the music was purchased from the iTunes Store, you have the following options:
    - sync the iPod to your computer, transfer the content to iTunes, and then connect the other iPod and sync from iTunes
    - use iCloud (which requires iOS 5).
    - download the music from from the iTunes Store to the second iPod. See:
    http://support.apple.com/kb/ht2519
    Regards.
    Message was edited by: varjak paw

  • I took a video with my iphone5 and I don't see it on my iPad. Can videos go from one device to another with iCloud?

    I took a video with my iphone5 and I don't see it on my iPad. Can videos go from one device to another with iCloud?

    No.  Photo stream only streams photos, not videos.  To transfer videos between your devices you can either import them to iTunes and sync them, or (more conveniently) use an app like PhotoSync or Bump.

  • How do I move from one website to another using Safari, while still allowing Pandora to provide music in the background? It seems that when ever I open a new URL, I lose Pandora.

    How do I move from one website to another using Safari, while still allowing Pandora to provide music in the background? It seems that when ever I open a new URL, I lose Pandora.

    Try running Pandora in its own tab and leaving that tab open (Safari 7.1.5, OS 10.9.5).  I don't have Pandora to try this, but it works for me otherwise.
    Good luck
    srb

  • Is there a way of shifting purchases from one account to another with the same billing information, so that I don't lose purchases made by my iPhone when I sync?

    The AOL address I was using for my iTunes account has been deleted due to me not signing in for awhile and I'm afraid that I will lose all of my purchases made from my iphone when I sync it into iTunes for a much needed update and so that I can (hopefully) transfer its data to my new iPhone 4...
    The only time I have synced my current iPhone was when I activated it but since then I have not been able to sync with my computer and now have a new one.
    Sorry about the garbled way this is written but I desperately need help:
    1, Is there a way of shifting purchases from one account to another with the same billing information?
    Or
    2, is there a way of recovering my old account and changing the details?
    Any other help is greatly appreciated
    Thom

    You don't need to access your e-mail account, just get into your Apple account and change the e-mail address. If you can't access your Apple account, then you have a bigger issue to contend with.

  • From Forms 5.0 I want to copy a file/folder from one location to another.

    Hi,
    I have a question and I really appreciate your help.
    My Question is
    I would like to copy a file/folder from one location to another.
    (For ex: From my Hard disk to a Network folder).
    I want to do this from Oracle Forms 5.0 and my operating system is Windows 2000/NT Workstation.
    At present my users are doing this by using drag and drop windows functionality,
    But now they want to do this by using a GUI screen.
    I would greatly appreciate if somebody can answer my question.
    Thank you very much and have a nice day.
    Thanks & Regards
    Sanjeev.

    Hi Shay,
    Am able to copy the files/folders by doing the follwing.
    Declare
    My_Command Varchar2(1000);
    Begin
    MY_COMMAND := 'XCOPY /E ' ||:FROM_LOC ||' '|| :TO_LOC ;
    HOST(MY_COMMAND);
    End;
    But my problem is am not able to trap the errors.
    Do you have any idea?
    Thanks

  • File transfer from one system to another system

    How can I use ODI to do file transfer from one system to another system ?
    Do I need to create Models or I have to simply use Jython procedure/script to do the same ? Kindly help. I have done DB to DB using Knowledge Modules. But I am not able to understand this piece.
    Kindly help.

    If you are asking about file transfer use ODI FTP tool to do it. If you are asking about file transformation..
    You can not do file transformation directly in ODI like we do in any other ETL tool like data stage or Ab Initio.. File transformation in ODI can be done using staging database in an interface(i.e ELT way).
    Create source and target data stores for the file to be transformed. Create an interface using File to SQL LKM to load the file into staging database and then use SQL to File Integration knowledge module.
    Thanks,
    D

  • HOW TO MOVE FROM ONE JSP TO ANOTHER BY HIDING URL CHANGES

    HOW TO MOVE FROM ONE JSP TO ANOTHER BY HIDING URL CHANGES IN AN ADDRESS BAR

    Please check before posting that you have not accidentally turned on the CAPS LOCK feature of your keyboard.
    To answer your question. You can't do that. There are alterate ways to solve this sort of problem. What exactly is the nature of the problem you are seeking to solve?

Maybe you are looking for