cancel
Showing results for 
Search instead for 
Did you mean: 

BRFPlus Function for checking if there is any remainder after the division

Former Member
0 Kudos

Hi All,

I have checked of there is any BRFPlus function for checking if there is any remainder after the division.

If there is no such function, how to achieve it in BRFPlus?

Thanks in advance

Accepted Solutions (0)

Answers (2)

Answers (2)

christianlechne
Active Contributor
0 Kudos

Hi,

you have that functionality build into BRFplus. Within the formula expression you have several formula functions. The one you are looking for is located in the topic "Mathematical Functions" that calcualtes you the integer remainder of a division of two numbers:

Documentation

Cheers

Christian

Former Member
0 Kudos

Hi Christian and Anindya,

Thanks a lot for the comments.

My requirement is that I will get a base count say 4000 and need to check the count at every X to this case count that is if X = 100 then will have to check and notify the first one at 4100 ,next at 4200 and so on.

So the logic that came to my mind is the concept of remainder. Using MOD I can get the reminder count but how to check or implement so that it will come to know that there 2100 is exactly divisible by X that is 100. Here I can say 4100 MOD 100 that is 0. So can I say if the remainder is 0 then it is the next count.

For similar example above ,if base count I have is 4000,next ime when it increments by 1 it will become 4001 and so on. So I can put condition/formula as IF base cpunt(4001) MOD X(100) > 0 then its not 1 in X while if its equal to 0 then it is.

Please correct me if this is ok?

Thanks in advance

anindyaSAP
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

You can create a ABAP function module to implement any logic. Then you can call the FM from BRF+ via Procedure call expression.

You may also create your custom expression and action types. Check the below link:

http://scn.sap.com/docs/DOC-48050

You may also implement specific logic for a particular flow (for example, when user saves or activates an object) by implementing application exit:

http://scn.sap.com/docs/DOC-4564

BR,

Anindya