cancel
Showing results for 
Search instead for 
Did you mean: 

Leave Request dates in task description

liam_wilkinson
Participant
0 Kudos

Hi All,

I have been asked to insert the date that the requester has requested off for leave to be inserted in the task description for TS12300097 (this is the one that goes to his manager).

This is within workflow WS12300111 to be activated in the portal. I have searched the wf container without any luck, surely it has to be in there,

Does anybody know where I can find it before it actually gets populated in to infotype 2001 so I can add it to a container?

Thanks in advance

Liam

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Liam,

Did you actually manage to resolve this issue of gettting the dates and leave type in the task description for the manager to view and approve/reject?

Thanks,

Sandeep

former_member190818
Active Contributor
0 Kudos

Hi Liam,

If there is no date element in task container, then u can get in your BO and use tat in the Task Description.

Regards,

JMB

liam_wilkinson
Participant
0 Kudos

Thanks but how do i do that?

its triggered from the portal so I can't drill into it the same as i would in R/3 system.

How can i find the BO that it uses?

liam

Former Member
0 Kudos

hi Liam, this worklfow is not using bo, it is using ABAP class CL_PT_REQ_WF_ATTRIBS. its attribute SUBM_DATE should have contained the information you want, so what you should do is to create new element with type DATS in the task container, and create binding from workflow to task for passing &REQ.REQ_ID& to task element. But before doing this, please make sure, the element &req& has been initiated before the step.

vijy_mukunthan
Active Contributor
0 Kudos

hi

U can do that. U need to use Business object EMPLOYEET. Fill this bo in binding. To get the leave date and leave type use Request id from these tables.

PTREQ_HEADER,PTREQ_ITEMS,PTREQ_ATTABSDATA.

put views and get the date and leave type.

Use this function module.

HR_GET_SUBTYPE_TEXT to get the leave name. Use this in the mail step.

I have done this way i have succeessed

Regards

vijay