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

Integration Suite OData PATCH

vladimir_culic
Explorer
0 Likes
2,801

Hi,

I am struggling for quite some time to sole issues regarding OData services. Now my problem is with Sales Order Item. I want to change Reject Reason in item, but with OData adapter.

This is my connection:

vladimir_culic_0-1757667101530.png

processing:

vladimir_culic_1-1757667131812.png

Content Modifier before:

vladimir_culic_2-1757667337279.png

 

vladimir_culic_4-1757667375544.png

This is from log:
odata:PATCH_ENTRY?serviceUri=${exchangeProperty.endpoint}/sap/opu/odata/sap/API_SALES_ORDER_SRV/
&resourcePath=RAW(A_SalesOrderItem(SalesOrder='0000000578',SalesOrderItem='000010'))
&alias=RAW(CUC_BO_SO_0109)
&authenticationType=Basic
&retrieveAllPages=true
&oDataMethod=PATCH_ENTRY
&contentType=application/atom+xml
&componentContentType=xml
&receiveTimeOut=60000&proxyType=default
&SystemQueryOption=RAW(sap-client=100&$format=json)
&retryOnFailure=false
&allowRequestHeaders=false
&setErrorResponseBody=true
&isKeyAutoGenerated=true
&allowResponseHeaders=false
&isCSRFEnabled=true
&serviceType=HCIOData&allowHttpSuccessPassThrough=true
&adapterVersion=1.26.0
&whitelistRequestHeaders=RAW(Accept:application/atom+xml|If-Match:*|content-type:application/atom+xml;type=entry)
&validateSystemQueryOption=true
&enableTLSSessionReuse=true
&enableMPLAttachments=false
&enableKeyManagerCache=true

 

And at the end error:

Error Details
com.sap.gateway.core.ip.component.odata.exception.OsciException: Request Payload Parsing Failed for one of the reason: (1) Either the OData metadata content available in the server is outdated OR (2) The request payload seems to be incorrect. Error Details : Entity Set entry not found in the edmx.

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

anoukvandenengel
Participant
0 Likes

Hi @vladimir_culic, I think that with the OData adapter, your payload should look something like this:

<A_SalesOrderItem>
	<A_SalesOrderItemType>
		<SalesDocumentRjcnReason>${property.rejectReason}</SalesDocumentRjcnReason>
	</A_SalesOrderItemType>
</A_SalesOrderItem>

Answers (0)