Skip to Content
author's profile photo Former Member
Former Member

Not able to access data from consolidated database(CDB) using native Android application

Hi All

I am new to the SUP world. Have created an Android native app using the generated code for the deployed MBO. For this MBO i am using the cache policy as scheduled(for 10mins) .I am using MBS based synchronization in my code. At the start In my SAP backend has 4 records ,now when one more record is added to the backend, the updated record is not reflected in my app even after the specified cache interval. I can see the updated record only if i call synchronize() in my code .

My query is do I have to call synchronize() everytime I need to get the updated record from backend?

Second i have noticed if I call synchronize() just after the backed is updated , i get the updated record without the delay of specified cache interval which means the app is hitting backend DB. Is it normal or i have made some mistakes while configuring the MBO because then there is no use of cache.

Thanks & Regards
Mohammed Rehan Rizvi

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jan 16, 2013 at 09:08 AM

    Without performing a synchronization the data in device and CDB will not sync.

    If you want to get the updated data from CDB to device as soon as CDB is updated you have to perform a background process that calls the Sync api.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.