cancel
Showing results for 
Search instead for 
Did you mean: 

GRC 10.1 EAM - How to add Reason Code and other fields to Approver Email notification?

josiane_costa
Participant

We have already created custom Notification ZGRAC_MSMP_LOGRPT_NEWWORKITM and linked to MSMP SAP_GRAC_FIREFIGHT_LOG_REPORT. However I would like to add Reason Code and some other fields to it. I would like something like below - similar to what 0AC_SPM_NOTIFICATION document has:

Dear Approver,

There are new Firefighter Log Item(s) in your work inbox. Please perform the necessary actions.

Details:
Date & Time: %LOG_TIME%
Firefighter: xx

Model ID: xx
System: xx
Reason code: %REASON_CODE%
%REASON_CODE_DESCN%
Activity: %ACTIVITY%

Click
here to review the request.

Kind regards,
GRC Automated Notification

** Do not reply to this e-mail **

However as you can see, some of the fields above (with %) did not work for the SAP_GRAC_FIREFIGHT_LOG_REPORT. I suspect I will need to create Notification Variables for this process. Would you know how to do it?

Accepted Solutions (1)

Accepted Solutions (1)

madhusap
Active Contributor

Hi Josiane,

To achieve your requirement, you may need to create new notification variables for EAM log review workflow:

create a new function module copying the standard function module 'GRAC_NOTIF_VAR_RULE_LOGRPT'

Create a new notification variable "Reason Code Text" and "Activity" in the new function module and write logic to retrieve reason code and activity data.

Get Firefighter Log ID from table "gracfflog" using external key details from GRFNMWRTINST table.

Based on the Firefighter Log Id, determine all EAM Log Review request related data using the following method:

CALL METHOD CL_GRAC_MODEL_SPM_FIREFIGHT->retrieve_fflog (To get reason code and additional details related to FF logs)

Get Log details using following method:

CALL METHOD cl_grac_log_report=>get_session_details (To get different types of logs in the log review request)

Please work with your ABAPer for building custom function module and logic.

Once the above steps are completed, you may need to replace the notification variables rule for log review workflow and also should add the new notification variable to log review workflow.

Regards,

Madhu

josiane_costa
Participant
0 Kudos

Madhu, thank you so much for your answer! 😄

Answers (0)