AFAIK, OData Offline Service in SMP did not support deep insert concpet (sales order header + item). Is this available now with the latest SP ? If not, what is the workaround.
Also, would be good to know if we have live implementations with OData Offline Service for ERP datasets like sales orders, invoices, deliveries, etc. which also involve posting back data to ERP.
Till now we have been using our own approach for offline due to lack of deep insert support.
Regards,
Parag.
Request clarification before answering.
Hi Parag,
Deep insert support was added in SP07. But there are limitations: You should read the SAP note : 2140598
Regards, Midhun
SAP Technology RIG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Parag,
You are right, deep insert of any kind are supported in online. But in offline it supports deep inserts provided they are to a navigation that has a target of single entity.
Unfortunately, the Odata version 2 will not let us do it in offline. It might be possible in future with Odata version 4.
Regards, Midhun
SAP Technology RIG
Hmmmm..any idea when would this get implemented ?
Meanwhile, can we look at a design where we use offline store for all "reports" and metadata generated additional store with tables for entities that need deep insert.
For e.g. i would have a stock report, outstanding invoices, order status which could be in an offline store as these are only "query" requirements. and for creating a sales order, use own tables.
Would this be recommended approach or any pros/cons around it ?
Currently we are generating tables using the metadata and doing all the plumbing for an offline sync. This can be partially eliminated with the approach i described.
Regards,
Parag.
Hi Midhun,
Please provide me useful links or pointers about deep update in offline mode. The scenario for me is to add Items into existing Product. The model structure looks like:
Products: [ {
ID: "ProductID1"
Items: []
},
{
ID: "ProductID2"
Items: []
},
]
I have the latest version of SMP Client SDK. The app is Kapsel based app targeted for Windows platform.
Thanks,
Chirag.
Hi Chirag,
You should go through the SAP note I have provided to understand what is possible right now. Then follow the example : http://scn.sap.com/docs/DOC-65397#deepinsert
And if you have further questions please create a new discussion with all relevant details on your requirement and what you are trying to do.
Regards, Midhun
SAP Technology RIG
Hi Midhun,
Yes it's working fine in online mode. It's an issue with offline mode only.
To be more specific the model looks like:
WorkOrders : [
0: {
WorkOrderID: “111”,
WorkOrderDesc: “Description 111”,
Measurements: []
},
1: {
WorkOrderID: “111”,
WorkOrderDesc: “Description 111”,
Measurements: []
}
]
Now I would like to create a Measurement record for WorkOrder with WorkOrderID: “111”. The creation of record needs to happen in Offline mode.
Thanks,
Chirag.
Hi Parag,
Are you developing Hybrid / Native Apps? Also which platforms are you targeting (Android/Ios/ Windows)?
If developing Hybrid apps with Kapsel SDK of SMP 3.0 , please upgrade to minimum of SMP 3.0 SP08 SDK at the earliest to use the deep insert capabilities in the application. SP09 PL07 is the current version available.
Please refer the below link for an example of deep insert.
Regards
Virinchy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.