cancel
Showing results for 
Search instead for 
Did you mean: 

Notification mail in ess

Former Member
0 Kudos
72


Hi everyone ,

In my leave request for ess portal , nptification to hr manager is working fine in that i want to pass

1) type of leave

2) No of days leave taken

thanks in advance .

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sandeep,

Standard Container REQ.ITEMS_TAB[1].ATTS holds all your data related to leave. It has got type of leave and no of hours also in it. Row 67th in ITEMS_TAB contains your leave type and row 5th row contains your number of hours.

For type of leave use below expression in binding:

&REQ.ITEMS_TAB[1].ATTS[67].VALUE&

For no of hours use below expression in binding:

&REQ.ITEMS_TAB[1].ATTS[5].VALUE&

Regards,

Ibrahim Ansari

Former Member
0 Kudos

Hi Ibrahim ,

I solved the issue  based on your explanation . thankyou very much .

Answers (1)

Answers (1)

I042439
Advisor
Advisor
0 Kudos

Hi Sandeep


Check your Object of class CL_PT_REQ_WF_ATTRIBS (which i know is 'REQ' in your custom WF)

The class CL_PT_REQ_WF_ATTRIBS has attribute ITEMS_TAB of type PTREQ_ITEMS_WF_TAB_FLAT

The structure PTREQ_ITEMS_WF_TAB_FLAT is a deep structure containing structures:

ATTSNAME

ATTSVAL

ATTS

In an existing instance where you have a valid instance of class CL_PT_REQ_WF_ATTRIBS, check all attributes in the technical WF log, especially the above, and see if anyone has the required values.

I am sorry, i do not have a running instance with me to cross check myself.

If you do not have any attribute with this value...use this approach:

1) Creat a 'Z' class and use same approach as class CL_PT_REQ_WF_ATTRIBS

2) Implement IF_WORKFLOW methods....use the knowledge in the link shared for ABAP OO in WF in a separate thread with you

3) create a static method, input is request and the emp number and output is Type of leave and number of days taken (and any other parameters which you need in WF and are not in CL_PT_REQ_WF_ATTRIBS )

4) Create a task and call this method (do the task to method binding) - set this to be background task

6) call this task before the email step in the WF - pass request number and the emp number

7) Recieve the variables in WF from binding - task to WF binding (rec number of days , etc)

😎 use those WF vars in the email - using the "insert expression" button below the empty box where you supply the email text

regards,

modak