Skip to Content

Extend standard oData service for entity without ABAP structure

Hi,

I understand that there are many blog or tutorial out there on how to extend SAP standard oData using SEGW to add new field in the standard entity but all of them are using append structure approach to add new field into the standard structure of the entity.

My issue here is I need to extend SAP standard oData service that does not using ABAP structure in the entity definition. All fields are defined manually in the entity definition. Because of this approach, I cannot populate the value of the custom field in getEntity and getEntitySet method since the ET_ENTITYSET structure will be derived from the parent and cannot be changed. (Message Parameters/exceptions of inherited methods or events cannot be changed shown when I accessing method parameter of getEntitySet).

Is there anyone that know how to overcome this issue without the need to change SAP standard delivered oData service definition?

Thank you,

Abraham

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Jul 14, 2017 at 12:24 AM

    Hi,

    It seems like nobody knows the answer including SAP employee themselves.

    In that case, I have no choice but to change SAP standard oData service definition directly.

    Thank you.

    Regards,

    Abraham

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 14, 2017 at 11:23 AM

    In extended service DPC_EXT class redefine method of get_entityset .

    There put the code of new entityset added .

    Dont forget to put OTHER condition in CASE , this will get called for originals Entity sets .

    Then for custom entity make the new method in DPC_ext class and call it from redefined entityset method.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 14, 2017 at 09:53 AM

    how did you do it?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 16, 2017 at 11:31 AM

    Can you create custom entity set and then populate it ?

    Add comment
    10|10000 characters needed characters exceeded