SAP Knowledge Base Article - Public

2723399 - Workflow Rule With Condition Created On, Created By, Changed By Or Changed On Is Not Triggered

Symptom

You have created a Workflow Rule with Timing On Create Only. However, the rule is not executed when you add the condition with the field Created On, Created By, Changed By or Changed On.

Environment

SAP Cloud for Customer

Reproducing the Issue

  1. Go to the Administrator work center.
  2. Go to the Workflow Rules view.
  3. Create a Workflow rule with the below details:
  • Business Object: Account, Contact, or any sales document.
  • Timing: On Create Only OR On Every Save (when the document gets created).
  • Conditions: use one of the following - Created On /  Changed On equal to DD.MM.YYYY (DD.MM.YYYY represents a date) OR Created By / Changed By Equal to ABC (ABC represents the Employee ID).
  • Rule Type: any type.
  • Select Action: DEF (DEF represents the Action ID).

 wfrexample.png

Please note that the following steps are only an example to reproduce the described outcome:

  1. Go to the Customers work center.
  2. Go to the Accounts view.
  3. Click the New button.
  4. Fill in all mandatory fields.
  5. Click the Save button.

Result: The Workflow Rule is not triggered.

Cause

The fields Created By, Created On, Changed By, Changed On are part of System Administrative Data and are only written after the Object Creation or Update, in this case, the Account.

When the system is checking whether a workflow rule should be triggered for this object, the data inside fields Created On, Created By, Changed By or Changed On still does not exist. Hence, the workflow rule will not be triggered.

Resolution

This is the expected system behavior.

If you need this functionality urgently you may contact your implementation manager to help with such request or approach directly the SAP Cloud Service Center.

 You can find more details about the services offered by Cloud Service Center . You can contact Cloud Service Center as follows:

  1. If you are a partner: please use cloudsolutionpartner@sap.com or the Partnerfinder
  2. If you are a customer: please use the little blue box “Contact Us” shown on the very right hand side of SAP Application Development site , choose “Contact Us”, choose “Services”, choose “SAP Custom Development” and complete the page.

Note: The services of the SAP Cloud Service Center will be charged as packaged services based on fixed prices.

An alternative option may be to check the SAP Customer Influencer Site to submit an idea.

Keywords

workflow rule, created on, changed by, created by, changed on, lead, opportunity, sales quote, sales order, account, contact, , KBA , workflow rule , assign me as owner , created on , condition , created by , changed by , changed on , LOD-CRM-ACC , Account , How To

Product

SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions