Skip to Content
Author's profile photo Ankan Banerjee

Setting up rules for offline data distribution

The new SAP Cloud for Customer Extended Edition applications (iOS, Android and Windows) give you granular control over the data that is downloaded to a user’s device for offline usage.

As a key user, you can configure the rules for this. These rules can be company-wide (valid for all roles) or for specific-roles (Sales Rep, Field Service Agent etc.)

Rules are basically queries which select a set of data that is relevant for the user.

In Cloud for Customer, we have a concept of queries, like ‘My Accounts’, ‘My Open Visits’ etc. – the same concept is relevant for offline data distribution as well.

This means that the same queries you are used to working with online, can now be used by the synchronization engine to bring data offline.

This simple solution provides powerful capabilities:

1. Different rules can be setup to bring down different data sets for different user roles (e.g. My Accounts for a Sales Rep, My Team’s Account for a Sales Manager)

2. As a key user, you can create queries for all users which are available to them online when they are viewing a list of objects.

3. These same custom queries can then be reused as custom rules which determine what data is downloaded and stored for offline usage!

Create Queries.png

As a key user, you can maintain these rules under Administrator > Offline Settings.

/wp-content/uploads/2015/10/2015_10_19_22_53_45_817239.png

To get started, you can quickly define rules that are valid for all business roles (common business data valid for everyone in your organization):

/wp-content/uploads/2015/10/2015_10_06_11_51_42_817240.png

and rules that are valid for specific business roles:

/wp-content/uploads/2015/10/2015_10_06_11_52_10_817265.png

A few points to keep in mind:

1. The data downloaded for a user is a union of the data brought down by rules valid for all business roles and her specific business role.

2. The maximum limit for each object is 5000 entries – in case the limit is reached during download, the last modified (5000) entries would be downloaded

3. The data brought down by these rules is called ‘Primary’ data.

4. In certain cases, we bring down related data for objects being downloaded automatically with them – e.g. The Account of a Visit (or Task or Ticket) would be downloaded automatically even if no rule was set up for bringing down Accounts specifically.

This data is called ‘secondary’ data as it is not brought down by the rules configured directly but as a dependency of those rules. SAP has pre-configured logic for this in the system.

5. ‘Secondary’ data download can bring down entries over and above the 5000 entries maximum limit. For e.g. imagine that case when the admin has setup a rule to download ‘My Contacts’ which has more than 5000 entries. Here the primary data download will be restricted at 5000. However, if the admin also configured a rule for ‘All Accounts’ – during the download of of each Account, the sync will figure out the related contacts of the account and download them as well. These contact entries will be downloaded even if they are above the previous limit of 5000, hence the user may actually end up with more than 5000 entries.

We’re working on making this concept more ‘intelligent’ and ‘configurable’ over releases.
At the moment, you can set up rules for objects to make sure their data that is needed offline for the users is downloaded.

More advanced capabilities will come over the next few releases.

With 15.11, we are enhancing the Offline Settings maintenance to enable key-users to setup the rules quicker.

Mass user on-boarding is quicker via the ‘Quick Add’ feature – you can select a role, and then using ‘Quick Add’, you can multi-select the rules for all objects in one shot.

/wp-content/uploads/2015/10/2015_10_06_11_55_37_817266.png

Note that apart from business data, data such as code-lists and page layouts etc. are automatically downloaded by the applications. You do not need rules to be configured for them.

UPDATE: With 1605 – you can now control the related data download as well. You can choose to define the system wide behaviour to download ‘All’ related data, ‘Only for the first level’ or download ‘No’ related data at all.

Assigned Tags

      21 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Bejoy Jacob K
      Bejoy Jacob K

      Thanks Ankan!

      Author's profile photo Chandan Bankar
      Chandan Bankar

      Thanks for sharing!!

      Author's profile photo Siming Fu
      Siming Fu

      Thanks for sharing.

      Author's profile photo Former Member
      Former Member

      Hi Ankan,

      What about Discount Lists? are they also automatically downloaded?

      MJ

      Author's profile photo Ankan Banerjee
      Ankan Banerjee
      Blog Post Author

      Hi MJ,

      Discount Lists are not synchronized for offline use at the moment.

      This would be a candidate for future releases.

      The Offline Settings list out the objects that are currently supported offline when you try to create rules for them.

      Regards,

      Ankan

      Author's profile photo Former Member
      Former Member

      For the end user, does he/she has to manually do the 'offline sync' everytime he is in online mode or can that be scheduled (every 6 hours or so)?

      I understand to push the offline created data, manual sync now is required & users are happy with that.

      Author's profile photo Ankan Banerjee
      Ankan Banerjee
      Blog Post Author

      For the moment, its a manual sync - we will be looking at scheduled sync in our future versions.

      Author's profile photo Suman Saurabh
      Suman Saurabh

      Thanks

      Author's profile photo Vinod Kumar
      Vinod Kumar

      Ankan Banerjee : Please can we have a detailed write up from you on the 1605 offline settings (How the Data Download Rules and the exceptions work) ?

      Cheers,

      Vino

      Author's profile photo Ankan Banerjee
      Ankan Banerjee
      Blog Post Author
      Author's profile photo Ajitabh Pradhan
      Ajitabh Pradhan

      Great Blog Ankan ..!!

      Author's profile photo Pragya Pande
      Pragya Pande

      good read...thanks Ankan!

      Author's profile photo Vinod Kumar
      Vinod Kumar

      Excellent Ankan Banerjee, Thanks

      Author's profile photo Stefanie Ehlert
      Stefanie Ehlert

      Thanks for the Information.

      Can you please give Details about that sentence: "Note that apart from business data, data such as code-lists and page layouts etc. are automatically downloaded by the applications. You do not need rules to be configured for them."

      Does that mean, that the page layouts are downloaded during the offline data sync and they are available, when the C4C App is used in offline mode? Please confirm, if I did understand that right.

      Thanks and BR,

      Stefanie

      Author's profile photo Ankan Banerjee
      Ankan Banerjee
      Blog Post Author

      Yes, that is correct.

      Author's profile photo Former Member
      Former Member
      Hello Ankan
      How can I handle this situation in OffLine synchronization of Product
      We handle several lines of business and not all sales rep
      should download all the active products to their tablets, 
      what I need to know is if there is a way to limit the products that 
      a sales rep must take on the tablet in offline mode
      I have created several Querys, but as I can assign it to a sales rep
      so that when you synchronize your Tablet download only your assigned 
      products
      
      otherwise the Tablet will be very slow by the amount of products, 
      approximately are more than 5000 products
      
      Best Regards 
      Ricardo
      
      

       

      Author's profile photo Jan Adelmann
      Jan Adelmann

      Thanks for the information!

      How is the behavior in the mobile app with attachments. When using the app offline, the original size is downloaded or the attachments are compressed?

      Author's profile photo Ankan Banerjee
      Ankan Banerjee
      Blog Post Author

      The attachments are downloaded as is.

      Author's profile photo Igor Lauxen
      Igor Lauxen

      hello Ankan Banerjee

      Do you know if it's feasible to extend the syncronization button from the standard c4c app so, when the users syncs the C4C data, also be able to trigger the sincronization from another app which will be called by C4C standard app by deeplinks? Thanks in advance!

      Ígor

      Author's profile photo Ankan Banerjee
      Ankan Banerjee
      Blog Post Author

      It is not possible as of today.

      Author's profile photo Samarjeet Singh
      Samarjeet Singh

      Hello Ankan Banerjee

       

      I have total products in online as 13K. I created custom query for product keeping Division as criteria and mapped them in Offline settings.

      In online for Division X the total products are 4396, but in Offline the total products i can view is 936. There is default query of 'All' in offline active.

      My question is how to achieve the requirement by capturing the whole data in offline for custom query.