07-24-2020 1:57 AM
When I Implement the DELETE_STREAM redefinition, I am getting an error message: CX_SADL_ENTITY_SRVICE_NOT_SUPP - The requested service is not supported by entity ~<MY Table Name>
The Get and Create Stream implementations are working well but DELETE is a problem. Secondly, I noticed when using an external breakpoint the method is not getting triggered at all. Any ideas? -See screenshot.
07-24-2020 11:52 AM
Provide $value at the end of the URL.
Refer below link:
https://answers.sap.com/questions/11473816/uri-for-delete-stream.html
07-24-2020 11:52 AM
Provide $value at the end of the URL.
Refer below link:
https://answers.sap.com/questions/11473816/uri-for-delete-stream.html
07-24-2020 2:35 PM
Thank you Rishabh. This works now. I know I have seen a different implementation that does not require /$value to be provided but that does not appear to be my case. For now though I'm happy.
12-08-2022 1:28 PM
Hi Stephen,
I'm doing the same thing, but I couldn't find any guidance about how to implement delete_stream method, so it looks like in the create_stream we just create a reference to the document, and the file is still physically stored in database table. So if we call create_stream with the same key one more time, it will just override the old reference and we don't have to actually implement delete_stream ourselves. I don't know whether I understand it correctly.
Can you share a little bit, what you do in your delete_stream method, I'm very very curious?
Thanks,
Cuong
12-08-2022 3:17 PM
Hi Cuong,
In my case the files are stored in Sharepoint but I have a table as well to store other related file info like Upload_user, description etc which is needed by the users. So in the delete_stream method, we have to delete both the file data in the Z table (using the key passed by the user) and then call CALL FUNCTION 'SDOK_PHIO_DELETE' to delete the actual document object.
Regards,
Stephen.