cancel
Showing results for 
Search instead for 
Did you mean: 

How to find places where BRF rule called?

Former Member
0 Kudos

Hi,

I have just started to work with BRF+. I found application with function at BRF+ workbench, How to find where this function called at backend system?

Thanks in advance and regards,

Pavlo

Accepted Solutions (1)

Accepted Solutions (1)

kakshat
Advisor
Advisor
0 Kudos

Hi Pavlo,

Unfortunately, there isn't a direct way that I know of; would have been great if there were though!

One thing that you can try is searching for the BRF+ function's name in the ABAP source code. You can use the standard report RS_ABAP_SOURCE_SCAN to do this. You may want to restrict the scope of the search by providing the package/class/program name or something.

Another option could be to set a breakpoint in the generated class's PROCESS_PURE method. In case you don't know, the generated class is the ABAP class that is generated for every BRF+ function and contains the logic of your BRF+ rules translated into ABAP. You can find this class on the "Code Generation" tab of your function.

Yet another option could be to set a breakpoint in method IF_FDT_FACTORY~GET_INSTANCE of class CL_FDT_FACTORY. Normally, this method is called at places that call BRF+ functions. If the control stops here, you can check the call stack and figure out the exact point where the BRF+ function is being called.

Having said that, you must know that it is also possible that the function you are looking at is not called from ABAP directly. It may have a wrapper function that calls it, in which case, the where-used on your function should show function calls (the BRF+ expression type) created for it.

Regards,

Akshat

carsten_ziegler
Active Contributor
0 Kudos

Also check CL_FDT_FUNCTION_PROCESS=>PROCESS. This is used for execution of a function.

Former Member
0 Kudos

Can you give an advice? How to find generated class?

carsten_ziegler
Active Contributor
0 Kudos

See function UI.
You may have to change configuration/personalization to see technical details..

Former Member
0 Kudos

the same name as technical name of the function in BRF?

kakshat
Advisor
Advisor
0 Kudos

I mentioned it in my original reply. You can find the generated class on the "Code Generation" tab of your function. See the screenshot below.

Answers (0)