cancel
Showing results for 
Search instead for 
Did you mean: 

Invoke Sync programmatically using API's in OCA

Former Member
0 Kudos

Hello Experts!!,

I am creating OCA application and I need to invoke sync programmatically using the API's. The requirement is, the user needs to set some parameter in the application before synchronization and if he doesn't set it, I need to restrict the user from synchronizing.

I went through the javadocs for Mobile Handhelds. In package com.sap.tc.mobile.sf.api.sync , class SyncManager, i could not find any method to invoke synchronization.

I checked the other packages as well, but I could not find any relevant class for this purpose.

In Netweaver Mobile 7.0 , we can control the sync using the SyncManager class, what is the way of acheiving the same in mobile 7.1 OCA apps.

Regards

Priya Ghosh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Priya

You cannot invoke the sync from the application code.

I feel your requirement may be achieved if you can send some flag and set the sync authorization in DOE for that user after every sync.

Regards

Vidyadhar

Former Member
0 Kudos

Hi Priya,

Find the thread, may help u.

Regards,

Srikanth