Hello everyone.
I've an assignement where i need to aggregate data from the client database.
For that, I've created dedicated Table-Types that I use to store the data.
My concern is to expose (export) those Internal Tables ( based on Table-Types) through an OData service.
While I'm trying to create the ReadEntity(Read) & ReadEntity(Query) i'm getting that error :
> ' Key property Land does not have an Input mapping in the Read operation'
My function Module Import/Export looks like :
FUNCTION ZTPM_TEMP_FM. *"--------------------------------------------------- *"*"Local Interface: *" IMPORTING *" VALUE(FM_STARTDATE) TYPE D OPTIONAL *" VALUE(FM_ENDDATE) TYPE D OPTIONAL *" EXPORTING *" VALUE(FM_T_COUNTRYGROUPS) TYPE ZTPM_CTRYGRP_T *"---------------------------------------------------
And his Odata Service definition :
And there the ReadEntity(Read) method.
I dont get 2 things :
As i'm trying to expose those data, why should i provide the key(s) ? I'm trying to get the result, not to provide them ..
What should I then do, if I'm wrong, to expose the results of that function module through Odata ? (I've already read a lot, but i dont get it )
Thanks for your help !