cancel
Showing results for 
Search instead for 
Did you mean: 

Rule policies : can we determine when they are evaluated

Former Member
0 Kudos

Hi guys,

I'm building some rules and I wanted to know if there is any way that we can change when they are evaluated.

For example :

If I have a simple rule with a condition on the transaction type = 'ZZZZ', the rule will be triggered as soon as the transaction is created as the condition is met immediately.

Now if i want to only trigger that rule when the transaction is saved, does anyone knows if there is a simple way to achieve this ?

Thanks in advance.

Cheers,

Helder

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thanks a lot guys for the feedback.

I should have mention as well that for this requirement, we are not allowed to any 'custom' development ... not even a single line of ABAP ...

Wich means that actions, order_save badi, or a new attribute in the context (like creation date) won't be possible for me as all of them require some ABAP.

Thanks anyways for the feedback.

Regards,

Helder

nicolas_busson
Active Contributor
0 Kudos

Well... at least the good news is that you don't need a single line of code to add creation_date as condition attribute 🙂

(SPRO >> CRM >> Interaction IC WebClient >> Additional functions >> Intent driven interactions >> Define repository).

Cheers,

Nicolas.

Former Member
0 Kudos

Thanks Nicolas

Answers (2)

Answers (2)

nicolas_busson
Active Contributor
0 Kudos

Hi Helder,

Did you try to add another simple condition like "CREATION_DATE IS NOT INITIAL" for example?

Cheers,

Nicolas.

PS: in any case if you're making use of Intent Driven Interaction it is quite simple to create your own event (SPRO >> CRM >> Interaction IC WebClient >> Additional functions >> Intent driven interactions >> Define event repository), raise it when you need (with one line of code), and let the rule react accordingly.

ocpjcp
Active Participant
0 Kudos

Hello Helder,

Without much knowledge about the scenario that you are having ,the quickest thought which comes to my mind is to use PPF (post processing framework) , where we have action profiles and the rule created by you can be executed from the action profile automatically on the save of the transaction.  The Action definition's  schedule and start conditions can also be put in badi implementation.

Not to forget , the option to provide implementation of ORDER_SAVE badi is also a good way to achieve something on saving a transaction.

otherwise transaction : CRMV_EVENT. Function modules can be registered at various events of a transaction and they can be configured to be executed only after header save or item change.

Hope this info helps.

Regards,

Parveen