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

Re: odata function import - structure as import parameter

$
0
0

Hi Lucas,

 

 

If you are looking at passing a table to Function Import, I don't think its possible.

 

 

from you example it looks like your structure Struct1 in ABAP would be

 

 

temp  NUMC

 

date SY-DATUM

 

MeasuredValues - TableType

 

 

For ODATA,

 

You can create three parameters for Func Import - Temp , Date , MeasuredValues ( as string ).

 

 

Then from Client you can either pass comma separated values or JSON string in this field MeasuredValues. In your ABAP code you can split the field into a table or use JSON de-searlizer and fill your struct1.

 

 

ex - /TestFunct1?Temp='XXXX'&Date='XXXXX'&MeasuredValues='ID1,0111,ID2,002,ID3,003'

 

 

Also could you explain your use-case a little more since i dont think you actually need a function import here.

 

Regards

 

Mayank


Viewing all articles
Browse latest Browse all 9164

Trending Articles



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