Skip to Content

Difference between Entity based etags and property based etags in SAP Gateway?

Hi all,

Could anyone explain the difference between 'Entity' based and 'Property' based Etags in SAP Gateway (Odata). Possibly with example. I tried in Google, didn't find the answer.

Thanks in advance!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 26 at 09:18 AM

    Hello Vikram,
    From my understanding of eTags there is no difference between 'Entity' based and 'Property' based eTags.

    In the Service Builder, you create ETags at the entity type level. Here you can mark one property as the ETag property. The ETag header field in a response provides information about the status of a resource. If the client performs a read or wants to perform an update at a later point in time, the client can use the ETag to check whether the data has changed in the meantime.

    I hope this has helped with your query.

    Kind Regards,
    Grahame Collins,
    SAP Gateway Support.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Vikram,

      AFAIK there is nothing called as property based eTags. eTag property exists at the Entity level and is used as a marker to denote certain decision making criteria for whether the Update of an Entity be allowed or not.

      Eg: Timestamps are frequently used as eTags.

      BR.