Skip to Content
0

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

Oct 07, 2017 at 04:07 PM

91

avatar image
Former Member

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.

@viru p

@Midhun VP

@Jitendra Kansal

Thanks & Regards,

Muthu.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Jitendra Kansal
Oct 08, 2017 at 08:12 AM
0

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/889d29b3fac0456b812d86b5794c6e54.html

Regards,

Jitendra

Show 3 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thank you Jitendra for your swift response.. :)

Regards,

Muthukumaran.

0

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.

0
Former Member

Hi Jitendra,

Okay, will try the above scenario.

Can you please share some blogs. I have some doubts on getting the local ID from SMP/ HCP mobile service, Like how it is generated.

Thanks,

Muthu.

0