cancel
Showing results for 
Search instead for 
Did you mean: 

File getting deleted from AL11 (Application server)

former_member206593
Participant
0 Kudos

Hello,

I am uploading file to Application server using CG3Z or cl_rsan_ut_appserv_file_writer=>appserver_file_write. Once uploaded I can see the file for a few seconds in AL11, but after that it gets deleted and when I refresh a popup msg is displayed saying "1 Data Files have Disappeared".

I tried checking if there's any Batch job running in the background which would do that, but couldn't find any. It is happening for only a specific folder. If I write the file just outside that folder, it does not happen.

screenshot.jpg

Can someone please help me figure out the issue. Checked with Unix folks and they said there is no Script running at their end. Basis did not see anything wrong with the folder. They even tried deleting the folder and recreating it. Where or how can I find if there's anything running in SAP which is causing to delete the file.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Saras,

How you are generating a file on application server? If it is using ABAP program/code then it must be getting deleted using the next part of code.

Review your program and understand steps. I think it is working as expected.

Regards,

Harish Karra

former_member206593
Participant
0 Kudos

Hi Harish,

Thanks for your response but I guess you did not read my post correctly: I have tried generating the file through both - standard tcode CG3Z and "method appserver_file_write of Class cl_rsan_ut_appserv_file_writer" (used in my program) or even running it separately. It is happening in both the cases. There is no next part of code in CG3Z.

Regards,

Saras

Former Member
0 Kudos

Hi Saras,

In that case I suggest to place a file in that particular location and see if it is getting deleted (Do not use CG3Z, just copy/paste manually from other location). If it is getting deleted then there must be an external trigger which is causing to (It is nothing to do with SAP) Ex: Unix script to maintain space.

Looking at the screen shot, you are trying to place a file in OS file system. May be it is not allowed according to your environment that's the reason cleanup script is deleting it! It is not a good idea to use system folder to dump data, use other temporary space.

Regards,

Harish Karra

former_member206593
Participant

Hi Harish,

After too many trials, I found out the pattern. The file is getting deleted when the extension is in Capital Letters e.g. .CSV instead of .csv. I know it's very silly and no one could ever guess that but that's is what I observed. Your answer was close(last paragraph), looks like somewhere at OS level some script is deleting the file if extension is not = ".csv" and it is not understanding .CSV as .csv.

At this moment, I will just translate the filename to Lowercase in my program instead of finding out where exactly it is happening and let Unix/Basis guys research at OS level for future reference.

Thank you much for your help.

Regards,

Saras Jain

Former Member

Saras,

One other thing - As I mentioned above, do not use any system folder to store extracted data. It is always a risk to your data as well as for entire system. Ask your OS/BASIS team for any other temp location to store your data, if you get it then you don't even need to change the file ext..

Regards,

Harish Karra

Answers (0)