Skip to Content

oData service, reload metadata error after DDIC structure field delete – cleanup metadata cache


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


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)


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.


  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


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
Be the first to leave a comment
You must be Logged on to comment or reply to a post.