Skip to Content
avatar image
Former Member

Delete local record from device in Kapsel offline SAP UI5 app with SMP 3

Hi All,

we have created one SAP UI5 based offline app for create Physical inventory using kapsel in SMP 3 . we are able to successfully create record in back-end.

But we are facing issue , when user is in offline mode and he has created one record in offline and then without coming online ,user want to discard/delete record from local device.

As we know ,if we call delete operation it will call delete operation in back-end. which is not useful.

Kindly advice...

Regards

Vivek

Add comment
10|10000 characters needed characters exceeded

  • Former Member

    HI SAP expert...

    Kindly suggest any solution..

    we are facing issue for deleting local record from device in offline kapsel based app integrated with SMP 3.0

    Kindly advice.

    Thanks

    Vivek

  • Get RSS Feed

2 Answers

  • Jul 06, 2017 at 11:00 AM

    You should do the delete as normal and it would have backend interaction. Both the create and the delete is kept in the outbound request queue in the offline database and sent to HCPms/SMP and backend OData service. HCPms / SMP keeps track of converting the temporary ID of the delete action to the ID returned from the backend from the create and then do the delete operation on the correct backend ID. If this is left out, then the OData service will not be able to return the ID in the response of the create to HCPms/SMP. Therefore, HCPms/SMP will not able to map the backend created ID to the temp ID on the Delete request before sending the Delete request to the OData service. If you are looking for another solution, you should open an incident with SAP Support. Additional note, a moderator is not necessarily a technical expert in the area. Alerting a moderator on your question to get an answer is not proper.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 05 at 10:08 AM

    Hey Guys did you find a solution to this problem.

    We are faced with a similar issue. The problem is with Measuring Documents in the backend. Let's say we create a new Measuring doc in the front end. We then delete/edit the recorded document. This will give somthing like this in the outbound request queue:

    Create Measuredoc
    Delete/Edit Measuredoc

    The problem is that the backend can't delete the measurement document once created and the requests are processed individually.

    Hope you can help me out.

    Add comment
    10|10000 characters needed characters exceeded