Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

OData DELETE-STREAM error: The requested service is not supported by entity

smkangethe
Participant
0 Kudos

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.

1 ACCEPTED SOLUTION

rishabhanand25
Explorer

Provide $value at the end of the URL.

Refer below link:

https://answers.sap.com/questions/11473816/uri-for-delete-stream.html

4 REPLIES 4

rishabhanand25
Explorer

Provide $value at the end of the URL.

Refer below link:

https://answers.sap.com/questions/11473816/uri-for-delete-stream.html

0 Kudos

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.

0 Kudos

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

0 Kudos

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.