cancel
Showing results for 
Search instead for 
Did you mean: 

Work permit alert expiration rule issue

MrAr_
Explorer
0 Kudos
185

Hello SAP Experts,

I was trying to create a business rule to trigger an alert notification and send an email to inform HR that an employee’s Work Permit in Singapore will expire in 30 days and 60 days.

For this purpose, I created the following rule:

MrAr__0-1739818080733.png

However, after reviewing the workflow and the alert message, HR only receives the alert when the Work Permit expiration date is two months before. The second condition for 30 days is being skipped.
In Manage Alerts & Notifications, the 30-day alert remains pending.

I tried a different approach, and my concern is whether this approach is correct, using a date plus condition in the "IF" clause:



MrAr__1-1739818338589.png

With this second approach, HR receives both alerts for 30 days and 60 days, and the alert creation date and alert effective date remain the same (as of today, during testing).

Could you please provide your expertise and guidance?

Thank you!

View Entire Topic
Elsa123
Product and Topic Expert
Product and Topic Expert
Hi, Would you please configure two rules for the 30 days and 60 days respectively and check if it works? Best regards, Elsa
MrAr_
Explorer
0 Kudos

The alert pending to do´s seems to repeat employees, for the first employee the alert should only be send for 60 days, as it was correctly send in the 2 line.For the third employee, the alert is correct, however the system also send an Pending alert for 30 days, alert should only be send for 60 days as it was.

MrAr__7-1739867372557.png

It seems that the rule is trigger in both dates, i.e in this this two  employees, the Work permit  expiration date is april 19, and the the rule trigger was for 30 days alert.

MrAr__4-1739867081282.png



rule for 30 days

MrAr__1-1739866074978.png

Rule for 60 days

MrAr__2-1739866131451.png

Any change I should do in the business rule?

Thank you for your help!

 

 



MrAr_
Explorer
0 Kudos

Attached the 2  Business rule and the Manage Alerts And Notifications Pending alerts and Pending to do´s. Thank you

MrAr_
Explorer
0 Kudos

Hi, Elsa, Thank you very much for your comment. I tried to create a two separate rules, one for 30 days and another for 60 days. The alerts were trigger, just to be sure if the dates are correct alert effective date seems not correct right ? The purpose is to receive an alert as of today, 60 days before (april 19th) and 30 days before (march 20).