cancel
Showing results for 
Search instead for 
Did you mean: 

UpdateEntity

vivek_gaurav
Participant
0 Kudos

Hi All,

I am facing issue in UpdateEntity Method in Gateway service call.


I am using SAP Gateway Foundation Version : 7.40

I had created Create Deep entity for  Customer(Header) and Partner function(Details), which is working fine but same

thing when i am calling PUT Method using UpdateEntity it gives me error :

Inline component is not defined or not allowed (HTTP PUT)

Gateway oData Service for update:

/sap/opu/odata/sap/CUSTOMER1/SOHeaders(CustomerID='0000000547',BNAME='M1018991')

If i pass only header part in XML request then Update entity is working fine but after adding partner function details it is giving above mentioned error

I had attached the XML ..

Kindly suggest ,what could be the issue..

Regards

Vivek

Accepted Solutions (1)

Accepted Solutions (1)

former_member184867
Active Contributor

Hi,

Deep insert is possible, but deep update is not possible as this is not supported.

To update parent and child in one Gateway call, you can use $batch feature.

Refer to Where is "update_deep_entity"? | SCN discussion.

Regards

Atanu

Answers (1)

Answers (1)

AshwinDutt
Active Contributor
0 Kudos

Hello Vivek,

You can also try implementing CHANGESET_PROCESS ( Call Data Provider in Defer Mode  )

Where you can collect all the Item and Header details and call Update_Entity only once ( Update header and Items details in one go ).

Have a look at the below and check ->

$batch Processing - SAP NetWeaver Gateway - SAP Library

/IWBEP/IF_MGW_APPL_SRV_RUNTIME - SAP NetWeaver Gateway - SAP Library

Regards,

Ashwin