Skip to Content
Technical Articles
Author's profile photo Prasanta Kumar Ghosh

SAP FSM: Design Business Rule for Process Automation

In this blog I shall explain you to design SAP FSM business rule to trigger actions based on events. We can automate different business processes through FSM business Rule such as Absence Request, Master data creation, approval process for expenses etc.

Use Case:

In FSM, employee can submit their time off or absence through Work Time function. System is not triggering any automated notification to supervisor. With help of give example, we will write a simple one step business rule to trigger email notification.

Step 1: Configure Different Absence Type through Setting & Configuration.

  • Click on Time slot types in Planning and Dispatching menu

  • Add Absence Type “Paid Leave” and Click on Save button.

New%20Absence%20Type%20Added%20into%20FSM

New Absence Type Added into FSM

Step 2: Design Business Rule to Trigger mail notification.

Create%20New%20Business%20Rule

Create New Business Rule

Define%20Trigger%20Logic

Define Trigger Logic

Define%20Action

Define Action

Step 3: Create Absence Request through FSM Mobile/Windows App and provide Leave Type, Date & Time. And then press on Save button from your mobile or windows application.

FSM%20Mobile%20App

FSM Mobile App

Step 4: Business Rule Triggered Email Notification.

With help of FSM business Rule, we can also send notification to supervisor’s mobile phone. Hope this blog helps you to understand process to design business rules based on your requirements.

 

Thanks,

Prasanta Ghosh

Assigned Tags

      4 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Karthic Srinivasan
      Karthic Srinivasan

      Very good blog about Business Rule. A different use case. Thanks for explaining in detail.

      Author's profile photo Ruben Dario Salazar Aya
      Ruben Dario Salazar Aya

      Prasanta Kumar Ghosh thankss is  awesome

       

      i have a some inquierires is posssible How can I generate a business rule that captures the latitude and longitude to identify the route where the technician passed?

       

      is possible ?

      Author's profile photo Prasanta Kumar Ghosh
      Prasanta Kumar Ghosh
      Blog Post Author

      You can fetch latitude and longitude from Address object.

      Query API Sample:

      select a from Address a limit 1

      Hope this help you to design your business rule.

      Author's profile photo THConsulting KMBasis
      THConsulting KMBasis

      SAP FSM do not store the route through which the technician has travelled.

      But on some objects like ServiceAssignmentStatus lat long are captured. And you can get those by querying

      Select a.location.latitude,a.location.longitude from ServiceAssignmentStatus a join Activity b on a.object=b.id where a.name='Accept' and b.code='1234'

       

      If you want to store these in some UDFs or send a mail with these values, you need to define a BR on create of SAS object and define relevant variables and condition and Actions.