How delete file on server

Hi experts,
I'd like to delete a file on sap server.
I  already looked in all forums, but no proposal solution seems to work! 
I tried some test with FM (SE37)--> SCMS_FILE_DELETE, DX_FILE_DELETE, EPS_DELETE_FILE, ITS_FILE_DELETE....
put filename and server path, but some FM end with exception and other seems to work but my file is always there (I checked in AL11).
Consider that I can only use a FM or a program already exist (that is I cannot create reports).
Why do these FM not work?
Thanks for your reply.
C.

Why don't you use
Delete Dataset "COMPLETE FILEPATH".
E.g. Delete Dataset '\usr\sap\dir\interface\va01.txt'.
Edited by: Kapil Sharma @ Steria on Sep 28, 2009 3:38 PM

Similar Messages

  • ASP Delete File from server

    I have made a file sharing app, and the description and file
    name are stored in my access db, when i delete the recordset for
    the file i also want to delete the actual file. i am able to delete
    the file with the full path entered and the file name as a
    variable,
    with this code:
    <%
    Dim filepath
    filepath = Session("file_del")
    set filedel = CreateObject("Scripting.FileSystemObject")
    filedel.DeleteFile("C:\localhost\CallCenter\EMPLOYEE_FILES\"&
    filepath), True
    set filedel = nothing
    %>
    I put the name of the file in the file_del session variable
    on the page that deletes the recordset.
    But i would like to make it work on my hosted site without
    having to change the path to my sites, so i have made this code:
    <%
    Dim filepath
    filepath = Session("file_del")
    strPhysicalPath = Server.MapPath(filepath)
    set filedel = CreateObject("Scripting.FileSystemObject")
    filedel.DeleteFile strPhysicalPath , True 'Line that causes
    ERROR
    set filedel = nothing
    %>
    But the error comes File Not found.
    if i just display the strPhysicalPath variable on the page
    without the delete action it displays the proper path.
    how can i get the strPhysicalPath to be read, i have tried
    all of the ways i can think of
    filedel.DeleteFile strPhysicalPath , True
    filedel.DeleteFile & strPhysicalPath & , True
    filedel.DeleteFile (strPhysicalPath) , True
    filedel.DeleteFile ("" & strPhysicalPath & "") , True
    filedel.DeleteFile ( & strPhysicalPath) , True
    But none of them work ?
    Any help would be great

    After some rest and a closer examination, i realized the
    error was in the mappath line, it wasnt including the folder that
    held the files. strPhysicalPath = Server.MapPath(filepath) was
    wrong so, I added the folder name: strPhysicalPath =
    Server.MapPath("EMPLOYEE_FILES/" & filepath) then the file is
    deleted. so complete code is:
    <%
    Dim filepath, strPhysicalPath
    filepath = Session("file_del")
    strPhysicalPath = Server.MapPath("EMPLOYEE_FILES/" &
    filepath)
    set filedel = CreateObject("Scripting.FileSystemObject")
    filedel.DeleteFile (strPhysicalPath), True
    set filedel = nothing
    %>

  • Delete file Application Server

    Hi ...
    I have an application wrote with Forms Dev. ... Is it possible delete a file on the application server ??
    Is it also possible delete a file in the Application server by a stored procedure ??
    Thank's in advance

    It is also possible to implement a java procedure on the database being invoked with a PL/SQL wrapper class.
    In this way (and if used right) there is also granularity regarding the filestructure permissions given and it may be called during a Forms or other PL/SQL session.
    As it is a requirement in this post to delete file from the AS, the database instance holding the JAVA class needs to be installed on the Application Server itself (which is not recommended anyway). But the article below explains a more generic approach how to invoke shell commands from within an Oracle Instance.
    Be careful with this, because it really works ;)
    Refer to :
    http://www.oracle-base.com/articles/8i/ShellCommandsFromPLSQL.php
    Message was edited by:
    user434854

  • Why a program doesn't have permission to delete file on server when I can

    Hi
    I am running an image cataloguer to manage an image collection on a server. I mount the server share point on my desktop. The cataloguer has a function to delete file(s), but I receive the message that it doesn't have the permission, but I can delete the file from the Finder.
    I checked that the program is running with my UID.
    Any ideas?
    thanks in advance

    If you get an error message that you do not have sufficient permissions to update then easiest is to trash the currently installed version to do a clean install of the new version.
    * Download a new copy of the Firefox program and save the DMG file to the desktop
    * Firefox 4.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Trash the current Firefox application to do a clean (re-)install
    * Install the new version that you have downloaded
    Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so you won't lose your bookmarks and other personal data.

  • How to delete file from server with space in name

    I am a novice, learned a little several years ago, but have to start all over again.
    I have set up the remote server (upload.comcast.net) without problems. I am unable to delete a file (file error:). I was able to upload the file, but cannot delete it. I figured out that that filename has a leading space. Now it's up on the server, but I cannot access it.
    Experiment:
    On the local folder, I deleted the leading space, and was able to upload, and delete it successfully. The original file remains unaccessible on the remote server.
    Thanks,
    Sonny

    Thanks for getting back so fast.
    Here is the error:
    /_4230151.ORF - error occurred - An FTP error occurred - cannot delete remote file _4230151.ORF.  Access denied.  The file may not exist, or there could be a permission problem.   Make sure you have proper authorization on the server and the server is properly configured
    As I mentioned before, I don't think that there is an authorization problem, as the changed name works fine, as does index.html
    What I do find interesting is that I was able to upload the file with the leading space. If I remember from several years ago, such a file would not even upload.
    I shutter to think of contacting Comcast. I think that they just give us the space with internet cable, but we are on our own with the website. Do you think that there might be some way to erase everything? I have only index.html up there, and don't mind starting over again.
    Sonny

  • Delete files from server

    Rather that putting or getting files from the server, how do
    I delete them off of the server? I've been clicking on a file, then
    right clicking and selecting delete, but does this actually remove
    the file off of the server?
    I've perused the internet and the help menu and can't find
    the answer-is that because it's as obvious as what I am doing
    already?
    Thanks in advance for any help offered!
    p

    >>right clicking and selecting delete, but does this
    actually remove the
    >>file off of the server?
    It does if you're using Remote View in the Files panel.
    Walt
    "sdluthier" <[email protected]> wrote in
    message
    news:ggk4a3$atf$[email protected]..
    > Rather that putting or getting files from the server,
    how do I delete them
    > off
    > of the server? I've been clicking on a file, then right
    clicking and
    > selecting
    > delete, but does this actually remove the file off of
    the server?
    >
    > I've perused the internet and the help menu and can't
    find the answer-is
    > that
    > because it's as obvious as what I am doing already?
    >
    > Thanks in advance for any help offered!
    > p
    >

  • Can't unlock or delete files on server

    At work, we've got a few folders on our Xserver that we can't delete. Trying to drag the folders to the trash gives us "The operation can’t be completed because the item “Icon” is locked" message. Each folder has a file inside of it called "Icon", and it's locked and says it's a Unix executable file. When we get info on this file, the box for "Locked" is checked, but we can't uncheck it. The sharing and permissions show as both read and write. Is there a way we can get these files unlocked, so we can delete the files and their folder?
    Thanks in advance for your help and/or suggestions.

    Have you tried using the 'rm' command?
    If that doesn't work, you may have to use chflag.
    http://macos-x-server.com/wiki/index.php?title=Chflags_Intro
    hth
    Jeff

  • PDF file to server (AL11)

    Hi gurus,
    Does anybody knows how can I manage (create and delete) files in server (AL11) in PDF format??
    I've already made a pdf file with my report output (ALV) in order to send it by email. That works fine; but I'll need save this information in a server file too; and overwrite it (delete an create) in each execution.
    Thanks in advance!

    Hi,
    Use the statement below to create file.
    OPEN DATASET l_out_file FOR OUTPUT IN TEXT MODE
    ENCODING DEFAULT.
    *Then Transfer the data to l-out_file. by Looping the internal table...
    Here Declare wa(wa_control_file contains n no of fields with required length) according to required length per line...
    TRANSFER wa_control-file TO l_out_file.
    And this definitely transfers the Total data from itab to Application server....
    Better use CG3Y and Transfer all the data to the local file and check how much data is available...

  • How to delete  File from the Application Server,ABAP

    Hi Gurus,
    I'm using  DELETE  DATASET  Statement ,
    Based on Date  how can i delete files with in the period in the Application server
    Any BAPI/FM  for this Delete file based  on some Date Period
    Thanks in Advance.

    DATA: BEGIN OF file,
            dirname(75) TYPE c, " name of directory. (possibly truncated.)
            name(75)    TYPE c, " name of entry. (possibly truncated.)
            type(10)    TYPE c,            " type of entry.
            len(8)      TYPE p,            " length in bytes.
            owner(8)    TYPE c,            " owner of the entry.
            mtime(6)    TYPE p, " last modification date, seconds since 1970
            mode(9)     TYPE c, " like "rwx-r-x--x": protection mode.
            useable(1)  TYPE c,
            subrc(4)    TYPE c,
            errno(3)    TYPE c,
            errmsg(40)  TYPE c,
            mod_date    TYPE d,
            mod_time(8) TYPE c,            " hh:mm:ss
            seen(1)     TYPE c,
            changed(1)  TYPE c,
          END OF file.
    DATA: BEGIN OF file_list OCCURS 100,
            dirname(75) TYPE c, " name of directory. (possibly truncated.)
            name(75)    TYPE c, " name of entry. (possibly truncated.)
            type(10)    TYPE c,            " type of entry.
            len(8)      TYPE p,            " length in bytes.
            owner(8)    TYPE c,            " owner of the entry.
            mtime(6)    TYPE p, " last modification date, seconds since 1970
            mode(9)     TYPE c, " like "rwx-r-x--x": protection mode.
            useable(1)  TYPE c,
            subrc(4)    TYPE c,
            errno(3)    TYPE c,
            errmsg(40)  TYPE c,
            mod_date    TYPE d,
            mod_time(8) TYPE c,            " hh:mm:ss
            seen(1)     TYPE c,
            changed(1)  TYPE c,
          END OF file_list.
      DO.
        CLEAR file.                           
        CALL 'C_DIR_READ_NEXT'
          ID 'TYPE'   FIELD file-type
          ID 'NAME'   FIELD file-name
          ID 'LEN'    FIELD file-len
          ID 'OWNER'  FIELD file-owner
          ID 'MTIME'  FIELD file-mtime
          ID 'MODE'   FIELD file-mode
          ID 'ERRNO'  FIELD file-errno
          ID 'ERRMSG' FIELD file-errmsg.
       if sy-subrc eq 0.
          MOVE-CORRESPONDING file TO file_list.
          APPEND file_list.
       else.
          exit.
       endif.
    enddo.
    sort file_list based on date and time ie, MOD_DATE and MOD_TIME fields
    and delete the entries

  • HOw to delete files from remote server?

    Hi,
    I want to delete files from a directory on remote server.
    I use the following command to delete on current server:
    find $srcdir -mtime +90 -name "COR*.txt" -exec rm -f {} \;
    Now, how can I delete files from remote server ?
    Thanks!
    Yogini

    Some possible options:
    1. There exists SSH implementation for Windows.
    2. You can make a workaround. You can setup share for specific/wanted directory.
    Then you can mount it on Linux machine and execute command localy and delete files "localy" in mounted directory.
    3. You can setup FTP server on Windows machine and do that remotely via FTP commands.

  • How to delete file on ftp server

    hello,how to delete file on ftp server?thank you!

    I was trying to hint to the fact that you gave no where near enough information.
    Have you already written anything? Such as software that will connect to an FTP server?
    Are you using a 3rd party package?
    Are you doing it by hand, using sockets?

  • How to delete the files from server through OAF page

    Hi All,
    I have a requirement in which i am creating files on server through my CO code.
    Now once the page is rendered, i want to delete the files from the server.
    Just wondering how can we achieve this.
    Kindly advice!
    Thanks,
    Sachin

    Hi Sachin
    all the methods in the processRequest() are called during loading of the page.
    all the methods in the processFormRequest() are called during any action events on the page.
    So Use the method in processFormRequest() : write a method in
    that on which action you want to delete the file.
    regards
    sridhar

  • How can i find an excel file deleted from the server

    In our office we all have access to the main server. Recently a document that we need was deleted from the server. It's not in the trash. Can and how would we be able to find and recover this deleted document? Specifically I am looking for an excel document, and I already checked the recent docs on excel.
    thanks!

    Have the admin for the server restore the file from the backup

  • How to delete file from Window server

    Hi
    Can anybody tell me that Is there any function module for deleting file from presentation server like C directory.
    Quick suggestion will highly be appreciated!!!!!!!

    Try this:
    CALL METHOD cl_gui_frontend_services=>file_delete
      EXPORTING
        filename             =
      changing
        rc                   =
    EXCEPTIONS
       FILE_DELETE_FAILED   = 1
       CNTL_ERROR           = 2
       ERROR_NO_GUI         = 3
       FILE_NOT_FOUND       = 4
       ACCESS_DENIED        = 5
       UNKNOWN_ERROR        = 6
       NOT_SUPPORTED_BY_GUI = 7
       WRONG_PARAMETER      = 8
       others               = 9
    this is pretty gud approach .
    Message was edited by:
            Nishant Rustagi

  • How can be delete file which is created with spool command on Oracle Server

    Dear Experts,
    we have ccreated a file in oracle with DBMS_SQL Package now i want to remove this file from Server with oracle commend or Scheduler .
    Please help us.

    user8725480 wrote:
    Host Script i am not aware about that. Could you please tell me about the same.Using the DBMS_SCHEDULER package you can launch an external executable. Using this you can launch a host script in a language of your choice (BASH, VBS, etc) to perform the actions you require.

Maybe you are looking for

  • IPhone Genius bar...

    when i go online to reserve a time the earliest i can get is for tomorrow. if i go to the apple store today i can just sign in and be seen today correct? i was doing so well with my 3G service. i would have it most of the day. occasionally it would g

  • Is there any way to keep the flash from going off when you receive a text or other notification?

    I have an iphone 4s.  Is there any way to keep the flash from going off when you receive a text or other notification?  I keep it next to my bed at night and keep thinking there is lightning when something comes thru.  LOL

  • Illustrator vs InDesign vs Rip software problems

    I have had this type of conflict for some time now. Maybe since CS3. It has occured in 2 ways... But both stemming from InDesign. If you create a drop shadow in InDesign (I'm not sure what method or the exact details) Then export the file, PDF or .AI

  • Subsequent adjustment not updated in PO history

    Dear Gurus, I have just posted a subsequent adjustment for a subcontracting PO, posting an excess consumption of raw material. However, the PO history in PO is not being updated i.e. it is only showing the origional material document that was entered

  • Should FBB1 affect CO-CCA?

    In general, all cost related postings from FI should hit Cost Centre Accounting, and visa versa. If a 'Post foreign currency valuation' (FBB1) is done, and expense accounts are valuated in group currency/CO Area currency only, these trigger FI>CO upd