cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BRF string lookup possible?

ragavmudi
Explorer
0 Likes
994

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?

Accepted Solutions (0)

Answers (1)

Answers (1)

Carlos_Idiaquez
Participant
0 Likes

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.