cancel
Showing results for 
Search instead for 
Did you mean: 

Detailed examples for "Functions for Text Rule Execute Operations"

0 Kudos

Hi,

I've been looking for some detailed examples for Functions for Text Rule Execute Operations as described in the documentation of the SAP Cloud Platform BusinessRules. All examples I've found do not use these functions.

What I would like to know is:

  • How to use these functions to create a data object
  • Can you use these functions to create an object and attach child objects
  • Where can I find examples using these functions

Thanks,

Danny

Accepted Solutions (1)

Accepted Solutions (1)

Archana
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Danny,

EXECUTE operation have functions like UPDATE, APPEND and Loop Functions only available for Text Rule with result as "No Default Result" in rule settings.

  • UPDATE function is used to dynamically update the data in the your structure and element
  • APPEND is used to add a row in the table.
  • LOOP function as name suggests is to loop over the table data and perform actions like APPEND or UPDATE.

To use the functions, here are the steps:

  1. Create Data Object of type Structure (if you want to use UPDATE function), and Table (if you want to use append function)
  2. For Update function, create Text Rule and then use UPDATE function to update the output data object value of one or more fields.

    Function syntax: UPDATE(<data object attribute to be updated>, <value>)


  3. Similarly you can use APPEND and LOOP function. In example below, StopTimeEvents is a table with structure of type TimeEventTable

0 Kudos

Nice, thanks for the explanation. I will try to add this to our rules.

Answers (0)