01-05-2015 4:55 AM
HI Gurus,
I have a requirement where i need to convert my final internal table into XML file and download it in Non-Editable mode.
As of now i am able to convert in XML and able to download the file but we can edit it .
Can anyone suggest me how to download the same in non-editable mode.
Thanks in Advance.
Regards,
Vipin
01-05-2015 5:16 AM
You could use method FILE_SET_ATTRIBUTES of class CL_GUI_FRONTEND_SERVICES to set the read only attribute of the file
However, if the user has authorisation, he/she can overwrite the file/ change the attribute manually.
01-05-2015 5:16 AM
You could use method FILE_SET_ATTRIBUTES of class CL_GUI_FRONTEND_SERVICES to set the read only attribute of the file
However, if the user has authorisation, he/she can overwrite the file/ change the attribute manually.
01-05-2015 5:29 AM
Hi Pulkit,
thanks for your reply!!!
I tried using the said above frontend services but still after downloading file when i open it i am able to edit the file
01-05-2015 5:39 AM
You could edit the read only file. but when you try to save it, it will prompt you to provide a different file name. But again as I said earlier, if the user has authorisation to overwrite file/ modify the attribute it wont help.
If the user has other applications which allow him to edit the file, he/she would be able to edit it. The file is no longer in SAP, there is nothing from SAP that you can stop the user.
01-05-2015 6:29 AM
There is one product provided by Secude AG, that intercepts downloads and secures them using Microsoft's Azure, or AD RMS. This is the only way I know of making sure the downloaded files are readonly.
There may be other products that do the same thing.