Skip to Content

Validations in Business Rules in SAP Cloud Platform

Hi All,

I have created a FIORI app to display the business rules from SCP with the help of below blog

Has anyone added validations on particular cell(of the business rules table on screen) while using Business Rules API?


Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Feb 22, 2018 at 08:12 AM

    Hi Sruti,

    What kind of validations do you want achieve at a cell level? Can you provide some more information to understand your requirement?



    Add comment
    10|10000 characters needed characters exceeded

  • Feb 16, 2018 at 05:58 AM

    Yes Shruti, Validations are there at two levels in business rules editor. Once when you are modelling the rules and next when you are deploying the rules. They are design time and runtime validations respectively. Design time validation you can trigger on clicking the Validate button on the editor of each rule artefacts and runtime validations are triggered when you Deploy the rule service. The validation errors are shown in the notification bars on top right corner of the editor

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Shruti,

      You can write small utility methods using business rules repository APIs. Now we have REST repository APIs , you can use them over ODATA APIs. There are no handle to read data from UI elements. Rules already provides validation of the its content but if you need additional data validation then you need to write your utilities.