Hello Lucas,
The way u would like to pass is not possible through a Function Import as there is no provision for sending complex type parameters as input along with the parameters of your entity as well.
So u need to implement QUERY/Get_Entity_Set to accomplish your scenario :
Steps for ur reference ->
1. Create Complex Type :
2. Create an Entity and Add that Complex Type along with your Entity parameters as below :
Entity - Input
EntitySet - InputSet
Complex Type - MeasuredValue
3. Implement /IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_ENTITYSET / QUERY operation :
U can access ur Complex Type Parameters as part of filters as below :
URL ->
/sap/opu/odata/sap/ZASH_TEST_MANJ_SRV/InputSet?$filter=Temp eq '10' and Datein eq datetime'2014-02-02T00:00:00' and Measure/V1 eq 'V1' and Measure/V2 eq 'V2'
Regards,
Ashwin