Skip to Content
avatar image
Former Member

No instances can be created from abstract classes


Dear SAPGurus,

I have developed a oData Service in my backend system & able to register the service in the gateway hub system. When i try to execute the metadata of the service from gateway system i am able to see the metadata with list of entity types availble in the data model.

But when i try to execute with entity set i am getting the following error.

"The class 'ZCL_ZGRC_DATA_MODEL_DPC' is abstract. No instances can be created from abstract classes."

Where my data model provider class name is  'ZCL_ZGRC_DATA_MODEL_DPC'

Kindly help me.

Thanks & Regards,

Rumeshbabu S

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 13, 2014 at 09:49 AM

    Dear Ashwin,

    I have used GW Service Builder Tool.

    Thanks,

    Rumeshbaabu S

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Dear Ashwin,

      Yes your correct, i was searching for some way to register the service from backend to gateway system.I made some changes manually in assigning DPC to a service then i forget to revoke back to standard.

      But vey likely i am able to fiound this strange issue.

      Thanks for your prompt response.

      Thanks & Regards,

      Rumeshbabu S

  • avatar image
    Former Member
    Aug 13, 2014 at 08:37 AM

    Hello Rumesh,

    U have created Model Class and Data Provider Class using code based implementation is it?

    OR u have used GW Service Builder tool ?

    If its a manual code technique,

    What classes u have inherited ??

    We inherit the below classes when we create services via code based implementation.

    For DPC - /IWBEP/CL_MGW_PUSH_ABS_DATA

    For MPC - /IWBEP/CL_MGW_PUSH_ABS_MODEL

    Please check the above points.

    Regards,

    Ashwin

    Add comment
    10|10000 characters needed characters exceeded