How to delete a file from Appliction Server.
Hi Gurus,
I want to delete a file from application server .
can any one tell me the FM/BAPI.
Plz Reply me ASAP.
Thanks in Advance.
BAPI_DOCUMENT_DELETE ?
GUI_DELETE_FILE ?
maybe just go to SE37, enter DELETE, and click on the document icon to find from repository system.
Regards,
Vincent
Similar Messages
-
How to delete a file from application server?
Hi gurus,
i want delete a file from application server . can any one tell me the BAPI/Fm .
thanks in advanceSee the replies of the thread;
How to delete File from the Application Server,ABAP
But i can smell something fishy in both The specified item was not found. and The specified item was not found. style of posting questions. Also both of you have similar questions in your profile....
Hmmm, Mods have to take care of the Rest...
Regards
Karthik D -
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,
SachinHi 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 -
In adf,how to delete a file generated on server,when the webpage is closed
Hi,
I have an application consisting of 2 pages. in the 1st page i will give some input details and when i click on submit, some java code is getting executed in the back. That java code generates a csv file in the server location. after succesful execution of java code, i was redirected to 2nd page. In 2nd page, i am giving option to download and when the user clicked on download button and after the file is downloaded -- in the backend i am deleting the file from the server. Till this point everything is fine. But if the user didnt click on the Download button and instead if he closes the browser, the csv file gets remained on the server itself. This is the issue i am facing .. I am not able to get an idea in ADF Framework, how to delete a file when the browser is closed. Please help me out in this.
Thanks in advance !!!ADF has nothing to do with tracking browser close buttons. What you can do is call a JS function and call the method which deletes the file from within the JS function. ADF has a component for calling java code from JS call.
-
System exception while deleting the file from app server in background job
Hi All,
I have a issue while the deleting the file from application server.
I am using the statement DELETE DATASET in my program to delete the file from app server.
I am able to delete the file from the app server when i run the program from app server.
When i run the same report from background job i am getting the message called System exception.
Is there any secuirity which i need to get the issue.
Thank You,
TaraginiHi All,
I get all the authorization sto delete the file from application serever.
Thing is i am able to run the program sucessfully in foreground but not in the background .
It i snot giving any short dump also just JOB is cancelled with the exception 'Job cancelled after system exception ERROR_MESSAGE'.
Can anybody please give me suggestion
Thanks,
Taragini -
Anyone knows how to delete a file from a directory?????
hi there
anyone has any idea on how to delete a file from a directory? delete(String filename)? thank you.Hi,
Check this link.
Gives you an example code to show how to delete a file.
http://examples.oreilly.com/jenut/Delete.java
Hope this helps.
Roopasri Vittal
Developer Technical Support
Sun Microsystems
http://sun.com/developers/support -
How to upload XML file from Application server.
Hi,
How to upload XML file from Application server.Please tell me as early as possible.
Regards,
Sagar.Hi,
parameters : p_file type ibipparms-path obligatory.
***DOWNLOAD---->SAP INTO EXCEL
filename1 = p_file.
call function 'GUI_DOWNLOAD'
exporting
BIN_FILESIZE =
filename = filename1
filetype = 'ASC'
APPEND = ' '
WRITE_FIELD_SEPARATOR = 'X'
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
IMPORTING
FILELENGTH =
tables
data_tab = it_stock
FIELDNAMES =
exceptions
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
others = 22
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Regards,
Deepthi. -
How to delete Archived files from FTP
HI,
I am looking to delete Archived files from FTP Server, Can anybody have idea about this.
Thanks,
RamTo be frank, deletion of archived files is really a manual activity and is never in reality done by an interface
so you have two options;
1. log into the archived folder and manually delete archived files
2. run a script in your file adapter - this way everytime the interface is triggered the files will be deleted - but then y do this.. instead just dont archive any files at all -
How to delete a file on web server without using FTP
Hi All
I hv given a facility to a site user to upload some files..
And an interface to web administrator to view all the files..
I want to know how can i write a code in JSP which allow the web administrator to delete any of that file which is not of his/her interest through provided interface only.
OR
Is it possible to delete a particular file from web server without getting login into FTP account
Thanxnew File(strFileName).remove;
Simply as this.
Don't forget to import java.io.FileInputStream. -
How to delete a file from AL11??????
Hi Friends,
how can i delete a file from AL11 directory....
i have found FM's like EPS_DELETE_FILE, EDI_PORT_DELETE_FILE and some more from SAP system but those are not deleting the files....
let me know if i can write a program for this and if yes then guide me for writing the same....
Thanks,
Nagesh.reference:http://saplab.blogspot.com/2007/10/sample-abap-program-to-delete-file-from.html
REPORT ZDELETE.
Delete a file on the application server.
PARAMETERS: P_DIR LIKE RLGRAP-FILENAME
DEFAULT '/usr/sap/trans/', *it will delete files from this dir
P_FILE1 LIKE RLGRAP-FILENAME.
DATA: P_FILE(128).
DATA: W_ANS.
START-OF-SELECTION.
CONCATENATE P_DIR P_FILE1 INTO P_FILE.
check file exists
OPEN DATASET P_FILE FOR INPUT.
IF SY-SUBRC NE 0.
MESSAGE E899(BD) WITH P_FILE 'does not exist'.
EXIT.
ELSE.
CALL FUNCTION 'POPUP_CONTINUE_YES_NO'
EXPORTING
DEFAULTOPTION = 'N'
TEXTLINE1 = P_DIR
TEXTLINE2 = P_FILE1
TITEL = 'ARE YOU SURE YOU WANT TO DELETE'
START_COLUMN = 25
START_ROW = 6
IMPORTING
ANSWER = W_ANS
EXCEPTIONS
OTHERS = 1.
ENDIF.
CLOSE DATASET P_FILE.
CHECK W_ANS = 'J'.
delete
DELETE DATASET P_FILE.
IF SY-SUBRC NE 0.
MESSAGE E899(BD) WITH 'Invalid file name' P_FILE.
ELSE.
CLOSE DATASET P_FILE.
MESSAGE I899(BD) WITH P_DIR P_FILE1 'DELETED'.
ENDIF -
Help needed - OS Command foe deleting a file from Appplication server.
Hi,
I have requirement, where in i need to delete a file from the application server. It has to be done automatically. I thought of using OS Command for achieving the same. Can anyone help me in achieving it. The OS of my application server system is UNIX.
Thanks in advance!!
P.S: Points will be rewarded.Hello Sudeep,
If you define the command for each operating system using transactions SM69 (You can test it with SM49) and then call it using SXPG_COMMAND_EXECUTE which contains a parameter defining the operating system (SY-OPSYS)
then it does not matter which operating system is running, the function module always calls the correct version of the command.
So, for example you could define a command 'OS_COMMAND'
which deleted a file. This would have one version for Dos
which said 'del', and a second version for unix which said 'rm'.
The correct command would be specified by the call to SXPG_COMMAND_EXECUTE because the operating system parameter differentiates between the two commands.
[USING PROCESS CHAINS IN SAP BW|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0a7cd90-0201-0010-49a1-d730a56895f4]
SXPG_COMMAND_LIST_GET Reads a list of external OS commands
Thanks
Chandran -
How to delete 1 file from CD?
If I only want to delete one file from a cd that contains many files, how do I do this? I don't want to erase the whole cd!
1. find 700 MB of free space somewhere, you have it i'm sure. if not back-up & delete old stuff...
2. copy the whole CD to there
3. delete that one file
4. burn a new CD (this is the one step i'm not sure you're able to do locally - hence your question. or?)
5. allow burn to verify. then test it as mounted.
6. if o.k., use sturdy scissors and cut the previous CD in half. or use s'th sharp and dig into the data side...
i'm partial to the cutting in half approach. apparently putting a CD into a microwave destroys it too, and i hear the process results in interesting visual effects, but if you go that route i suggest you do this in someone else's microwave and from a safe distance...
cheers -
How to delete the Folder from sql server 2008
Hi all,
I was trying to delete the folder from sql server 2008 with the below script
DECLARE @path VARCHAR(256) -- path for backup files
DECLARE @cmd VARCHAR(8000)
DECLARE @folderName VARCHAR(256) -- filename for backup
SET @folderName = + (CONVERT(varchar(10), GETDATE()-7, 112)) -- 7 days back date folder name
SET @path = 'I:\Backup_Test\' + @folderName -- Folder path
SET @cmd = 'del ' + @path -- Delete
EXEC master..xp_cmdshell @cmd
--Print @cmd
This is not working it was asking the Confirmation (I:\Backup_Test\20100629\*, Are you sure (Y/N)? ) what will i do to the delete the folder.
Thanks,
Prasad R.I would notice you that T-SQL does not play well to do things like that. Do not you want using .net language to delete folders?
Old method is
declare @HR int, @CFOLDER varchar(255),@FSO int
set @CFOLDER='D:\folder\'
EXEC @HR = sp_OACreate 'Scripting.FileSystemObject', @FSO OUT
EXEC @HR = sp_OAMethod @FSO, null, 'DeleteFolder', @CFOLDER
Now regarding to your second question please examine xp_fileexist system stored procedure
CREATE FUNCTION dbo.fn_file_exists(@filename VARCHAR(300))
RETURNS INT
AS
BEGIN
DECLARE @file_exists AS INT
EXEC master..xp_fileexist @filename, @file_exists OUTPUT
RETURN @file_exists
END
GO
-- test
SELECT dbo.fn_file_exists('c:\a.txt')
Best Regards, Uri Dimant SQL Server MVP http://dimantdatabasesolutions.blogspot.com/ http://sqlblog.com/blogs/uri_dimant/ -
How to delete a file from my hard drive through iTunes?
I want to delete a file through my iTunes. Whenever I do, it just gives me a dialog window telling me that it will delete the file from the library and my iPod. It does NOT delete it from my hard drive. I do NOT want to let iTunes manage my music.
How can I delete files? It seems crazy that I wouldn't be able to.hmm. for some strange reason after doing that it just simply warns me that in deleting the song(s) it will ruin my playlists/mess up songs currently on my ipod.
im just trying to delete all the songs that are under a minute from various albums because they take a lot of room, yet are pretty useless. but they are strung out over multiple files and i simply would love to be able to delete them all from the library where they are arranged. do you know of any other techniques to fix it? -
How to compare the files from one server to another
Hi !
I want to compare the files present in one server to another server. I had to list out the files which is not present in the server and import those files to an excel file. There are lot of folders and lot of files present inside those folders. I want a java or jsp or javascript program code for this or any site which indicates how to do. What are the requirement for this program to implement like any tool or any other techniques. Please can u help me out.No ... The package mentioned in
http://www.oracle-base.com/dba/miscellaneous/ftp.pks
this works for across the server i.e. transfer the files from one server to other (it is basically ftp) ..
So it is NOT correct that this code transfer the file between two location & with in server..
Maybe you are looking for
-
can someone help me
-
Lost all saved passwords. how do I retreive them?
I have lost all of my saved passwords in my Tools, Options, Security. How do I go about restarting this so it will save passwords from here forward, or if possible retrieving all of the passwords that were lost. Thank you for any help I can get on th
-
Hi, I am new to this forum so please excuse me if some of my questions seem odd. I have two questions about using bbm groups. A group previously set up and used frequently for past year or so now no longer is working. Specifically, when I go to the
-
SCCM 2012 R2 - Software metering Reports Parameters Value not appear to choice
Hello Every Body I hope to get answer as soon as possible I have SCCM 2012 R2 & SQL Server 2012 SP1, my problem is ( all software metering Reports Parameters Values Not appear so I cannot select Note:- ( All parameters Available Value set to Get Valu
-
How come file sync to CC fails again and again and ...
Again and again ... the file sync to CC fails Again to day - I have trouble with file sync to CC is about It is about every week since this summer that this file sync does not work. I have tried to get an answer - but have not got any. It seems that