Skip to Content
avatar image
Former Member

OData GW service for Fiori Elements ListReport


I' ve created a GW service based on a DDIC structure, implemented the GET_ENTITYSET and GET_ENTITY method of _DPC_EXT class and redefined the DEFINE method of _MPC_EXT class.

Within the DEFINE method I set the entity type as aggregation.

DATA(lo_entity) =  model->get_entity_type( gc_rueckmeldung ).
lo_entity->set_semantic(  /iwbep/if_ana_odata_types=>gcs_ana_odata_semantic_value-query-aggregate).

I then defined the properties either as dimension or measurement.

DATA(lo_property) = co_entity->get_property( 'Rueck' ).  
IF lo_property IS BOUND.  
  DATA(lo_annotation) =
  IF lo_annotation IS BOUND.
      iv_key = /iwbep/if_ana_odata_types=>gcs_ana_odata_annotation_key-aggregation_role
      iv_value = /iwbep/if_ana_odata_types=>gcs_ana_odata_annotation_value-dimension-dimension

Everything works fine except that my measure-column isn' t totaled. I' m not using SADL, so I can' t redefine the QUERY method of the corresponding interface.

My question now is: How can I enable calculation and display of totals for the measure-column?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers