cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Collection of String in deep entity model

Shahab
Discoverer
0 Kudos
388

I am Working on a Deep Entity post odata request I am facing a challenge while adding multivalue-array in properties.
my JSON format is quit complex :

{

    "tourUpdateEventType": "FROZEN",

    "tourDetail": {

        "tourId": "",

        "transporterId": "",

        "transporterName": "Default transporter",

        "vehicleModelId": "",

        "vehicleModelName": "SUZUKI",

        "vehicleId": "",

        "tourStartTime": "",

        "tourEndTime": "",

        "tourTravelDistance": 5955,

        "isSortedForTour": false,

        "isMultiTrip": false

    },

    "orders": [

        {

            "id": "",

            "sourceOrderId": "",

            "type": "DROP",

            "date": "2024-11-07",

            "slot": {

                "start": "2024-11-07T02:00:00.000+0000",

                "end": "2024-11-07T17:00:00.000+0000"

            },

            "channel": "DISPATCH_IQ",

            "orderStatus": "PLANNED",

            "actor": {

                "id": "mara/personnel/rupsinghg"

            },

            "triggerTime": "2024-11-07T11:06:19.074+0000",

            "lineItems": [],

            "lineItemTransactionStatuses": [],

            "teamId": "1012-KS1",

            "quantities": [],

            "homebaseId": "1012",

            "homebaseEta": "2024-11-07T05:02:00.000+0000",

            "homebaseCompleteOtp": "5544",

            "customerCompleteOtp": "1868",

            "cancellationOtp": "1868",

            "customerReturnOtp": "6412",

            "locationId": "1012-KS1-01-0004300012",

            "planIteration": 1,

            "tourDetail": {

                "sequence": 1,

                "isSortedForTour": false

            },

            "initialEta": "2024-11-07T05:11:22.000+0000",

            "initialEtd": "2024-11-07T05:19:22.000+0000",

            "orchestrationMetadata": {

                "waybills": []

            },

            "amountTransaction": {

                "refId": "40e649bef5374ebb87c432c658a50ad5",

                "amount": {

                    "amount": 3,

                    "currency": "PKR"

                },

                "exchangeType": "NONE"

            }

        }

    ],

    "timestamp": "2024-11-07T11:06:23.338+0000"

}
facing problem in :

"lineItems": [], "lineItemTransactionStatuses": [], kindly help 

Accepted Solutions (0)

Answers (1)

Answers (1)

RalfHandl
Product and Topic Expert
Product and Topic Expert
0 Kudos

Which OData version (V2, V4) and which stack (CAP, RAP, ...) care you using?

OData V2 does not allow collections of strings at all.

OData V4 allows collections of strings, and they are supported in CAP. Not sure about the implementation state in RAP.

Shahab
Discoverer
0 Kudos

rightnow i am using V1 But if i use V4 Kindly help me which method entity i use for deep_entity and how can I found my service in tcode /n/IWFND/MAINT_SERVICE