I have created a business rules in cloud as below -

When I tested via api.sap.com, it works fine. However, is there a way to avoid these hard coded values so that rule maintenance can be reduced? In on-premise, we have an option to assign a SET values (created in GS01 tcode) and assign the name and call the FM to get the values dynamically. But, in cloud, I'm unable to find a solution. Can any one please suggest?
Thanks,
Sai Kumar
Request clarification before answering.
No that is not possible. You can have reusable rule. So you can model a decision table rule for your lookup, and then call in another decision table or text rule like COUNT (SELECT <sometable> where CITY ='New York') > 0 which evaluates to if value exists in the decision table. You cannot call any external service in business rules, besides in value help. Hope that helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use Value Help to dynamically set the value during design time while modelling or modifying the rule. Once the rule is modified that value is set.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Archana,
I have tried adding dynamic value help and I get values as a F4 help for the field in fixed value in auto suggestion box. But, this does not solve my initial query.
I'm looking from something like below (screen shot) - similar to what we code in ABAP (If wa_field IN lr_range). Is it possible something like this to avoid manually addition of values in the rule?

Thanks,
Sai
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.