on ‎2023 Sep 11 12:08 PM
Hello
We want to build a validation rule based on string lookup.
So we have an exception table where we bild a decision tables which has one column "EXCEPTION" with a value test maintained.
Now we would like to call from a rule in BRF+ where we have a value "BRF test" in our context this decision table and we would like to raise an error whenever the value contains any of the values that we have in the decision table.
So in above scenario we would raise an error message since the substring "test" which is maintained in the decision table is part of the value in the validation rule.
Is this possible to do in BRF+ and if so how?
Request clarification before answering.
Hi Ragavan Mudi,
to perform the rise of the error you need things:
Trigger
BRF+ function
Perform the rise
When you run the process, you need to enhance the process to call your BRF+ function (An ABAP will code a Function CALL for your BRF+ function).
The BRF+ function will execute the ruleset and validate the parameter you send it and will return a result.
The Function Call in ABAP will recieve the result from BRF+ and then IF the conditions are met, you will rise the error with ABAP.
***Something important to remember, BRF+ works like SE37. It is a function. When you try execute a rise of message, that activity belongs to programs. The only thing you can provide from BRF+ it is the triger to call that raise of message.
I hope this solve you requeriment. Please dont forget to point.
Best Regards,
Carlos Idiaquez.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.