cancel
Showing results for 
Search instead for 
Did you mean: 

Terminate a query in EXIT_SAPLRRS0_001

Former Member
0 Kudos

Hi All,

I am looking for inputs on below requirement :

We have a BEX query with few fields being passed as variables. The query hits the EXIT_SAPLRRS0_001 exit and based on the value of i_step (0,1,2,3) the query moves proceeds.

We would like to add a custom check inside the exit if i_step=3.

The logic needs to check for a particular condition and if that condition is met, it should stop further processing of query and terminate it. It should also display a custom error message on the portal.

Any inputs on how this can be achieved would be really helpful.

Thanks,

Tintu

Accepted Solutions (0)

Answers (1)

Answers (1)

MartinMaruskin
Active Contributor
0 Kudos

Hi Tintu,

basically what you need to do is create user exit for BEx query. Do it via Tcode SMOD -> enhancement RSR00001. Within FM EXIT_SAPLRRS0_001 there is include ZXRSRU01 that you need to create. Wihin the include you nee to put logic in place which will check for i_step = 3 and maybe also for your query technical name. Plus some other condition that you mentioned. Once all are met abort query (e.g. by RAISE no_processing.) and raise message via FM RRMS_MESSAGE_HANDLING.

cheers

m./