OData and SAP Netweaver Gateway. Part X. How to Delete OData Service from Service Catalog?

Share on Facebook10Share on LinkedIn21Tweet about this on TwitterShare on Google+0
Please Share!!

I always thought, creating something is always difficult than destroying, until I had a requirement to DELETE an OData Service from the Service Catalog (t-code /n/iwfnd/maint_service). 🙂

If you have not yet created your first OData Service, then stop here and jump to your Part II. Create your first OData Service.

The first thing, I did was to search for the Delete button. And I found one, as shown below. Without a second thought, I clicked Delete Service button followed by a Yes. But then I received a pop up saying “Delete ICF Node first”.

How to delete registered model and service?

Fair enough. It says ICF Node should be deleted first.

So, I did as instructed. Selected the ICF Node and hit the Delete button. It asked for a transport and then when I clicked OK, it again gave me an error message “Object directory entry cannot be deleted, the object is locked”. 🙁

Delete ICF Node in OData

Until this point, I had not thought of posting any article on How to Delete an OData Service? But the message, “the object is locked” puzzled me. After some hit and try, I figured out that there are 3 Steps to Delete a Service.

  1. Remove System Alias.
  2. Delete ICF Node
  3. Delete the Service.

Step 1: Remove the System Alias for the Service.

If you are not sure how to configure System Alias or what does System Alias mean, then read more about System Alias here.

Remove the System Alias for the Service

After you remove the Alias, it would look like below.

Remove the System Alias for the Service2

Step 2: Delete the ICF Node for the corresponding Service

Delete the ICF Node for corresponding Service

The Status would change to non-green i.e. Service is Initial (not active).

Service is Initial

Step 3: Finally Delete the Service.

Can't delete OData service from "/n/iwfnd/maint_service"

Hurrah!! Finally, we were able to delete our first Service from the Service Catalog. 🙂

Check all our parts in SAP Netweaver Gateway and OData Service Tutorial for in-depth understanding.

This topic seemed to be too simple to publish. We debated if this article is good enough for our readers. But, at the end we decided, someone’s couple of precious minutes would be saved if they are struggling to delete a service and they stumble upon our post. So, here we are. It is live and it might come handy to someone somewhere in this small SAP World.

So…What Do You Think?

Now we want to hear from you.

What do you think of this tip? Is it too simple to share?

Either way, please leave a quick comment below right now to let us know. 🙂

Table of Content – SAP Netweaver Gateway & OData Services

SAP Netweaver Gateway and OData Services. Part I– Introduction
SAP Netweaver Gateway and OData Services. Part II– Create your first OData Service
SAP Netweaver Gateway and OData Services. Part III– Query Options in OData Service URI
SAP Netweaver Gateway and OData Services. Part IV– Association and Navigation in OData Service
SAP Netweaver Gateway and OData Services. Part V– CRUD Operations in OData Services
SAP Netweaver Gateway and OData Services. Part VI– Frequently Asked Questions
SAP Netweaver Gateway and OData Services. Part VII– Debugging, Trace, Cache Cleanup and F4 Help
SAP Netweaver Gateway and OData Services. Part VIII– SAP’s Love for OData – a Tale of the Friendly ABAPer
SAP Netweaver Gateway and OData Services. Part IX– How to Add Multiple Entities in One Operation in OData Service
SAP Netweaver Gateway and OData Services. Part X– How to Delete OData Service from Service Catalog?
SAP Netweaver Gateway and OData Services. Part XI– Query Options & HTTP Status Code Summary

Share on Facebook10Share on LinkedIn21Tweet about this on TwitterShare on Google+0
Please Share!!

About the Author

SAP Yard
SAP Yard
SAPYard is one stop page for all Technical Folks in SAP. You would find un-conventional explanations, tutorials, and tricks. Please like our Facebook Page and also join our LinkedIn Group.

2 Comments on "OData and SAP Netweaver Gateway. Part X. How to Delete OData Service from Service Catalog?"

  1. Sudha Vukkalkar | July 12, 2017 at 5:52 pm | Reply

    I like each and every post of yours . Its a great help to all the learners and ppl taking baby steps into any of the SAP modules.Thank You!

    • Dear Sudha – Thank you very much for taking some time off and providing your feedback. We are glad, our posts are helpful.

      Please keep visiting and share our links. 🙂

      Regards,
      Team SAPYard.

Leave a comment

Your email address will not be published.


*