Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9164

Re: Odata function import - input as complex type

$
0
0

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 :

 

CT.png

2. Create an Entity and Add that Complex Type along with your Entity parameters as below :

 

Entity - Input

EntitySet - InputSet

Complex Type - MeasuredValue

 

Model.png

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 :


Filters_RunTime.png

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



Viewing all articles
Browse latest Browse all 9164

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>