SAP Knowledge Base Article - Preview

3366882 - How to revoke attribute value of disableRestrictions,disableRestrictionGroupInheritance which being changed in the introduced property


To fix Jira ticket CXEC-14280 Creating cronjobs via ImpEx injects unwanted session context settings ( disables restrictions ), there's new property being introduced in Patch 1905.46Patch 2005.30Patch-2011.25, Patch 2105.15 and Patch 2205.4 as below

When importing cron jobs through ImpEx, the system adds additional attributes needed for import purposes to SessionContext. All new cron jobs that are created receive all SessionContext attributes as sessionContextValues. To prevent sessionContextValues from holding redundant attributes that are required only during import, use the following property with a list of attributes that you don't want to save in new cron jobs' sessionContextAttributes:,disableRestrictionGroupInheritance,,import.mode,disable.attribute.check,disable.interceptor.beans,disable.interceptor.types,disable.UniqueAttributesValidator.for.types,currentCronJob,currentJob,core.types.creation.initial,save.from.service.layer,,impex.creation

In this change, some attributes won't be saved in new cron jobs' sessionContextAttributes(though impex). 

Prior to the introduction of property, CronJob created by impex in sessionContextValues holds following attributes : 

  • disableRestrictions : true
  • disableRestrictionGroupInheritance : true

After introduced this property, the attribute is not set to cronjob(though impex) context and it takes it as false by default, and the restrictions are not disabled for cronjobs. If there's need to keep disableRestrictions and disableRestrictionGroupInheritance as previous setting above, this can handled explicitly in custom cronjob code. 



SAP Commerce Cloud 


SAP Commerce Cloud 1905 ; SAP Commerce Cloud 2005 ; SAP Commerce Cloud 2011 ; SAP Commerce Cloud 2105 ; SAP Commerce Cloud 2205 ; SAP Commerce Cloud 2211

Keywords, disableRestrictions , KBA , CEC-SCC-PLA-PL , Platform , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.