How to delete a  file from AL11??????

Advertisement

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.

Advertisement

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

October 11, 2015

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 t

How to delete the files from iPhone before selling?

How do I delete the files from my old iPhone4 before selling?Hey adhot, Before selling your iPhone, you'll want to follow these directions: Before you sell or give away your iOS device, make sure that you have removed all of your personal information

How to delete CR2 files from iPad

I recently used the camera connection kit to download photos (JPEG and Raw) from my Canon G12 to my iPad.  Since I have gotten home, I have been transferring the photos to iPhoto on my MacBook Pro.  When I try to delete the photos from my iPad, it wi

How to delete photo files from ipad

Now that I used the handy little card reader while on my last trip to download photos, my ipad is near capacity...urgh. How do I delete them? Is there a management system? Thanks!The links below have instructions for deleting photos. iOS and iPod: Sy

How do you delete a file from an iPad?

How do you delete a file from an iPad? There are 2 versions of a document file on my iPad. I want to get rid of the obsolete one. The iPad Users Guide does not describe how to delete a document file. This is very frustrating!The iPad Guide is for the

I've can't open any applications on my Mac ! I tried to delete some files from safari (history) and then none of the apps including iphoto, safari, mail, facetime. I don't know how to fix it, help ? any idea ?

I've can't open any applications on my Mac ! I tried to delete some files from safari (history) and then none of the apps including iphoto, safari, mail, facetime. I don't know how to fix it, help ? any idea ?Please read this whole message before doi

How can I delete PDF files from my iMac desktop?

How can I delete PDF files from my iMac desktop?Not on my system,When I try to dump if off in the trash it will not go. I get a message that says this file cannot be removed. I also tried going to File and clicking on Move to Trash. No dice.Read othe

How to search a file from a hierarchy and delete it

hi , i have to delete a file from a directory structure .i dno't know where is file stored in my folder hierarchy .i have to search that file and delete that file . for example ; i have a folder name A , which have folder B ,C ,D ,E . B folder have o

Already deleted all files from my MINIMAC and still appears to have only 200 gb free. How do I format the macmini?

Already deleted all files from my MINIMAC and still appears to have only 200 gb free. How do I format the macmini?If you deleted from within the OS, did you empty the Trash?Read other 2 answers

Unable to update software or upload pics from SD card-how do I remove files from startup disk? Please help!

Unable to update software or upload pics from SD card-how do I remove files from startup disk? Please help!Hello Smile_333 The article below will assist with finding things and help increase the hard drive space for your computer. The best way is to

YOUR COMPANY HAS DELETED IMPORTANT FILES FROM MY DESK TOP!  I DEMAND THAT YOU RECOVER THEM ASAP!

ADOBE WORK SPACE HAS DELETED IMPORTANT FILES FROM MY DESK TOP.  DOES ANYONE KNOW HOW TO RECOVER THEM?  ADOBE WORKSPACE IS SUPPOSE TO BE RETIRED, AND THE SYSTEM WILL NOT ALLOW ME TO DOWNLOAD OR RECOVER THE MISSING FILES!!!! 901.650.4724Hi Sara1 Severa

Hi, i purchased a 2 dvd digital set. i cant just download it straight to my ipad. they said i have to down load it to my i tunes, then can transfer to i pad. im not seeing how to click the files from my email, and get them into the i tunes acct... ugh.

hi, i purchased a 2 dvd digital set. i cant just download it straight to my ipad. they said i have to down load it to my i tunes, then can transfer to i pad. im not seeing how to click the files from my email, and get them into the i tunes acct... ug

Delete the file from the external hard drive

deleted adobe reader 10, delete the file from the external hard drive. how to restoreWhat is your operating system & version? How did you "delete" Adobe Reader? What "file" did you delete? What do you want to restore?Read other 7 a

HOW TO Delete Unused Media from FINAL CUT PRO

*HOW TO DELETE UNUSED MEDIA FROM HARD DRIVE IN FINAL CUT PRO.* Keywords: disk disc drive space remove compressor SUMMARY: Say your original clip is 10 gigs, you can use only what you need and delete the rest from your hard drive. I know people on the

HT203200 Cannot delete the file from the itunes folder

I cannont delete the file from the itunes folder because it tells me I need permission to do so.  I am the admin person for the laptop plus I have checked my permissions under the security tab in the files properties.  How do I delete this file to st

I found how to delete a series from my ipad, but it still won't download the last episode of the new series I am trying to have.  What have I done wrong?

I found how to delete a series from my ipad, but it still won't download the last episode of the new series I am trying to have.  What have I done wrong?What is the GarageBand version that your friend is using? If it is GarageBand '11, version 6.0.5,

I previously had PS CS5 Trial installed but removed it using both Control Panel Programs and deleting all files from the CS5 directory on Program Files.  I then installed a purchased product from Adobe disc using the serial number on the case.  But when I

I previously had PS CS5 Trial installed but removed it using both Control Panel Programs and deleting all files from the CS5 directory on Program Files.  I then installed a purchased product from Adobe disc using the serial number on the case.  But w

How to delete an app from iTunes?

Hi all I'm on the iTunes window of the app's and I've read about right clicking and seeing a 'delete app' option on a drop down list, but nothing happens, I've got a VuVuzela app I really want off (bad memories N all) tried dragging and dropping, all

I want to know how to delete game apps from my macbook pro also can i trust any macbook cleaners or keepers?

I want to know how to delete game apps from my macbook pro also can i trust any macbook cleaners or keepers? My mac seems to be running a bit off.To delete any type of app you need to open the Finder window and highlight the app you want to delete by

How to delete a photo from "Photo Library"?

How to delete a photo from "Photo Library"?"Photo Library" is a place where you can access all photos synced to your iphone.  They are not duplicate photos.  It is simply another place form which to access the smae photos that are in y