SAP Knowledge Base Article - Public

3339338 - Validation Rule Not Working When Creating A Visit From Account TI Screen


You have created a validation rule for "Perfect Store Visit" flag button, however the validation rule is not being triggered.


SAP Cloud for Customer

Reproducing the Issue

1. Login into the system with any user.
2. Go to Accounts work center view.
3. Open any account.
4. Click "+" button.
5. Select Visit.
6. When the Visit QC screen is opened, the "Perfect Store Visit" flag is set to NO.
7. Try creating a Visit from Home or Calendar for example.
8. The rule is triggered just fine, and the "Perfect Store Visit" flag is set to YES.


Currently, as per logic, this is a known limitation where the rule won't be getting triggered for fields Visit QC in the Account TI.


There is a difference in the json call when the Visit QC is opened from Visit OWL or HomePage then when we open the Visit QC from Account TI.
When we open the Visit QC from Visit OWL or from HomaPage then the event that is fired is:

{controller_id: "16$/BYD_COD/SalesOnDemand/Visit/VisitExecution/COD_Visit_QC.QC.uicomponent",…}
controller_id: "16$/BYD_COD/SalesOnDemand/Visit/VisitExecution/COD_Visit_QC.QC.uicomponent"
event: "OnCreate"

Whereas when we click Visit QC from Account TI, the event is:

{controller_id: "15$/BYD_COD/SalesOnDemand/Visit/VisitExecution/COD_Visit_QC.QC.uicomponent",…}

From flexibility side, for the KUT rule default value to trigger in QC we look for the event "OnCreate" and not "OnCreateWithReferenceStore".


Rule, Validation, QC, Visit, Perfect Store, Limitation, Account , KBA , AP-RC-UIF-FLX , Page Layout & Key User Configuration , How To


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