You should create a rule, which is an ABAP code which will read this information. Just explain the algorithm which I mentioned above.
As for revenues control: why don't you apply a tolerance profile, which doesn't block the transaction? It doesn't make too much sense to define a blocking profile for revenues.