Skip to Content
avatar image
Former Member

Odata function import - input as complex type

Hello

Is it possible to make an input as a complex type ?

for example we want to check set of values which are in table, all for one temperature .

and we will use structure:


1) -temperature

-table

-tableval1

-tableval2

-tableval3

Question is how to set such input type in segw ?

Thanks from mountains

Lucas

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Sep 19, 2014 at 12:17 PM

    Hello Lukasz,

    I do not see any provision to use a complex type parameters as input.

    Hence we cannot send fields of ur complex type as input to ur Function Import.

    We can only define data element and send only the fields which we define as function import parameters.

    U can accomplish that through ur GET operations. Where u can send complex type parameters as input as well.

    Regards,

    Ashwin

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello Lukasz,

      Comments as per my knowledge :

      1. Converting your table parameters as string and converting that back to your internal table in DPC is not a standard approach i feel.

      2. Accomplishing this GET operation through an Modifying request (CUD - POST PUT DELETE) is also not a part of standard i feel.

      U can use BATCH :

      How To Batch Multiple Operations Into A Single Request

      Each operation inside your body/payload is considered as separate individual operations in a single request. For each operation the same logic is called.

      Say If u have 5 entries in your table, then your logic is called 5 times rather than calling once ( like how it happens in our FM).This also u need to consider should i go with BATCH as there is a trade off when it comes to performance in fetching data.

      This is s standard approach and this is how BATCH works.

      There would be separate response for each of your table of inputs u send inside a payload and u will have to capture all that which will constitute the complete response for the data u sent as a payload.

      Regards,

      Ashwin