Skip to Content

The SAP Hybris Cloud for Customer extended edition apps allow you to successfully run your business anywhere and anytime always providing you the relevant insights – even if you are offline!

With every release, we continue expanding the offline capabilities of our product. User feedback has always been our most important source of input to take the product forward. We heard our key-users asking us for finer control on the offline data that is downloaded to an end-user’s device.

We recently introduced improved flexibility to control what data gets synced offline to your end-users devices.

For our key-users, the new features provides the advanced control they have been asking for – they can now ensure that the correct dataset is always available for the end users, even without connectivity.

The feature is available under Administrator > General Settings > Offline Settings.

The first section (Data Download Rules) allows you to control which primary datasets are available to users offline.

The concepts around this is detailed in my previous blog Setting up rules for offline data distribution

Hint: Use the Group By Business Role feature in the table to easily browse through defined roles.

The new section (Related Data Download) helps the key-user define what data (in relation to the primary data set defined under Data Download Rules) are downloaded.

The default setting determines the default behavior for related data download.

A quick overview of the terms used:

  • Primary data: Data downloaded since there is a rule for it under Data Download Rules
  • Secondary data/related data: Data downloaded since it is linked/related to a primary data

/wp-content/uploads/2016/08/2016_07_25_17_47_53_1001826.png

The options are as follows:

  1. None – No related data is downloaded for any object that is selected for offline download
  2. Only first level – Related data is downloaded for the objects that are selected for offline download only via the Data Download Rules. So, you get related data only for your primary data set
  3. All – Related data is downloaded for the all entries that are selected for offline download. The difference with the previous setting is that, related data is downloaded even for data is not part of your primary data set (that is, related data is downloaded for secondary data as well).
    For the technically inclined, this is the concept of recursion!
    Note, that this setting leads to the most amount of data being downloaded offline.
    The dataset is more complete using this setting, but as you can expect (the sync timings are corresponding longer).

Example:

Let’s take a business scenario:
Imagine that for a business role (Marketing Rep), the Data Download Rules has only one rule defined – My Opportunities.

/wp-content/uploads/2016/08/2016_07_25_17_45_24_1001856.png

Now, under Related Data Download, the behavior of the settings could be one of the following:


  • None – The linked account of the opportunity is not downloaded
  • Only first level – Since opportunities are downloaded as a primary data set (based on the rule configured above), its related data (secondary data), would be downloaded. So the account of the opportunity would be downloaded automatically even if there is no rule for accounts defined under Data Download Rules
  • All – Related data (secondary data set) for even the account of the opportunity would be downloaded.
    So the account’s owner (for example) – will be automatically downloaded as well


A couple of points to note:

  • We make some exceptions to the above settings – i.e. we deem that in certain cases related data should always be downloaded even if the key-user chooses a setting of None, e.g. the snapshot of the related account of an opportunity is ALWAYS downloaded.
    Technically, the snapshot (address snapshot) is different from the account itself (it’s a smaller ‘snapshot’ of the account, hence the name).
  • We  download the related relationships of an account ONLY when the account is being downloaded as a primary.


Advanced features:

For ever finer control (yes, you have all the flexibility you need!), once you made the default setting, you can configure specific exceptions to it (on a per object basis).


Example:

Lets take the case that you setup the Default option as None in the previous step.


/wp-content/uploads/2016/08/2016_07_25_18_12_36_1001864.png


  • You can add an exception and say, that for Opportunities you always want its related Account information to be downloaded (the Sales Rep obviously wants to know details about the Account).
    For this, add a new exception using the Source: Opportunities, Target: Account/Contact/Individual Customer/Employee, Setting: All
    Here the option All ensures that even if the Opportunity itself was downloaded as a secondary, we will still  see the details of its related account.

/wp-content/uploads/2016/08/2016_07_25_18_46_58_1001930.png

  • You can add another exception, say, for Opportunities which are downloaded as only as primaries, you want to download the products it contains. However if the Opportunities themselves are downloaded as a secondary (maybe as they were linked to a Sales Order), you don’t want this.
    For this, add an exception using Source: Opportunities, Target: Products, Setting: Only first level

/wp-content/uploads/2016/08/2016_07_25_18_16_45_1001865.png


You will notice that we predefine some exceptions based on existing business logic used in the application.

These exceptions cannot be altered or removed.

/wp-content/uploads/2016/08/2016_07_25_18_19_22_1001883.png

There will be situations where you did not end up downloading all the related data of an object to the device.

We handle such situations gracefully – the screenshot below shows what happens with the settings above.

Here the account of the opportunity was downloaded due to the above settings.

However, since the related data of the account itself is not downloaded, navigating to the account team section of the account itself shows some entries as ‘Not downloaded’.

IMG_0033.png

Note:

Of course, the entire feature is optional for our customers. Key-users can keep the settings simple by just using a default selection of ‘Only first level’. This is the optimal setting for most business scenarios. It keeps both data on the end-users device to a minimum and also requires less settings to be maintained.

Stay tuned for more awesome offline and mobile features we delivered with our 1608 release.

Smartphone optimizations and Offline extensibility were other core areas we invested in based on your feedback.

To report this post you need to login first.

7 Comments

You must be Logged on to comment or reply to a post.

  1. Ulla Lambauer

    Hello Ankan! Thanks for this great blog!

    One question: what happens if the admin changes the offline settings after users have already synchronized some data?

    One easy example:

    1) Admin configures offline setting for accounts to sync “All accounts”

    2) User A triggers a sync on his tablet –> all accounts are stored offline

    3) Admin changes offline settings to “My accounts”

    4) User A triggers again a sync

    What happens with the accounts that have already been stored on the device but that are not included anymore into the offline setting (the accounts that do not belong to user A)?

    Are those accounts deleted from offline data with the sync in step 4 or will they still be available on the device but wouldn´t be updated anymore?

    Thanks and BR,

    Ulla

    (0) 
  2. Maria Veronica Sanchez Gonzalez

    Hi Ankan thanks for this great post.

    What happens if I have more than 5000 objets for products or customers?

    Can I use them as secondary data of, for example, sales orders / sales quote?

    Do you think this could work?

    Quotes.PNGsales.PNG

    Thanks in advance

    Regards

    (0) 

Leave a Reply