ITSM & ChaRM – Reminder / Escalation emails using Date Management (Dates and Durations) Part 3

This is the continuation to the Part 1 and Part 2 blogs.

ITSM & ChaRM – Reminder / Escalation emails using Date Management (Dates and Durations) Part 1

ITSM & ChaRM – Reminder / Escalation emails using Date Management (Dates and Durations) Part 2

In this part, the Custom Duration field is made available in the Web UI configuration for the relevant document type.

The sample requirement discussed in Blog 1 and 2 is again used for Part 3.This is the sample requirement in context of Part 1/2 of the Blog –

When an Incident has been forwarded, the requirement is to send a Reminder/escalation email after a specific wait time if the Status is still unchanged.


Below are the Steps:


SPRO Configuration to enable the linking of the custom duration to the BTDateSET

/wp-content/uploads/2015/12/blog_3_1_854085.png

/wp-content/uploads/2015/12/blog_3_2_854086.png

Custom Enhancement has to be created for the Standard component (In my Case it is Incident) AIC_INCIDENT_H. This has to be done before proceeding with the required settings for the Custom Context nodes.

/wp-content/uploads/2015/12/blog_3_3_854093.png

**Refer the Blog by Harshit Kumar for completing the above step**

How To Enhance a Web UI Component in SAP CRM – CRM – SCN Wiki

/wp-content/uploads/2015/12/blog_3_4_854095.png

/wp-content/uploads/2015/12/blog_3_5_854096.png

Click Continue till reaching ‘Create Links to Custom Controller’ and then

/wp-content/uploads/2015/12/blog_3_6_854097.png

/wp-content/uploads/2015/12/blog_3_7_854098.png

The BOL relation as shown in the above screenshot is available only if it has been maintained in the SPRO as shown earlier in this document.

/wp-content/uploads/2015/12/blog_3_8_854108.png

The Superclass in the Context node’s Implementation class is changed to CL_CRM_UIU_BT_DATE_CN to handle dates.

/wp-content/uploads/2015/12/blog_3_9_854104.png

/wp-content/uploads/2015/12/blog_3_10_854109.png

Delete the Check for the errors (Remove the extra Base_Entity_Name attribute from the class) and activate.

/wp-content/uploads/2015/12/blog_3_11_854110.png

Log off and Logon to see the Attribute ‘Date’ available under the new custom node.

/wp-content/uploads/2015/12/blog_3_12_854111.png

**The Blog from Chand Shaik is used as the base reference for the next few steps**

Adding Date profile’s Date type Fields as Context Attribute to the UI component

The below steps were done different from that of the blog to match to the DURATION specific requirement.

In the ‘ON_NEW_FOCUS’ method the replacement code was updated as below to refer the Z_FWDDURA duration created in SPRO date profile.

/wp-content/uploads/2015/12/blog_3_13_854112.png

/wp-content/uploads/2015/12/blog_3_14_854113.png

TIP : ***For Date, it is T and for duration, it is D for lv_category. The LV_date_type is the Date type or the Duration id defined in the Date Profile***

The GETTER and SETTER methods were activated for all the attributes below Date attribute (This may not be required- Did this as trial and error for getting troubleshooting ‘Not Bound’ text in the value of the field in the Web UI).

/wp-content/uploads/2015/12/blog_3_15_854114.png

/wp-content/uploads/2015/12/blog_3_16_854115.png

The Web UI configuration now will have the Custom node ZFWDDURA.

/wp-content/uploads/2015/12/blog_3_17_854116.png

/wp-content/uploads/2015/12/blog_3_18_854117.png

/wp-content/uploads/2015/12/blog_3_19_854118.png

<—————End of the blog—————>

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply