Problem with rename command in ftp_command

hi all ,
i am facing a problem in renaming a file by rename command...
this is how i am calling the fm ftp_command
CALL FUNCTION 'FTP_COMMAND'
    EXPORTING
      handle        = g_handle
      command       = 'RENAME l_templine_file l_templine_file1'
    TABLES
      data          = l_i_temp_line
    EXCEPTIONS
      tcpip_error   = 1
      command_error = 2
      data_error    = 3
      OTHERS        = 4.
  IF sy-subrc <> 0.
here l_templine_file   - dev00227.header.tmp  
l_templine_file1 - dev00227.header.txt
the fm is failing that the error meassage is FTP subcommand  error
can u suggest where i am going wrong in this...

hi,
May be the command you are passing is incorrect syntax..
Pass the values like this..
l_templine_file =  'c:\dev00227.header.tmp' " this should be with path'
l_templine_file1 = 'dev00227.header.txt'" this is just the name of file
If not worked..then Try writing in small letters//
write
command = 'rename l_templinefile l_templine1'.
rewards if useful
Hope this solves..
regards,
nazeer
Message was edited by:
        nazeer shaik
Message was edited by:
        nazeer shaik
Message was edited by:
        nazeer shaik

Similar Messages

  • Problems with 'df' command

    Hello folks,
    I'm having some problems with df command:
    Output:
    [nenemfromhell@myhost ~]$ df -h
    Filesystem Size Used Avail Use% Mounted on
    udev 999M 4.0K 999M 1% /dev
    none 999M 4.0K 999M 1% /dev
    /dev/sda8 133G 125G 2.0G 99% /media/DU
    shm 999M 0 999M 0% /dev/shm
    First: It doesn't show my root partition, but i can check it in gparted.
    Second: /dev/sda8 is a NTFS partition that its size is 12GB
    Thanks.
    Last edited by nenemfromhell (2012-01-20 03:37:30)

    Please include some detail as to how you solved the problem: https://wiki.archlinux.org/index.php/Fo … way_Street

  • A litle problem with rename method.

    Hi everybody..
    I have a little problem with renaming files..
    I can rename files but it puts the new renamed files to BIN directory (where my program runs) whereever the path I opened the old-original image. I want to pu the "renamed file" where it belongs to,the orginal path, How can I handle with it?
    My code is like this..
    String renamestring = JOptionPane.showInputDialog ("Enter new name for image");
    File file2=new File(renamestring+".gif");
    boolean success = f.renameTo(file2);
    I have another question if you do not mind..How can I rename files with their orginal extensions?? for example in the above code &#305; rename all file with .gif extension, (if I Dont do that, it does not give any extension to the new renamed file..)
    thanks so much..

    Now, I'm a bit shaky on files, I've only used them to store dummy data, but here's my two cents.
    It's putting the files there because, as it appears from what you've cited as your code, you're using a relative filename. something like pic1.gif. This will be put whereever the program is running. What you want is to make your file using...
    String PATH_NAME = "<Directory you want it stored in>";
    File file2=new File(PATH_NAME + renamestring + ".gif");There are a few ways of getting where it should be saved, but since I'm not sure what system you're on, I'm not going to go into it. Simply put, I think you can just search from the back to the String (originalFile.getPath()) for the last folder deliminator (i.e. "\"), then take that and everything before it as the PATH_NAME.
    As for original extension, you can try the same thing. Start at the end of the file name using the String's lastIndexOf() function, and find the period. Then take the period and everything until the end of the string as a new String fileExtension.
    String PATH_NAME = "<Directory you want it stored in>";
    File file2=new File(PATH_NAME + renamestring + fileExtension);

  • Problem with shell commands and scripts from an Applescript Application

    Hi-
    I am fairly new to OSX software development. I am trying to build an application that creates a reverse SSH tunnel to my computer and starts OSXvnc. The idea is that my Mom or anyone else who needs help can connect to me without having to tinker with their firewalls.
    There are plenty of resources on how to do this, and I have found them. What I have a problem with is the following.
    I am building this application in Xcode as an Applescript application, because Applescript and shell scripting are the only forms of programming I know. I use an expect script to connect through SSH, and a "do shell script" for the raw OSXvnc-server application to allow screen sharing.
    The problem is that when I click on the button to launch OSXvnc-server or the button to launch SSH, the application freezes until the process it spawns is killed or finishes. For example, I can set SSH to timeout after 60 seconds of no connection, and then the Applescript application responds again. I even tried using the ssh -f command to fork the process, but that doesn't seem to help.
    I am also using "try" around each of the items.
    What am I doing wrong? How can I make the buttons in my app launch SSH and OSXvnc-server without hanging the application while it waits for them to finish?
    Thanks so much!

    See here for an explanation of the syntax.
    (20960)

  • Little problem with rename view

    Hej, I've been having a problem an small problem with this... so far i'm changing the position of the tree of and Active Directory account... the major problem is that if i move this account 3 times the accountId fot that resurce is still the original one.
    <set name='newViews.newAccountId'>
                    <ref>myIdentity</ref>
                  </set> 
                  <set name='newViews.accounts[AD].newAccountId'>
                    <ref>myIdentity</ref>
                  </set>
                  <set name='newViews.resourceAccounts.selectAll'>
                    <s>false</s>
                  </set>
                  <set name='newViews.accounts[AD].identity'>
                    <ref>myIdentity</ref>
                  </set>
                  <set name='newViews.accounts[AD].newAccountId'>
                    <ref>myIdentity</ref>
                  </set>
                  <set name='newViews.resourceAccounts.currentResourceAccounts[AD].identity'>
                    <ref>myIdentity</ref>
                  </set>
                  <set name='newViews.resourceAccounts.currentResourceAccounts[AD].selected'>
                    <s>true</s>
                  </set>
                  <set name='newViews.resourceAccounts.currentResourceAccounts[Lighthouse].selected'>
                    <s>false</s>
                  </set>myIdentity is the new value for the account basically cn=..,ou=.. etc.. and all works fine but the first given accountId when the account is created always remains and is never changed during the rename action....

    Hi,
    I had the same problem. The move operation in AD functioned perfectly but the displayed account information kept showing the old DN. The problem was, I had the move activity inserted in the update user workflow BEFORE the Provision activity. I moved my custom rename activity to AFTER Provision (and right before notification) and now the new DN is showing on the account information screen. It appears that if you do the rename before provision, the old information will overwrite the new stuff. But if you do it after provision the new stuff will overwrite the old stuff.
    I hope this helps :-)

  • Problem with issuing command via CustomScriptExtension

    I am trying to issue a CustomScriptExtension command to an Azure virtual machine from within my C# application. The CustomScriptExtension is installed in the VM and working. I verified this by issuing a test command via PowerShell. Essentially I am trying
    to execute what would be the equivalent to the PowerShell command Set-AzureVMCustomScriptExtension, but in code.
    Below is the code segment that I am having problems with:
    ComputeManagementClient client = new ComputeManagementClient(AzureSessionInfo.CloudCredentials);
    IList<ResourceExtensionReference> extReferences = new List<ResourceExtensionReference>();
    IList<ResourceExtensionParameterValue> extParamValues = new List<ResourceExtensionParameterValue>();
    string account = "{\"storageAccountName\":\"" + AzureSessionInfo.StorageAccount + "\",\"storageAccountKey\": \"" + AzureSessionInfo.StorageAccountKey + "\"}";
    string scriptfile = "{\"fileUris\": [\"" + "https://teststorageaccount.blob.core.windows.net/testcontainer" + "\"], \"commandToExecute\":\"powershell -ExecutionPolicy Unrestricted -file " + "ScriptName.ps1" + "\"}";
    byte[] bytes1 = System.Text.Encoding.UTF8.GetBytes(account);
    bytes1 = System.Text.Encoding.UTF8.GetBytes(account);
    string ScriptPrivateConfig = Convert.ToBase64String(bytes1);
    byte[] bytes2 = System.Text.Encoding.UTF8.GetBytes(scriptfile);
    bytes2 = System.Text.Encoding.UTF8.GetBytes(scriptfile);
    string ScriptPublicConfig = Convert.ToBase64String(bytes2);
    ResourceExtensionParameterValue extRef_Parameter1 = new ResourceExtensionParameterValue()
    Key = "CustomScriptExtensionPrivateConfigParameter",
    Value = ScriptPrivateConfig,
    Type = "Private"
    ResourceExtensionParameterValue extRef_Parameter2 = new ResourceExtensionParameterValue()
    Key = "CustomScriptExtensionPublicConfigParameter",
    Value = ScriptPublicConfig,
    Type = "Public"
    extParamValues.Add(extRef_Parameter1);
    extParamValues.Add(extRef_Parameter2);
    ResourceExtensionReference extRef_CustomScript = new ResourceExtensionReference
    Name = "CustomScriptExtension",
    Publisher = "Microsoft.Compute",
    Version = "*",
    ReferenceName = "CustomScriptExtension",
    ResourceExtensionParameterValues = extParamValues
    extReferences.Add(extRef_CustomScript);
    AzureSessionInfo.CloudServiceName = "CS1000001";
    AzureSessionInfo.VMName = "CS1000001";
    AzureSessionInfo.ImageFamilyName = "Windows Server 2012 R2 Datacenter";
    client.VirtualMachines.Update(AzureSessionInfo.CloudServiceName,
    AzureSessionInfo.VMName,
    AzureSessionInfo.VMName,
    new VirtualMachineUpdateParameters
    RoleName = AzureSessionInfo.VMName,
    ResourceExtensionReferences = extReferences
    I receive the following error message back from the call:
    BadRequest: Invalid extension reference parameter value in JSON configuration data for the Role: CS1000001, Reference name: CustomScriptExtension.
    I could only find very little documentation on this. Any help would be appreciated.

    Thanks Mekh... after many hours of researching and trial/error, I figured it out.
    The MSDN article I used previously led me down the wrong path. (see article here: http://msdn.microsoft.com/en-us/library/azure/dn781373.aspx). This may work for RESTful calls but not for .NET API calls.
    The part of the code that was hurting me was where the command strings (account and
    scriptfile) were being converted to Base64 encoding. This is NOT correct for .NET calls. Once I removed that, everything worked fine.
    I came across this after researching the same commands used by Linux scripts. They don't convert to Base64 either so I wonder why this is included in the documentation at all.
    In either case, I figured it out, but the documentation is very poor in this area (or all together non-existent). I don't even see where it is documented as to which JSON parameters names are supposed to be used, or even that JSON is required.
    Also, related to the Update command, if you are truly "updating" the config, you must include everything about the original config (whether it changed or not) along with the changes you want to make. If not then you will undo ALL but the changes
    you issued via the command.

  • Problem with runas command. Elevation error

    Running on Win 8.1 Pro I'm facing a problem with runas.
    What I'm trying to do is launch an mmc as my domain admin account.
    Therefore I type this command from an elevated cmd (Right-click "Run as Administrator"):
    runas /user:Contoso\MyDomainAdmin /noprofile mmc
    This worked like a charm in Windows 7, and on my Win81Pro client it yields:
    RUNAS ERROR: Unable to run - mmc
    740: The requested operation requires elevation.
    The account I'm logged in with, is local admin, and the UAC slider is set in the bottom.
    In the eventviewer, I only see some special logons where my normal account is trying to impersonate my domain admin account, and the next event, the domain admin's session is destroyed.
    If this is by design, how would I then run mmc as my domain admin and at the same time avoid its credentials being stored on the local machine?
    Thanks in advance!

    yes, you need to be local admin to be able to elevate!
    I've tested this on a system here and I reproduce the issue you encountered. Some investigation showed running a program that requires elevation using runas is not  possible http://msdn.microsoft.com/en-us/library/bb756922.aspx
    MCP/MCSA/MCTS/MCITP

  • Problem with renaming JSPs in Eclipse

    Has anyone experienced problem with Eclipse WTP failing to locate JSP after they are named? I've been able to reproduce this consistently, where if I rename a JSP after it's created (e.g. Transactions.jsp -> transactions.jsp), I get the following error when I attempt to access that JSP within the browser:
    javax.servlet.ServletException: org/apache/jsp/transactions_jsp (wrong name: org/apache/jsp/Transactions_jsp)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:272)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    It seems the internal state of the translated JSP Java class is messed up.
    Johnny

    I've found the solution!
    It turns out, on case sensitive system like Mac OS X, Eclipse has trouble recognizing a renamed JSP if you only change the capitalization of the file name. The way to fix it is to delete the JSP from Eclipse (doesn't work if you delete it from the file system), which I think clears Eclipse's corrupt memory of the file, and add the file back in.
    I'll report this bug and see if others can reproduce the same problem.
    Repro:
    (Observed on Mac OS X)
    1. Create a JSP, name it "home.jsp"
    2. Verify home.jsp can be accessed in the browser.
    3. Rename "home.jsp" to "Home.jsp"
    4. Now, neither "home.jsp" nor "Home.jsp" could be accessed. In order to fix this, you have to delete "Home.jsp" and add it back into Eclipse.

  • Problem with java commands

    Hello,
    I am able to run the java command on the command promt, but other commands like javap,javac are not working, its saying
    "javap not recognized and internal or external command operable program or batch file"
    what could be the problem?
    thanks in adv
    vakvarma

    thanks for ur reply
    its the problem with my path settings and i have corrented it

  • Problem with  AT command in LOOP

    Hi Experts,
    here i ve a problem like, in my table there are 3 PSPHI(projects) values,
    if i loop n calculate the sum it is getting total amt for 3 PSPHI values,
    but i want every end of PSPHI i need sum.
    the below code is working fine if there is no AT coomand, if i put AT END OF PSPHI it is giving 00.00 values.
      LOOP AT it_final into it_output.
       AT END OF PSPHI.
        if it_final-wrttp = '04'
           AND it_final-vorga = 'COIN' 
           AND it_final-beltp  = '02'
           AND it_final-versn = '000'.
       t_pla_rev = t_pla_rev + it_output-wlp01.
        MOVE it_output-wlp01 TO pla_rev.
        sum = sum + pla_rev.
          if sy-subrc EQ 0.
            else.
            write:/10 ' u r not ok'.
        endif.
    e  ndif.
    append it_output.
    *ENDAT.
    ENDLOOP.
    write:/10 'total amt is', sum.
    could anybady check where i gone wrong pls...
    Thanks in advance,
    sudharsan.

    Hi,
    What is your table structure.
    The command  AT ........ENDAT  work in sequential order.
    Let me explain with example.
    if your table itab has two column  column1 and column2
    loop at itab into wa.
    at new column2.
    // This will execute when the Value of column 1 change or column2
    // change.
    endat.
    endlloop.
    The solution of your problem is.
    Change your internal table column order ,
    Put the column first for which you want to calculate the sum.
    Thanks & Regards
    Kulvendra Kumar

  • PROBLEM WITH USER COMMAND AT SIMPLE REPORT

    HII FRNDS
    MY PROBLEM IS
    WHEN I AM BRANCHING TO A LIST REPORT FROM MY ALV REPORT BY USING LEAVE TO LIST-PROCESSING . THEN IN MY LIST REPORT I AM HAVING 2 MORE CUSTOMIZED BUTTON . BUT THE THING IS THAT I AM NOT ABLE TO MAKE THAT BUTTON  FUNCTION .
    CAN ANY BODY HELP ME WITH HOW TO MAKE THAT BUTTON WORK IN THE SIMPLE REPORT . I HAVE USED AT USER COMMAND IN THE BEGINING OF REPORT BUT STILL ITS NOT WORKING .
    THANKING YOU
    ROHIT

    HII FRNDS THIS IS THE CODE
    CASE R_UCOMM.
        WHEN 'DISPLAY1'.
          LOC_INDEX = 1 .
          SET PF-STATUS 'STATUS' EXCLUDING 'DISPLAY1'.
          LOOP AT INT_OUTPUT INTO WA_OUTPUT
                             WHERE CHECKBOX = WC_MARKED.
            APPEND WA_OUTPUT TO INT_DISPLAY .
          ENDLOOP.
          LEAVE TO LIST-PROCESSING .
          PERFORM F9100_DISPLAY_DETAILS USING LOC_INDEX.
    ENDCASE.
    AT USER-COMMAND .
    CASE SY-UCOMM.
    WHEN 'BACK'.
    BREAK-POINT.
           PERFORM F9100_DISPLAY_DETAILS USING LOC_INDEX.
      ENDCASE.
    THE PERFORM F9100 DISPLAYES THE LIST REPORT . THERE ARE NO SPELLING ERRORS FRNDS .

  • Problems with renaming device under Windows 7's "Portable Devices"

    I recently purchased an iPod touch 4g 32gb unit from ebay which still has about 3 months of warranty left on it.  The touch came with the previous 4.3.3 iOS installed on it and also jailbroken, so I upgraded to 5.0.1.  After installing the cord and setting up my new iPod through iTunes, I noticed under My Computer through Windows 7, under Portable Devices that the ipod Touch came up labeled as "AEIPOD TOUCH 4 4.3.3.3 32gb".
    I tried going into the properties and renaming it, and couldn't, but through iTunes, I was able to successfully rename it.  I would appreciate any help/feedback as to what I can do fix it, or if I might have to send it to Apple.
    Thanks!
    bti182

    i have the same problem. i had an old ipod touch and it had my name under portable devices. then my sister got a newer ipod touch and so under portable devices i put her name. BUT recently i got the newest ipod and when i connected it to my laptop it just automatically got my sisters name. i tried to change it under my computer and i even right clicked on it and click on Properties, but even through there i cannot change the name -_-

  • Problem with running commands

    Hi everybody !
    I'm having a form which on being submitted runs a Linux Shell Script using the Runtime class .
    Shell script consists of a command which prompts the user his username/password . I may sound absurd , but I want to know whether is it possible if I could prompt the user through GUI i.e my JSP page at this point of time .
    Thanks in advance ,
    Bye .

    Pl .help with this problem .It's urgent ,very important & challenging too .
    Someone , somewhere must have faced this problem .
    Thanks a lot.

  • Problem with modify command....

    Hi abapers,
    loop at itab.
    read table ifinal with key kunnr = itab-kunnr.
    if sy-subrc = 0.
    move: ifinal-dmbtr to itab-dmbtr.
    modify itab index sy-tabix.
    endif.
    endloop.
    Now the problem is that when i am using modify index sy-tabix it creating an additional entry
    and when i am using only modify itab its working fine so wat could be the reason that modify index sy-tabix is
    not working propertly.
    Thanks

    Hi Aarif,
    I am assuming there is one-to-one relationship between itab and ifinal.
    Try using following code.
    sort itab by kunnr.
    sort ifinal by kunnr.
    data: l_index like sy-tabix.
    l_index = 1.
    loop at itab.
      loop at ifinal from l_index.
         if ifinal-kunnr eq itab-kunnr.
            move: ifinal-dmbtr to itab-dmbtr.
        elseif ifinal-kunnr gt itab-kunnr.
           move sy-tabix to l_index.
           exit.
       endif.
    endloop.
      modify itab transporting dmbtr.
    endloop.
    Regards,
    Anil Salekar

  • Problem with User Command in alv report

    Hi
    I have developed a ALV grid report with drill down capability to transaction code for user command. I am having a trouble with this.
    CASE ucomm.
        WHEN '&IC1'.
          CLEAR: wa_import.
          IF selfield-fieldname EQ 'ANLN1'.
            READ TABLE t_import INTO wa_import INDEX selfield-tabindex.
            SET PARAMETER ID 'BUK' FIELD wa_import-bukrs.
            SET PARAMETER ID 'ANl' FIELD wa_import-anln1.
            CALL TRANSACTION 'AW01N'.
          ENDIF.
    here my parameter ids are showing the values but when i call the transaction i am not getting the actual asset numbers.
    Can someone help me out this
    Thanks

    Hi,
    add the AND SKIP FIRST SCREEN...addition..
    CALL TRANSACTION 'AW01N' AND SKIP FIRST SCREEN.
    Thanks
    Naren

Maybe you are looking for

  • DBMS_RANDOM inconsistent behaviour ?

    Hi: I have an issue with DBMS_RANDOM on 9.2.0.6 #### TEST CASE ##### create table t1 (col1 number); insert into t1 values ('1'); insert into t1 values ('2'); insert into t1 values ('3'); -- ## QUERY1 select rnd1, rnd1, col1 from (select * from (selec

  • EBook freezing on MAC 10.6.7

    My eBook freezes when I try to highlight, I have to restart the program. My OS is Mac 10.6.7 I restarted the program after I installed it, and after I had the problems, any suggestions?

  • User exit , transaction F110, an outbound Idoc

    Hi, During the payment process in transaction F110, an IDOC is generated.  I need to identify the user exit within the IDOC build process to do some special processing. The special process is to ‘substitute’ the POSTING DATE on the IDOC with the “NEX

  • Accessing Device Property Files

    How Can I access Device Property Files . Depending on the available screen size, I want to display 1 or more images in a J2ME application. This is required because a user can select a different device just before running the application/ can execute

  • New iphone 3G completely frozen

    I just upgraded to the 3G...got the new phone yesterday. I was talking on the phone and received 3 text messages while talking. When I went to hang up, I had to close all three messages to push the "end call" button. Once I did this my phone suddenly