Second approval level for leave request needed
Is there a best practise solution to modify the standard leave request WF12300111, so that a second level of approval is possible?
It is necessary that first the team leader approves the request.
After him the department head has to approve the request as well.
The department head (line manager) can be determinated through the organizational management (OM) in the way it is done in the standard WF12300111.
But how to determinate the team leader who isn't labled in the OM unitil now?
Is it necessary to create a new link in om, which links the team lead to his team members and vice versa?
Or do you suggest a better way to solve teh problem?
as in all own implementations you should copy the sap workflow to an own one, like Siddharth proposed. I didn't try this, i never needed second level approval so take what i say with a grain of salt. Copy the task that deals with the approval (the one showed in the UWL of the first manager) for the next approval (second manager). It should be then inserted in the workflow after the first approval. Between the original approval task and the second one you should insert a step where you call your own abap class to set the new processor of the workflow - copy the one used by SAP in the first approver task and remove what you don't need, modify the stuff that you could use.
You might be able to get the approval in the approval application using the BADI proposed by Siddharth but I am not sure using that BADI will create a UWL entry for the second approver.
@SAP: a propos the class used for workflow task methods--> stop creating final classes !
Similar Messages
-
Auto Approval Workflow for leave request Management.
Hi Guru's,
I am working on leave request Workflow i.e WS12300111.
Now i have to implement the auto approval of workitem if the approver doesnt take any action in 3days.
1. i have implemented deadline monitoring i.e in Latest end tab
refer date/time :- Expression Date : %DATUM% Time : %UZEIT% 3 days Action : Modeled Display test
Outcome : Reminder Mail
In outcome tab i have activated Processing obsolete.
i have created an activity if the deadline is reached so that it should auto approve the workitem.
in that activity i have created a copy of class CL_PT_REQ_WF_ATTRIBS created 1 method auto_approve. and used function module PT_ARQ_REQUEST_EXECUTE so that it will change the status from SENT to APPROVE.
But when i apply leave in portal , workflow starts but it doesnt reach to branch auto approve after the deadline is reached.
Please suggest is the deadline monitoring implemented correctly or not .
whether the auto approve method used is correct or not
or there is another solution to this
I have checked the SWU3 setting and it is green.
Please Advise
Thanks in Advance
chitisHi Rick ,
Thanks for the Reply.
But is there something wrong in deadline monitoring i have maintained for the task.
could you please share the procedure for implementing deadline monitoring specific to auto approval of the workitem.
thanks in advance
chitis -
Approve Button not visible in Tasks for Leave request in Tasks- MSS
Dear gurus,
Approve Button not visible in Tasks for Leave request in Tasks- MSS, anything missing on config end????
Any suggestions....
regards,
Rajasekar.hello Bala,
there was some config missing in UWL, now it is working and here we have got some button launch dynpro ..this is leading to pop where we can approve or reject....
Thanks alot Bala..
In this we are getting more info, Display details in SAP GUI, View History, View all Time Approval and Attachments of Documents which leads to leave request details. These may be too flashy for the Manager who are from the typcial production centers....industries...So is there any way out for Hiding these.
Regards,
Raj -
How to create iView for Leave Request Approval for ESS Tab in Portal
Hello ,
I am new to Enterprise portal. I got a requirement for creating iViews.
How to create iView for Leave Request Approval for ESS Tab in Portal.??
Please give me clearly or provide any document.
Thanks
RishaHi Risha,
is it customized application ?
If so in SWFVISU transaction maintaain the entry .
Use transaction SWFVISU to prepare standard setting for your Workitem in the UWL. --Parameters for Work Item Visualization in the UWL.
Have a look at below link
http://help.sap.com/saphelp_nw2004s/helpdata/en/59/d516690e854c7090ae15bf492a869f/content.htm -
Dear experts,
There is no standard leave request form provided by SAP. We are developing an adobe form which lists the employee's quota and leaves taken earlier along with the current leave details. This form should be displayed to the approvers from the leave workflow.
When the approver clicks on the work item, the leave request form should popup. There are two technical challenges in this requirement -
1. This requirement is similar to the standard ones for travel request and expense request - In travel request and expense request, SAP has provided standard forms and the workflow container is a standard importing parameter in these adobe forms. This container is helpful in deriving most of the content on the adobe form. However, there is no such link in case of leave request. How does the workflow information be passed to the adobe form? ( i will have to display employee details, quota, current leave, approvers list, approvers comments, etc).
2. For leave request, the approval task is TS12300097 that has "Java Webdynpro" as visualization type. Whereas for travel and expense workflow approval tasks, the visualization type is "ABAP Webdynpro". I am assuming the "JAVA WD" will make it really tough to call the adobe form from the work item.
Any thoughts, suggestions on this requirement will be of great help.
ThanksHi Abdul
which version u r currently working on?? check in swfvisu t-code where you can find the below task
I'm not that good at technical level, but still I try to help you with my limited knowledge.Instead of trying from binding rule, try with Function Module via BOR Object Method. you can get that function module at the time Adobe form creation. Can't you consider that Adobe form as a attachment in the work item???
Check this links
Adobe forms using Workflow with normal SAP | SCN
Calling the Adobe form in a workflow step for A... | SCN
Hope this Info will be Helpful
Cheers
Pradyp -
Setting approval level for credit management in SD
Dear Gurus,
I have a case like this:
My client would like to use credit management in SD. They have few approval levels for for credit limit release.
Exp: With SD has amount under from 1000$, Mr. A has the right to approve and release it
With SD has amount bigger than 1000$, Mr. A have to release it and then Mr. B check again afterwards Mr. B can reject and release it up to his decision.
As I see in SAP, maybe there is only one level for check and after release the SO doesn't need other approve anymore. But I am still concerning about how to find or config to satisfy this requirement.
Thank for nice support!In our case we have maintained a view named as "ZVW_OAR_WF_CTRL" which is created by our ABAPer.
The fields in this view are
FIELD NAME DATA ELEMENT TYPE LENGTH
1) MANDT MANDT CLNT 3
2)PROCESS ZDE_WF_PROCESS CHAR 2
3)KKBER ZDE_KKBER CHAR 4
4)GRUPP_F ZDE_GRUPP_CM_FROM CHAR 4
5)GRUPP_T ZDE_GRUPP_CM_TO CHAR 4
6)LEVELS ZDE_WF_LEVEL CHAR 5
7)VALUE_F ZDE_NETWR_AK_FROM CURR 15
8)VALUE_T ZDE_NETWR_AK_TO CURR 15
9)APPR ZDE_PLANS NUMC 8
10)APPR_AD1 ZDE_PLANS1 NUMC 8
11)APPR_AD2 ZDE_PLANS1 NUMC 8
12)BOX_AC_APPR ZDE_AD_SMTPADR_BOX CHAR 241
13)BOX_AC_REJC ZDE_AD_SMTPADR_REJ CHAR 241
14)NEXT_LEVEL ZDE_WF_LEVEL_NXT CHAR 5
You can ask your ABAPer such that your view contains the above mentioned fields and in the the approvers you have to enter the "Pernr id" s of approver s which can be taken from HR people. -
Configuration steps for leave request in ESS/MSS
Hi
I want to configure for leave request approval from ESS/MSS (EP 7.0 and ECC 6.0)
What are the configuration steps if any doc please send.
Thanks & RegardsHi Rao,
Go through this link for leave request cofiguration steps.
https://www.sdn.sap.com/irj/scn/wiki?path=/display/erphcm/leave%2brequest%2bconfiguration%2bsteps
Also visit this link for ESS related issue resolution and hints.
https://www.sdn.sap.com/irj/scn/wiki?path=/display/erphcm/commonIssuesandHintsin+ESS
Reagrds, -
Work flow for Leave request without ESS
Dear All,
For one of our client, we have configure workflow for leave request, first is it possible to do tht?
If so how to do it?, here we dont have ESS/MSS. Is there any standard workflow available?
ThanxThere is standard workflow task which give by SAP to approve leave request i.e. 12300111.
But I am not sure this workflow task will work with out Portal or not. -
Requirement for Leave Request.
Hi All,
I have a requirement for leave request in Portal. Basically employee will have two managers. Now my scenario is, if there is no line manager then the Approver field must be defaulted with the next manager.
Is there any BADI for this?
Thanks!
Deepak.Hi
I am facing the same issues, when you wrote the udpate has been done by"I copied the Iview and used the handler IviewLauncher"
Can you shre more details , and the steps , Many thanks -
Create Z service for leave request
Hi All,
with reference to "ESS in MSS"
Leave request :
"In a similar fashion you can create a Z service for leave request and attach the resource of Leave request which is standard one to it
EMPLOYEE_WORKTIME_LEAVEREQUEST05 to the Sub Area MSS_HCM_SUB_RELATEDACTIVITY_ESS. "
how do i create a z service for leave request?
RegardsI think you wish to use ESS Leave Request in MSS.......
Tcode SPRO...
Cross-Application Components -> Homepage Framework -> Services
Define Services
Copy existing and create your own....
EMPLOYEE_WORKTIME_LEAVEREQUEST
to
ZXXX_EMPLOYEE_WORKTIME_LEAVEREQUEST
EMPLOYEE_WORKTIME_LEAVEOVERVIEW
to
ZXXX_EMPLOYEE_WORKTIME_LEAVEOVERVIEW
Associate a Z resource or existing resource with it....
Then map this Z service with Sub area
"Assign Services to Subareas"
Do not forget to give "Position"
Revert back if you face any issue......
Edited by: Saurabh Agarwal on Jul 20, 2011 12:32 PM -
Error message for Leave request (Related to some Old Question)
Hi Experts,<br />
<br />
We are facing an Error when only 1 employee in the company opens his Leave request page, the same page is working for others perfectly.<br />
<br />
this Error is the same as the one in the below posts:<br />
<br />
1. Link: Re: Error message for Leave request<br />
<br />
and I tried going through their solutions such as:<br />
<br />
1. Please check if you have the leave config done on ECC side under Personnel Management --> Employee Self services --> Service Specific settings --> Working time --> Leave request .<br />
2. At the least you should have assign the default rule to your PSG to the standard leave type given. Otherwise create your own rule groups and Specify Processing processes for type of leave set up.<br />
3. explicitly activate WEBMO Feature although it was activated<br />
<br />
But the Error is still coming for this specific Employee, even though his Vacation Quota is created and available for deduction.<br />
<br />
Please Help me in solving this issue.<br />
<br />
Regards,<br />
AbdulrahmanIndex: 0, Size: 0:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:507)
at java.util.ArrayList.get(ArrayList.java:324)
at com.sap.aii.proxy.framework.core.JcoBaseList.get(JcoBaseList.java:268)
at com.sap.aii.proxy.framework.core.AbstractList.get(AbstractList.java:230)
at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCList.get(DynamicRFCList.java:281)
at com.sap.tc.webdynpro.progmodel.context.Node$ModelElementList.getElement(Node.java:2549)
at com.sap.tc.webdynpro.progmodel.context.Node.getElementAtInternal(Node.java:621)
at com.sap.tc.webdynpro.progmodel.context.Node.setLeadSelection(Node.java:753)
at com.sap.xss.hr.lea.form.FcForm.setLeadSelectionForSubtype(FcForm.java:700)
at com.sap.xss.hr.lea.form.FcForm.setVisibility(FcForm.java:943)
at com.sap.xss.hr.lea.form.FcForm.prepareCommand(FcForm.java:308)
at com.sap.xss.hr.lea.form.wdp.InternalFcForm.prepareCommand(InternalFcForm.java:2041)
at com.sap.xss.hr.lea.form.FcFormInterface.prepareCommand(FcFormInterface.java:116)
at com.sap.xss.hr.lea.form.wdp.InternalFcFormInterface.prepareCommand(InternalFcFormInterface.java:1887)
at com.sap.xss.hr.lea.form.wdp.InternalFcFormInterface$External.prepareCommand(InternalFcFormInterface.java:1983)
at com.sap.xss.hr.lea.form.edit.VcFormEdit.onInit(VcFormEdit.java:299)
at com.sap.xss.hr.lea.form.edit.wdp.InternalVcFormEdit.onInit(InternalVcFormEdit.java:1084)
at com.sap.xss.hr.lea.form.edit.VcFormEditInterface.onInit(VcFormEditInterface.java:165)
at com.sap.xss.hr.lea.form.edit.wdp.InternalVcFormEditInterface.onInit(InternalVcFormEditInterface.java:204)
at com.sap.xss.hr.lea.form.edit.wdp.InternalVcFormEditInterface$External.onInit(InternalVcFormEditInterface.java:280)
at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:564)
at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:438)
at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:196)
at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:756)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:291)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)
at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:220)
at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1288)
at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:355)
at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:548)
at com.sap.portal.pb.PageBuilder.wdDoRefresh(PageBuilder.java:592)
at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:864)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:684)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172) -
Regarding the exact link for configurate type for leave request
Hi all:
I am trying to Customize Types of Leave/ Absence Types for Leave Requests following the route Personnel Management u2192 Employee Self-Service u2192 Service-Specific Settings u2192 Working Time u2192 Leave Request u2192 Processing Processes u2192 Specify Processing Processes for Types of Leave, but it turns not be there, maybe it is because of the sap version, could you please tell
me the exact route for Customize Types of Leave/ Absence Types ?
thank you very muchsorry , the above link is correct , I found the above linke missing like personnel management--employee self-servce, because Basis didn't delopy some pakcage , could you please tell me what package missed.
thank you very much .
Edited by: jingying Sony on May 7, 2010 7:58 AM -
Need multi level approval for Leave request workflow in ESS
Hi All,
Our requirement is for 5 levels of approvals for the leave request raised in ESS means After employee raises leave request ,it has to be approved by 5 managers one after the other. In standard system only 1 level of workflow and approval is available so please anybody suggest the solution . Thanks in advance.in addition to the above content your workflow consultatn have to create this ask him to
refer this document
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMDEMO/BCBMTWFMDEMO.pdf
for multiple level of aproving the leave reqest and and orgstructure have to be well formed
ravindra -
Error after second level approval in ESS leave request
Hi Experts
I am using custom workflow for Ess Leave request process which is copied from WS21500001.
I have added custom class methods to change status from approved to sent.
Then another method i have set next appovaer.
The problem i m facing is that I am getting an error on portal after second approval approves the request.
i.e Field syomol has not been assigned yet.
from st22 i found its generating from
Include LPT_ARQ_REQUEST_UIAF06 - Form execute_approver_update
By debugging i found that Its not getting next approval with status T as there is only first approval with status 'A'
This results in unassigned field symbol. and then error.
Please help me resolve this issue.
Please confirm why next approver is not found in method.Hi All
Thanks for your reply.
I checked why it was giving a dump.
This execute_approver_update subroutine takes approval data from table ptreq_approver .
I filled this with resp actor id after request is approved and status is changed to sent.
For every emp its unique actor id is saved in ptreq_actor table agaist his pernr.
SELECT SINGLE actor_id FROM PTREQ_ACTOR INTO actor_id WHERE objid = nextApprover_pernr.
wa_appr-mandt = sy-mandt.
wa_appr-request_id = Request_ID. "Req.requestID ( from Workflow )
wa_appr-version_no = version_no. "Req.Version ( from Workflow )
wa_appr-seqnr = seqnr. "Same as version no but in char
wa_appr-approver_ins = actor_id. "Employee actor id from ptreq_actor
wa_appr-status = 'T'. "Manual
append wa_appr to it_appr.
INSERT PTREQ_APPROVER FROM TABLE it_appr .
commit work and wait.
This resolved my issue.
Thanks -
Need to restrict Tasks to come to Task list for Leave Request approval.
Hi all,
Can anybody guide me to resticting the Task to come to Tak list For the Leave RequestApproval.
As soon as we create a Leave Request a task is generated and it is visible in task list.
Here the requiremnet is the task which are generated for this LEave Request functionality should not be seen in the task list.
I have removed the task from UWL Configuration in XML code.
Thanks and Regards,
AnandHi all,
Can anybody guide me to resticting the Task to come to Tak list For the Leave RequestApproval.
As soon as we create a Leave Request a task is generated and it is visible in task list.
Here the requiremnet is the task which are generated for this LEave Request functionality should not be seen in the task list.
I have removed the task from UWL Configuration in XML code.
Thanks and Regards,
Anand
Maybe you are looking for
-
How can I determine which word triggered a dictionary list in attachment?
We have IronPort C160 and an outgoing message was blocked due to our language filters. The logs indicate that an attached word document matches dictionary-match("sexual_content_txt", 1). Since the dictionary match is not in the actual body of the e-
-
Hi, I am trying to use Facelets with ADF but unable to get the desired output i.e. the Facelet regions are not working as desired. My Jdeveloper version is: 10.1.3.0.4(SU4) Please help me out as early as possible. Thank You.
-
i have limited a Text box field size to hold 200 characters. i want to show a running decreasing total (200 - the chars entered) on top of the text field as the user start typing in,how may characters is used and how much balance left. i searched thi
-
Internal Order_Make to Stock
Hi Firends, In M2S scenario, the internal order settlement is there for temporary expenses. Can anybody explain the Internal order scenario in Make to stock and to which account (cost objcect or GL)., the values will be settled from internal order. T
-
I have import a still image into FCP with resolution 720 x 576 . when i will in the source monitor, the image is clear. however, when i put it into the timeline, i can see it is blur and jitter. I have tried all method like applying "Flicker Filter"