cancel
Showing results for 
Search instead for 
Did you mean: 

How to perform deep insert in Offline mobile application using HCP mobile service?

Muthukumaran
Explorer
0 Kudos

Hi Experts,

We are trying to achieve Deep insert in Offline hybrid mobile application. The application is working fine in desktop with the creation of deep insert(For Eg. SO Header and multiple line items). The same when we tried in offline Hybrid native application it is not working instead it throws an error "Deep insert is not possible"(Checked in console through USB debugging). Please let me know, Why HCPms framework is not handling deep insert? What is the best approach to do that so?

It will be very much helpful if you can share some points on this.

viru48

midhun.vp

jitendrakumar.kansal

Thanks & Regards,

Muthu.

Accepted Solutions (1)

Accepted Solutions (1)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello MUTHU KUMARAN ,

Please note that Offline OData does not support deep insert operations when at least one end of the relationships is “to many”

You can check here for more detailed information:

https://help.sap.com/viewer/42dc90f1e1ed45d9aafad60c80646d10/3.0.15/en-US/889d29b3fac0456b812d86b579...

Regards,

Jitendra

Muthukumaran
Explorer
0 Kudos

Thank you Jitendra for your swift response.. 🙂

Regards,

Muthukumaran.

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello MUTHU KUMARAN,

I didnt answer to your last query, Here it is:

How to deep insert (POST) to 1:n relationship in offline mode:

1. Make a POST call for SO header creation, you would get a local ID

2. To this local ID, make a POST call for respective Items creation

POST SalesOrderHeader('localID')/Items CurrencyCode=ABC

Regards,

JK

PS: You are around SAP TechEd, you should attend DX272 hands-on exercise.

Answers (1)

Answers (1)

Raj_Patel
Explorer
0 Kudos

Hi , I am also stuck in deep insert.

I have converted my UI5 app into hybrid offline app,but facing create deep insert showing error message "deep insert not supported" while it is working in web application

So is there any code change I have to do or what ??

Kindly help me out jitendrakumar.kansal

thanks alot....