on 2024 Sep 02 7:04 AM
Hello Experts,
I'm encountering an unusual issue with OData queries in SAP Cloud Platform Integration (CPI), and I'm hoping someone can shed some light on this problem.
When I perform an OData GET query, the order of the data fields in the result is reversed when using SAP CPI compared to when I use Postman.
Postman Result (Correct Order):
Product, ProductType, LastChangeDate
SAP CPI Result (Reversed Order):
LastChangeDate, ProductType, Product
I've attempted to resolve this by adding the $orderby parameter to my query, but unfortunately, this did not solve the issue. ($orderby=Product,ProductType,LastChangeDate)
My Questions are
1. Why might this reversal of field order occur when using SAP CPI?
2. How can I ensure that the field order in SAP CPI matches what I see in Postman?
As your reference, the attached screenshots show the Integration flow as well as the connection configuration for Odata Adapter, as well as the payload with reversed order.
It would be a huge help if you could please kindly advise on this one!
Thank you.
Hello Ryan,
Thank you for your answer.
But the correct order is Product, ProductType, LastChangeDate.
However, what I get in payload is
<A_ProductType>
<LastChangeDate>2024-01-10T00:00:00.000</LastChangeDate>
<ProductType>SERV</ProductType>
<Product>A001</Product>
</A_ProductType>
As you can see, the order is all reversed.
Or am I interpretating the payload wrongly?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.