Skip to Content
Author's profile photo Parag Parikh

MSS Task Monitoring Reminder: Meeting invite does not update outlook calendar

MSS provides an option to send a meeting invite via Email for Reminder of dates. For example, end of leave of absence.

Image 1.jpg

Method HANDLE_ACTION of SAP standard POWL feeder class CL_HRMSS_ROD_TASKS_POWL calls method CREATE_APPOINTMENT of class CL_HRMSS_CENTRAL_SERVICES.

Problem with the coding in method CREATE_APPOINTMENT is that it sets meeting organizer and meeting participant as same person. For example, if user Parag Parikh access MSS and tries to send an E-mail to update Calendar , the options to Accept, Decline etc. are disabled for him. At the same time, this invite does not update calendar of the Manager.

Image 2.jpg

Some of the options would be,

1) Make meeting organizer and meeting participants as different person. ( Example, setting up time to have discussion between manager and employee. So manager would be meeting organizer and empoyee would be participant ).

2) Changing meeting organizer as some generic user ID when sending Email so that manager can accept invite to update his calendar. i.e. the meeting invite works as a reminder in Manager’s calendar.

3) Implement an over-write exit for method CREATE_APPOINTMENT/implicit enhancement at the begining of the method and implement E-mail sending method per business requirement. For example, replace SAP code to send meeting invite with the code to send a .ics file as attachment with E-mail. SAP code in method CREATE_ICS_FILE of class CL_HRMSS_CENTRAL_SERVICES can be used as reference.

For option 1), the task is relatively simpler. BAdI HRMSS_B_CALENDAR_APPOINTMENT ( with filter ‘ROD’ ) can be used where SAP passes instance of appointment in changing parameter CV_APPOINTMENT ( instance of class CL_APPOINTMENT ). Method ADD_PARTICIPANT of class CL_APPOINTMENT can be used to add participants. Method DELELTE_PARTICIPANT can be used to delete SAP populated participant.

option 2) becomes little tricky because of the position where SAP calls BAdI HRMSS_B_CALENDAR_APPOINTMENT.  This BAdI is called after the appointment is saved in the database. As a result, meeting organizer can not be changed in the BAdI.  Method SET_ORGANIZER will return an exception if called inside the BAdI implementation.

Image 4.jpg

A possible approach would be to copy relevant attributes of the appointment to a new appointment with the only change being meeting organizer. This code to create a new appointment can be written inside BAdI implementation.

Old meeting can be deleted from databse using FM APPT_PARTLIST_DELETE_INTERNAL. Pass CHANGED_MODE = ‘1’, CV_APPOINTMENT->INSTANCE_ID to APPT_ID.

Instance of new appointment can be passed to changing parameter CV_APPOINTMENT so that SAP will send meeting invite via E-mail for this new appointment. As shown in example below, user ID WF-BATCH was used for demonstration purpose. Options to accept or decline meeting were enabled for manager Parag Parikh as now meeting organizer and meeting participant are different.

Image 3.jpg

Assigned Tags

      6 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Nice work Parag

      I have a question for u, can we set up reminders for meetings & participants acknowledgements??

      Keep posting more such docs..

      Cheers 😉
      Pradyp

      Author's profile photo Parag Parikh
      Parag Parikh
      Blog Post Author

      Thanks Pradyp.

      You can send .ics file with an Email from ABAP.

      SCN document example, Sending Outlook Appointments and Meeting Requests Directly from ABAP Applications

      covers this in detail.

      Author's profile photo Former Member
      Former Member

      Hi Parag, Good Job.

      Glad that people are sharing such Quality content in SCN, must appreciate.

      May I know the version for which Time Approval & Reminder service is available.

      Cheers

      Srikanth

      Author's profile photo Parag Parikh
      Parag Parikh
      Blog Post Author

      Thanks Srikanth. Let me know which version are you referring to ? ECC release?

      Author's profile photo Former Member
      Former Member

      Hi Parag, I am on ECC 6 Ehp 6, with Portal 7.3.

      My Question: Is it available from Ehp5 onwards or any other versions ?

      Author's profile photo Parag Parikh
      Parag Parikh
      Blog Post Author

      I am on SAP release 7.31.

      Below link provides more information on the MSS Time Approval and Task Reminder. This is POWL based iView available from ECC 6.0 , MSS Add on 1.0

      Time Approval and Task Reminder - Business Package for MSS Add-On 1.0 - SAP Library

      Time Approval and Task Reminder - Manager Self-Service in SAP NetWeaver Business Client - SAP Library