Leave Of Absence Workflow
Hi All,
I need to write a query which returns all LOA Workflow's that are "Pending Approval"!
can someone tell me which tables contain information associating a workflow with the Pending Approval status type
cheers
Brad
any workflow pending approval would mean a notification sent a user and it is still not responded? you will have to join wf_notifications and wf_item_activity_statuses table.
--what if its shown 'pending approval' BUT there is no notification for replacer/supervisor, In this case what do it means?
Similar Messages
-
How to read the comment field of the Leave of absence Workflow.
Hi,
I have attached a custom Workflow template to the
Standard class "CL_HRASR00_WF_PROCESS_OBJECT" and event "TRIGGERED" for my Personal leave of absence approval.
During the Workflow step, once the approval goes to the final approval step and it is there in the Benifit Administrator's inbox (Portal) for approval, the Benift Admin is having an option of Withdrawing the process(Withdraw Process button). After filling the comments field, once he clicks this withdraw button the standard class "CL_HRASR00_WF_PROCESS_OBJECT" event "WITHDRAWN" gets triggered and it calls a separate workflow.
I need to capture this comment in the new Workflow but not able to do the same.
Can anyone let me know how can I do this. The event container does have any parameter to pass this value to the workflow container. And since the Step_Object GUID also changes I am unable to read it in the second workflow.
Looking for some real help as this has become critical for the project.
Thanks is andvace.Hi All,
Thanks for your reply Trevor, but I guess you misunderstood my question. What I am not looking for is not the absence data. Basically I need to capture the comments put in by the Benifit administrator in the Leave of absence application form (Personal or Maternity/child care ), incase when he goes for withdrawing the Application submitted by the Employee.
To elaborate it functionality step by step...
1. An employee logs on to portal and submits a LOA application with a few mandatory field ( Commencing date,Returning Date, Reason).
This kicks of a Workflow say WF1 attached to
ABAP Class- CL_HRASR00_WF_PROCESS_OBJECT, Event- TRIGGERED.
2. Then after executing a few tasks to retrive data it goes to the Manager for approval. Once the manager appoves it goes to the Benifit Administrator.
3. The Benifit Administrator can approve the application or has an option of withdrawing it.
4. In case the Benifit Administrator goes for Withdrawal, after putting some comments in the form, it triggers the Event-WITHDRAWN of ABAP Class-CL_HRASR00_WF_PROCESS_OBJECT.
5. This event in turn starts a new Workflow WF2.
6. In this Workflow WF2 I need to pull in the comments put in by the Benifit Admin.
How can I pull this comment? -
Workflow Process - Leave of Absence in R12
Hey guys,
I am trying to find out the workflow process name for the Leave of Absence process using the FND FUNCTION Name.
Previously in 11i you were able to find out the process name (pProcessName=HR_LOA_JSP_PRC) using the parameters field in the function definition screen.
pProcessName=HR_LOA_JSP_PRC&pItemType=HRSSA&pCalledFrom=HR_LOA_SS&pPersonID=&pFromMenu=Y
But the parameters field in 12i has a reference to a Generic process name.
Any Idea how to find the process name? I had heard that the architecture had changed? so anyone has any idea or doc or metalink note on this?
new 12i function
OAFunc=HR_LOA_SS&pAMETranType=SSHRMS&pAMEAppId=800&pProcessName=HR_GENERIC_APPROVAL_PRC&pItemType=HRSSA&pCalledFrom=HR_LOA_SS&pApprovalReqd=YD&pNtfSubMsg=HR_ABS_NTF_SUB_MSG&pConcAction=N
---------------------------------------------There seems to some kind of change of concept with respect to some of the workflows.
Found the below text from the workflow developer guide.
Self Service Generic Approval Process (HR_GENERIC_APPROVAL_PRC) - This approval process supplied by Oracle Self-Service Human Resources is used across HRMS products such as Oracle iRecruitment, Oracle Training administration, Oracle Talent Management (Appraisal), and others, as well as by Oracle Self-Service Human Resource. The Self Service Generic Approval Process provides extensive capability including the features delivered through the Notification Process for Approvers and Notifiers. This generic approval process can be invoked directly from BC4J Java code by passing mandatory attributes for AME callback. Also it provides callbacks for dynamic notification message subject generation with product specific-callbacks.
---------------------------------- -
Application Error has occurred in your process Leave of Absence performed
Hello,
We have a leave process in SSHR Module.When we create a leave and send it for an approval then it is approved without an error. But when we update the leave and send it again for an approval then We are getting below error.
Application Error has occurred in your process Leave of Absence performed
The changes were not applied because ORA-01403: no data found ORA-01403: no data found
We have removed all user hooks related to leave.Still error is coming. We are using 12.1.3 version.
Thanks in Advance,
Regards,
monikaHi Monika,
One more thing i want to tell that when i am checking the transaction from workflow Admin then its showing an error in below activity.
"Notify HR About Commit System Error"
Below error stack has been found in workflow ADMIN
Workflow Errors:
Failed Activity Notify HR About Commit System Error
Activity Type Notice
Error Name WFNTF_ROLE
Error Message 3205: '[email protected]' is not a valid role or user name.
Error Stack Wf_Notification.Send([email protected], HRSSA, HR_EMBED_DEPT_SYSAPPLERR_MSG, WF_ENGINE.CB) Wf_Engine_Util.Notification_Send(HRSSA, 8155, 1296851, HRSSA:HR_EMBED_DEPT_SYSAPPLERR_MSG) Wf_Engine_Util.Notification(HRSSA, 8155, 1296851, RUN)
please see this
The Exception ' The changes were not applied because A person type with a system person type EMP must be specified' is Raised While Appoving Changes to Employee Personal Details. [ID 1545950.1]
Application Error Notification Is Recieved By Requestor After LOA Approval [ID 855141.1]
;) AppsmAsti :)
sharing is caring -
Needs to stop mail going through work-flow related to Leave of Absence & se
While running transactions Pa20/pa30..if it runs for Leave of absence with 5 as reason & separation with 5 as reason then the mail is going to employess due to work-floas it goes to all other actions & reasons.But we want to stop it for above mentioned only.How can we change logic in work-flow for this
0000 infotype(actions) run with any reason like separation or long term disabilitymeans
in Actions infotype the both are reasons right are your sure whether these are Actions reasons or action type ?
In that case identify the Code Related to MASSN which is is acton type feild name and action reason is MASSG
and deactivate for those two action type that will suffice the requirement right -
Leave of absence that includes stat holiday
employee applies for leave of absence for Mon-Fri, but Wed is a stat holiday in the work schedule.
What is the system reaction? will it delimit automatically the absence in IT2001 and create two records Mon-Tu and Thu-Fri?
TiberiuHi
employee applies for leave of absence for Mon-Fri, but Wed is a stat holiday in the work schedule.
What is the system reaction? will it delimit automatically the absence in IT2001 and create two records Mon-Tu and Thu-Fri?
System reacts on the base of u r configuration. As per my knowlwedge system will call leave from monday to Friday- 4 days absence -
SSHR: Leave of Absence API
Hello All,
I want to add Leave of Absence for an employee using API which should generate Approval notification. Can anyone please guide me to get the API to add Leave of Absence.
- PriyankaHi ,
Could someone please help me out here?
regards,
Ved -
Leave of absence datas storing table before approval
hi,
we are using the leave of absence process with one level approval.
Once the employee leave is approved its saving in the table PER_ABSENCE_ATTENDANCES_V.
while the leave status is pending for approval its not saving in the table
PER_ABSENCE_ATTENDANCES_V
but we need the applied datas while the status pending for approval
from which table i acn get this ...
anybody can help me out?
Regds,
KumarHi,
Take a look at HR_API_TRANSACTIONS, HR_API_TRANSACTION_STEPS, HR_API_TRANSACTION_VALUES.
Thx -
What is the process of Leave of Absence?
what is the process of Leave of Absence?
Dear Rakesh,
Below is given step by step to create absence quota creation...
The following is the config. of TM.
IMG --> Personnel Time Management --> Work Schedules --> Define Public Holiday Classes
IMG --> Personnel Time Management --> Work Schedules --> Personnel Subarea Groupings --> Group Personnel Subareas for the Work Schedule
IMG --> Personnel Time Management --> Work Schedules --> Personnel Subarea Groupings --> Group Personnel Subareas for theDaily Work Schedule
IMG --> Personnel Time Management --> Work Schedules --> Daily Work Schedules --> Define Daily Work Schedules
IMG --> Personnel Time Management --> Work Schedules --> Period Work Schedules --> Define Period Work Schedules.
IMG --> Personnel Time Management --> Work Schedules --> Day Types --> Define Day Types.
IMG --> Personnel Time Management --> Work Schedules --> Day Types --> Define Day Types.
IMG --> Personnel Time Management --> Work Schedules --> Day Types --> Define Special Days.
IMG --> Personnel Time Management --> Work Schedules --> Work Schedule Rules and Work Schedules --> Define Employee Subgroup Groupings
IMG --> Personnel Time Management --> Work Schedules --> Work Schedule Rules and Work Schedules --> Define Groupings for the Public Holiday Calendar.
IMG --> Personnel Time Management --> Work Schedules --> Work Schedule Rules and Work Schedules --> Set Work Schedule Rules and Work Schedules.
IMG --> Personnel Time Management --> Work Schedules --> Work Schedule Rules and Work Schedules --> Generate Work Schedules Manually
IMG --> Personnel Time Management --> Work Schedules --> Planned Working Time --> Set Default Value for the Work Schedule.
IMG --> Personnel Time Management --> Work Schedules --> Planned Working Time --> Set Default Value for Time Management Status.
IMG --> Personnel Time Management --> Time Data Recording and Administration --> Substitutions --> Define Personnel Subareas for Substitution Types.
IMG --> Personnel Time Management --> Time Data Recording and Administration --> Substitutions --> Set Defaults for Substitution Types.
IMG --> Personnel Time Management --> Time Data Recording and Administration --> Absences --> Absence Catalog --> Group Personnel Subareas for Attendances and Absences.
IMG --> Personnel Time Management --> Time Data Recording and Administration --> Absences --> Absence Catalog --> Define Absence Types.
IMG --> Personnel Time Management --> Time Data Recording and Administration --> Absences --> Absence Catalog --> Absence Counting --> Define Counting Classes for the Period Work Schedule.
IMG --> Personnel Time Management --> Time Data Recording and Administration --> Absences --> Absence Catalog --> Absence Counting --> Rules for Absence Counting (New) --> Group Employee Subgroups for Time Quotas.
IMG --> Personnel Time Management --> Time Data Recording and Administration --> Absences --> Absence Catalog --> Absence Counting --> Rules for Absence Counting (New) --> Group Personnel Subareas for Time Quotas
IMG --> Personnel Time Management --> Time Data Recording and Administration --> Absences --> Absence Catalog --> Absence Counting --> Rules for Absence Counting (New) --> Define Rules for Rounding Counted Absences
IMG --> Personnel Time Management --> Time Data Recording and Administration --> Absences --> Absence Catalog --> Absence Counting --> Rules for Absence Counting (New) --> Define Counting Rules
IMG --> Personnel Time Management --> Time Data Recording and Administration --> Absences --> Absence Catalog --> Absence Counting --> Rules for Absence Counting (New) --> Define Counting Rules --> Deduction rules for Absence quotas
IMG --> Personnel Time Management --> Time Data Recording and Administration --> Absences --> Absence Catalog --> Absence Counting --> Assign Counting Rules to Absence Types.
IMG --> Personnel Time Management --> Time Data Recording and Administration --> Attendances/Actual Working Times --> Define Attendance Types.
IMG --> Personnel Time Management --> Time Data Recording and Administration --> Attendances/Actual Working Times --> Attendance counting --> Rules for Attendance counting (New) --> Assign Counting Rules to Attendance Types.
IMG --> Personnel Time Management --> Time Data Recording and Administration --> Managing Time Accounts Using Attendance/Absence Quotas --> Time Quota Types --> Define Absence Quota Types.
IMG --> Personnel Time Management --> Time Data Recording and Administration --> Managing Time Accounts Using Attendance/Absence Quotas --> Calculating Absence Entitlements --> Automatic Accrual of Absence Quotas --> Permit Quota Generation Without Time Evaluation.
IMG --> Personnel Time Management --> Time Evaluation --> Time Evaluation Settings --> Set Personnel Subarea Groupings for Time Recording.
IMG --> Personnel Time Management --> Time Data Recording and Administration --> Managing Time Accounts Using Attendance/Absence Quotas --> Calculating Absence Entitlements --> Rules for Generating Absence Quotas --> Set Base Entitlements --> Base Entitlement for Absence Quota Generation.
IMG --> Personnel Time Management --> Time Data Recording and Administration --> Managing Time Accounts Using Attendance/Absence Quotas --> Calculating Absence Entitlements --> Rules for Generating Absence Quotas --> Determine Validity and Deduction Periods.
IMG --> Personnel Time Management --> Time Data Recording and Administration --> Managing Time Accounts Using Attendance/Absence Quotas --> Calculating Absence Entitlements --> Rules for Generating Absence Quotas --> Set Base Entitlements --> Define Generation Rules for Quota Selection
If still do you need screens --> kindly click on below link
HCM - Absence Quota Generation
Ur's
Mohan -
I need to change logic behind Calculate Duration button in Leave of Absence
Hello,
I need to change logic behind Calculate Duration button in Leave of Absence creation page.
How I can do that?
Please suggest.
Regards,
mofizurThis will be a OAF customization, you have extend this oracle.apps.per.selfservice.absence.webui.AbsenceCO Controller.
in processFormRequest you have catch event to Calculate Duration Button.
You need to write custom your requrirement Logic for event to Calculate Duration.
Thanks, Avaneesh -
Internal Server error while approving leave in absence management
hi
In my project absence mgt is applicable for Netherland employees. When an NL manager applies leave and his manager from puerto rico tries to approve it from UWL , the manager is getting the following ERROR on clicking on the leave request in his inbox task.
500 Internal Server Error Web Dynpro Container/SAP J2EE Engine/6.40
Failed to process request. Please contact your system administrator.
Error Summary
While processing the current request, an exception occured which could not be handled by the application or the framework.
If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
Root Cause
The initial exception that caused the request to fail, was:
java.lang.NullPointerException:
at com.sap.xss.hr.lea.form.edit.VcFormEdit.setReadOnlyApprover(VcFormEdit.java:467)
at com.sap.xss.hr.lea.form.edit.VcFormEdit.onInit(VcFormEdit.java:269)
at com.sap.xss.hr.lea.form.edit.wdp.InternalVcFormEdit.onInit(InternalVcFormEdit.java:700)
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:158)
... 37 more
This UWL error in Leave approval workflow is coming ONLY when PR manager is trying to NL employee's leave .
All other country managers ( US , CH , FR etc) are able to approve the leave without any issue.
We are using the standard leave approval workflow.
ANY SOLUTIONS Plzz???Hello
The above issue can occur if the rule group , to which this employee belongs, the leave type is not configured correctly. Please check the view V_T556A_WEB. The leave type and the rule group need to be defined here .
Also make sure that the counting rule for the leave type is also define correctly in T556C. Once the leave type for the approver which belongs to the rule group has been correctly configured, way it has been done for normal employees, there will not be any issue.
Kindly complete the necessary customizing and check your results.
Thanks and kind Regards
Ramana -
How to approve Leave Request for Workflow in ESS?
Hey! Experts,
Currently, I am working on ESS Leave Request Workflow referening the Standard Workflow Template WS12300111. The requirements are as such, requested leave need to be approved using TS 12300007 'Approve Process'. Here, I have created a customized Rule to get the actual agent since the requirement is like i have to check if the employee who is apply for leave on the date is present in any project (alternative C-project Org. Structure is maintained) than his / her project manager will be the approver else i need to get the approver from the central HR Org. Struct. For simplicity consider the employee is currently present in only one project.
Also, for information the Rule is working fine. That is the workitem is received in the appropriate agent UWL.
Now my doubt is, there is no approve / reject button coming in the workitem in UWL
Also, after refering documentation on help.sap.com i came to know that some reports need to be run in background for approval to be done.
Here, I am confused and I am stucked as I dont know which reports need to be run and how will the approval will be done in MSS.
Kindly, give me some guidance on the same so that i can proceed.
Thnx! in advance.
And yeah points will be rewarded on giving suitable answer for this.
Regards,
Mistry WasimHi,
Following are the some important points you should understand about ESS Leave Request Workflow
1. The Visualization ( how should it appear in UWL and what should happen when you click on a particular workitem) is defined in SWFVISU. Check for TS12300097. Generally, it invokes com.sap.xss.hr.lea.appl/LeaveRequestApprover Java WebDynpro application. Just check whether you are able to get the correct Leave Processing application called when you execute your workitem from UWL?
2. In general it should have option to process the leave request either approve/reject. When the leave request gets approved/rejected the status of the Leave Request document gets changed ( in workflow it is &REQ.STATUS&
3. There is a need to schedule a background job for program RPTARQPOST which will pick up all the documents in APPROVED status and creates an absence record for the same.
4. Apart from schedule job as mentioned above, you also have to schedule a background job for program RPTARQEMAIL, which is basically used to send e-mails for all the documents which are yet to be approved to correct manager.
as you say , you can not see Approve/Reject options from UWL, it looks to me that correct javawebdynpro application is not being called for this task. Just check this !!
Good Luck !!
Regards
Krishna Mohan -
Absence workflow - Changing Req. status
Hello, I'm using workflow for absence requests in ESS.
I created a FM with the following code, which is used in a BOR method and included in a workflow task:
get request from guid
CALL METHOD ca_pt_req_header=>agent->get_request
EXPORTING
im_request_id = request_id
IMPORTING
ex_request = request.
Change state only for existing request object
IF request IS BOUND.
execute state transition
CALL METHOD request->initiate_state_transition
EXPORTING
im_transfer_event = event
IMPORTING
ex_new_status = new_status.
ENDIF.
COMMIT WORK AND WAIT.
When I test the workflow, it doesn't change the status of the request, but if I have tested the FM and the method and I can change the status request. I have checked the bindings and it seems ok.
Any help?Hi
Make use of the below code to change the status of a leave/absence request.
METHOD approve.
DATA: request TYPE REF TO if_pt_req_request,
event TYPE tim_req_xfer_event VALUE cl_pt_req_const=>c_reqtrans_approve.
CALL METHOD cl_pt_req_badi=>get_request
EXPORTING
im_req_id = me->req_id
IMPORTING
ex_request = request.
CALL METHOD cl_pt_req_badi=>initiate_state_transition
EXPORTING
im_request = request
im_event = event
* IM_RET_VALUE = 0
IMPORTING
ex_new_status = me->status.
ENDMETHOD.
Never use any commit work after you chnage the status of the leave request from a workflow task.
Regards
Pavan -
Leave of absence replaced by lov
Hi everyone, for the SSHR absence management form, I am trying to limit the replaced by LOV to only people in my business group. It is picking everyone across the company which isn't what I was hoping for. Does anyone have a workaround for this?
Many Thanks,
IgweHi Asif, this doesn't seem to be working. could you look at my setup dump and tell me where I've gone wrong. The LOVs for absence replacement and employee directory still return data for everyone.
View Grant: XXKSA Employee Self Service Replaced By LOV
Delete Update
Name XXKSA Employee Self Service Replaced By LOV
Description
Effective From 15-Mar-2013
Effective To
Security Context
Grantee Type All Users
Grantee Everyone
Operating Unit
Responsibility KSA Employee Self Service
Data Security
Object Workflow Role LOV
Data Context
Type Instance Set
Name XXKSA Employee Directory Instance Set
Description Limits Employee Directory to KSA Employees
Predicate
&TABLE_ALIAS.USER_NAME IN (SELECT USER_NAME FROM FND_USER FU, PER_ALL_PEOPLE_F PAPF WHERE FU.EMPLOYEE_ID = PAPF.PERSON_ID AND PAPF.BUSINESS_GROUP_ID = 721 AND (PAPF.CURRENT_EMPLOYEE_FLAG = 'Y' or PAPF.CURRENT_NPW_FLAG = 'Y') AND SYSDATE BETWEEN PAPF.EFFECTIVE_START_DATE AND PAPF.EFFECTIVE_END_DATE )
Instance Set Details
Parameter 1
Parameter 2
Parameter 3
Parameter 4
Parameter 5
Parameter 6
Parameter 7
Parameter 8
Parameter 9
Parameter 10
Set
Name Workflow Role LOV Permission Set
Code WF_ROLE_LOV_PSET
Description Permission Set to Restrict the Visibility of Roles -
ESS - Leave request - Absence type
Hi SDN.
We want to implement ESS(50.4) iView "Leave request".
How do we control which entries there is in the dropdownbox "Absence type"?
I can't find any documentation regarding this.
Thanks in advance
PeterHi Ashutosh.
Perfect, 10 points for you
Can you also tell me where I could read about this, because I really feel I am missing information about this iView.
The online documentation for this BP/iView, doesn't say anything.(or I just can't find it)
Thanks
Peter
Maybe you are looking for
-
I just got Flash Professional CS5 3 months ago. Now I see a latest Flash Software (CS5.5) out but the upgrade is costly. I'm going threw Creative Edge to learn how to be more familaer with what projects I can do. As I was going threw a new book threw
-
No le anda la pantalla, como hago para solucionarlo???
how can i do if the touch doesn't work? i press my finger on it and it doesn't work !!!!
-
Hello, is possible to install Oracle Express Edition on Windows x64 ? When I try to install I get error "Error: 1719 The Windows Installer Service could not be acessed"
-
APD - Query metadata is incomplete
Hi I have a problem with a basic APD made of a query as a data source and an ODS as a target When executed it ends with 'Query metadata is incomplete'. Anybody know how to manage this 'query metadatau2019 Thanks in advance for your answers. Thanks S
-
TS1717 Can't up date to iTunes 10.7 on my windows 7 laptop?
Can't up date to iTunes 10.7 on my windows 7 laptop?