Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
kpavuk
Explorer
0 Kudos

Introduction

in this blog I will give a solution to a typical error at metadata reload of an oData service.

Symptom

In Transaction /IWFND/MAINT_SERVICE (Activate and Maintain Services) at reloading the metadata an error message appears:

Loading the metadata for service 'YOUR_SERVICE_NAME' failed. Check the error log. (/IWFND/CM_MGW066).

Further the error log shows:

..ERROR_INFO    ABAP Dictionary element 'YOUR_STRUCTURE-DELETED_FIELD' not found (/IWFND/CM_MGW004)

Reason

The metadata cache contains the old version of the DDIC stuctures. If a field in the backend system has been removed, the metadata cache would not be informed about this.

Solution

  1. Start transaction /IWBEP/REG_SERVICE (Maintain Service)
  2. Put your service name in the 'Technical Service Name' field
  3. Click on 'Display'
  4. Click on 'Cleanup Cache' to cleanup the metadata cache
  5. In Transaction /IWFND/MAINT_SERVICE now you can repeat reloading the metadata
    (The cleanup is also possible from here, if you select your service and click on the '(display) Service Implementation' Button in the bottom right area 'System Aliases')

Other Terms

/IWFND/CM_MGW066, /IWFND/CM_MGW004, /IWFND/CM_MGW, ABAP Dictionary element not found, metadata cache, DDIC field deleted

Scenario

In this case I have an

  1. SAP Backend System with an oData mapping
    • Model Provider Class
    • Data Provider Class
      • to the actual entity has been a strucure binded (/IWBEP/IF_MGW_ODATA_ENTITY_TYP=>BIND_STRUCTURE)
  2. SAP NW Gaterway with the oData Service Catalog
2 Comments
Labels in this area