Assigning Leave types to ESS workflow

Hi All,
Actually I would like to know how to assign leave types to standard WF NO.WS04200009 for Leave in ESS.
In this WF in my first screen I m not getting the F4 help for leave types in ESS. I believe it has to be done thru Rule groups, but I also dont know how to create one.
Can anyone please guide?
Thanks and Regards,
Sudipto.

For achieving your functionality you have to use a filter, or have a check in BADI where you disallow
employees from taking a certain type of absence by giving an error message based on their ESG
as you indicated

Similar Messages

  • Error while selecting the Leave type in ESS portal

    Dear Team,
    One of the employee is trying to select a type of leave in ESS portal, system is giving error message as "Access is Denied" at the left hand corner of the screen. When i am checking it in Quality it is working fine.
    Can anybody suggest me on this.
    Kind Regards
    Nag

    Hi,
    Please check whether that emplloyee has got authorization for this function in production system. Thanking you.

  • ESS workflows clarification required

    Hi ,
    i am working on Ess workflows (ws12300111 ). i have copied standard workflo(ws12300111)  and deleted loops and hr approval steps ,as our requirement is just sending notification to manager and  mail to user after approval or rejection .
    doubts:
    1.) if we take step type 'send mail' in workflow builder  will that mail reflect in portal inbox ,if not how do ?
    2.)when i have applied leave in portal it is giving error stating that 'you are not possible agent' but i am using the standard one  (given as general task at task level)?
    please clarify these doubts.
    Regards,
    SreeHarsha

    Hi Sreeharsha Reddy,
    1.) if we take step type 'send mail' in workflow builder will that mail reflect in portal inbox ,if not how do ?
         No. For that you have synchoronise the task with the portal application in the tcode swnconfig.
    2.)when i have applied leave in portal it is giving error stating that 'you are not possible agent' but i am using the standard one (given as general task at task level)?
       Yes, it is correct. When ever you are using the standard workflow check for the general forwarding allowed in the task level and try to test once again.
    Thanks and Regards
    Balaji E.

  • Leave approvals without ESS

    Hi Experts
    How can i do Leave approvals without ESS.is it passible to do  please help me.

    hi,
    try to code...
    emp number 26 is a dummy value here
    data: ACTOR_AGENT type ref to CA_PT_REQ_ACTOR.
    CALL METHOD ACTOR_AGENT->CREATE_ACTOR
    EXPORTING
    IM_ACTOR_TYPE = 'P'
    IM_PLVAR =
    IM_OTYPE = 'P'
    IM_OBJID = '00000026'
    IMPORTING
    EX_ACTOR = ex_responsible_actor
    EXCEPTIONS
    MISSING_PARAMETER = 1
    PERNR_NOT_EXISTING = 2
    APPLICATION_ERROR = 3
    others = 4
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    but the application has been dumping for a while.
    The error message in st22 is as follows
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
    caught in
    procedure "IF_EX_PT_GEN_REQ~FIND_RESP_AND_DEFAULT_NEXT_PRC" "(METHOD)", nor was
    it propagated by a RAISING clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    You attempted to use a 'NULL' object reference (points to 'nothing')
    access a component (variable: "ACTOR_AGENT").
    An object reference must point to an object (an instance of a class)
    before it can be used to access components.
    Either the reference was never set or it was set to 'NULL' using the
    CLEAR statement.
    by
    parthi

  • Half day processing of Leave raised from ESS

    Hi ,
    We have the a problem in leave request  from ESS
    EP7
    (ERP2005)
    How to allow half a day processing of leave request?
    even if i enter 4 hours in the duration field
    the system takes 8 hours
    but when i do the same from PA30 it is ok.
    kindly give your valuable suggestions
    Thanks
    Sera

    Hi Sera,
    Please check table V_T554S_WEB to make sure the absence type used from ESS is same as absence type you tested from PA30.
    Regards,
    Jim

  • Regarding leave type modification

    Hello friends,
               In our organisation there is one type of leave as casual leave quater day.
    when i select this leave type for leave there is type of leaves field then after date field after that there is
    in time and out time fields.
              Now i want to remove that time fields from screen. Can anybody give me solution for that .
    Thanks
    Unmesh

    hello friend thanks for reply.
           Now i will clear my problem.
    I am in ESS and want to post a request named casual leave quater day. This a type of leave in our organization.
    Now when i go for it on screen there is three months calendar then below that type of leave from that
    i have selected casual leave quater day then date selected after date selection there is time fields.
    In time fields i will enter the time for which i am taking leave.
    But now i want to remove that time fields from screen or hide because my some problems.
    Hope this time i am more clear.
    Thanks

  • Reg:- Issue with Leave Deduction in ESS Leave Request

    Hi All,
    We are facing the following issue in the Leave Request module in ESS (ess~lea):
    Currently, there is a requirement from the customer that when the Leave Type is chosen as Paid Holiday - Early/AM (Subtype: 0110) or Paid Holiday - Post/PM (Subtype: 0120), we have to hide The Time field (which contains Begin and End Times) in the first Screen (Edit form Screen). On clicking the Review button, we are calling a custom RFC  to which the User ID, Subtype and Date of Leave are passed as the import parameters. This custom RFC returns the Begin and End Times depending on the import parameters passed. These Begin and End Times (returned from the custom RFC) are then mapped to Begin_Time and End_Time context attributes under "Workitem" context node and will be used for all further processing.
    However, the problem is that on clicking the Review button, the leave to be deducted is calculated as 1 Days instead of 0.5 Days (for Subtypes - 0110 and 0120 only). How can we make sure that the leaves deducted is 0.5 Days in both Review (second) and Confirmation (third) screens?
    Appreciate your help.
    Thanks in advance,
    Pavithra

    You can use PT_ARQ_REQUEST_CHECK!
    If clock time fields were open as in the standard, you
    as well change the time and pressed review and everything would have
    been fine.
    In case you dont want to add the time fields in the front end , then you
    can acheive the same by clearing the time fields in the back end
    function module PT_ARQ_REQUEST_CHECK.
    Depeding on your requirement you can decide how to use
    PT_ARQ_REQUEST_CHECK ie hours field or the clock times.
    That means you need to clear the time fields which are derived
    from the work schedule and keep it empty since these fields
    are hidden in your front end and no option for the pernr to modify
    or correct the times.

  • ESS Workflow 10000015 Approve request for changing address thru Portal ESS

    Hi Experts,
    We want to implement ESS workflow 01000015 u201Cchange (infotype 0006) Address will be blocking until approved/rejected by Administratoru201D. The workflow is trigger OK from R3, user creates a new address and IT0006 is blocking till administrator approve or reject.
    What we want now is to trigger this workflow from Portal, but here is the problem:
    1.-  I do not see any option (button) for creating a new address from Portal iView, what else is missing??? I believe creating new address from Portal could trigger this workflow, but I am not sureu2026
    2.- If the first option does not work I would like to trigger this workflow by the event u201CChangeu201D, so I need to edit the address. From R3 is blocking IT0006 OK, but from portal is not blocking the address at allu2026 What else is missing??? I do not know if this could be an issue from R3 or Portalu2026.
    We already check u201CNote 495971 - Workflow 01000015 is not triggered when changing addressu201D and workflow is working ok only from R3.
    Regardsu2026..
    David Cortes

    Hi Swamy,
    I am a little confused of you requirement. The scenario here is that Person A (Any person using ESS) must not change any of his/her own personal data until Person B Approve/Reject the new Data. For example: if a user A want to change his/her address, personal data etc. must be approve or reject for another person B. This is a validation that most of the companies want to have in order to validate this information. Employees may change their personal data, but how HR area validates if this new information is real or not...  One way to verify this new information is a validation for a Person B who will be to approve or reject this information. Now if you do not have this scenario I believe you will not have to do this implementation class because ESS do not have this scenario. The standard ESS functionality is available for change any data without validation and this should be working right now on your Enterprise Portal.
    If you want to have a validation for a third User, Person B, you may check these points:
    1. Edit 2. New Permanent address
    Edit - Will change the record irrespective of dates. This will modify the current record which is valid as of today.
    New Permanent address - This will create a new record effective today and previous record will be delimited.
    If I use lock functionality in Edit scenario, then in the portal it will dispaly previous record which is not the correct data.
    For 2nd case, this will insert the new record, so Lock may work in this case. I will check this.
    I believe you will work most of the time with "Edit" button. If Person A edit address, the new register will be created and locked in PA30 Infotype  6 until person B Approve/Reject. How Person B knows if someone has edit his/her address?? You may achieve this using Universal Work List and notification. You may have to create a task for person B with email notification, so person B will be enter into Portal and check his/her new task from the UWL. This task will be ITS UI front end and from here person B decide if approve or reject. If Person B approve, the new register will be unlocked and replace the last one (Also in Portal). If person B reject, the register blocked will be gone and the last one remains.
    This should work for any infotype . Check only the type of event generated for any of them in order to trigger the workflow.
    Do you have any idea how to achieve this for Personal details where the Lock/Unlock functionality is not available.
    Standard ESS works without any lock/unlock functionality. remove the current workflow if you have used any.
    Regards
    David Corté

  • Implementing ESS Workflow

    Hi Friends,
        I am new to HR. I want to try implementing ESS. I am quite comfortable with all the activities it takes to implement ESS except for Workflows.Is there any documents available providing a sort of walkthrough of how to implement ESS workflow from Portal(UWL)?
    Thanks in advance.
    Regards,
    Nathan.

    Hi Nathan,
    Which Wofkflow you are looking for? There are some standard WF's (Leave) already in the system...From your Portal Content Directory you can find these Iviews under migrated content -> EP version -> Iviews -> ESS :working time -> Leave request...
    And from the iview properties, you can find the workitem 
    WS200000081 name..You execute this Woritem in SWDD trnx...
    Later you copy the workitem and the iview and do necessary modifications.
    Hope it helps .
    Rgds,
    Jothi.
    Do award pts for helpful answers.

  • Restrict Leave Types

    Hi All,
    how can we restrict leave types (AWART ) from portal.
    Suppose when we select F4 option for leave type in portal,then it will display 20 leave types.but i want to restrict 2 leave types for particular Company code and Personal Sub Area.
    how can we do this
    is there any BADI ( PT_IAC_LEAVREQ_0001 )for this Requirement.
                  or
    how can we restrict leave types when we use PA30 TCode
    suppose i entered infotype 2001 and i selected Subtype.
    it will display lot of of leave type i want to restict 2 leave types.
    Regards,
    Sudheer
    Edited by: rokandla on Nov 1, 2011 7:39 AM

    There is no need to use badi, this is standard feature:
    You need to set up rule group first after that please maintain V_T556A_WEB to your preference. You need to configure ess specific setting : IMG-Personnel Management-ESS-Service Specific Set.-Working Time-Leave Request
    as per case in pa30 tcode the approach is different, you need to set grouping for you quota type in Group Personnel Area for Attendance /Absence. In IMg-TIme Management-Time Data Recording-Absence-Absence Catalog.

  • The system could not find a javax.ws.rs.ext.MessageBodyWriter or a DataSourceProvider class for the com.rest.assignment.EmpBean type and application/json mediaType.  Ensure that a javax.ws.rs.ext.MessageBodyWriter exists in the JAX-RS application for the

    Hi,
    Im trying to create a Rest WS with a @GET method that will return me an Emp object. I need the output as a JSON string.
    I have created a dynamic web project and added javax RS jars:
    When im trying to run this, i'm getting the below mentioned error:
    FlushResultHa E org.apache.wink.server.internal.handlers.FlushResultHandler handleResponse The system could not find a javax.ws.rs.ext.MessageBodyWriter or a DataSourceProvider class for the com.rest.assignment.EmpBean type and application/json mediaType.  Ensure that a javax.ws.rs.ext.MessageBodyWriter exists in the JAX-RS application for the type and media type specified.
    RequestProces I org.apache.wink.server.internal.RequestProcessor logException The following error occurred during the invocation of the handlers chain: WebApplicationException (500 - Internal Server Error)
    Please help as im stuck with this from long.
    Thanks in advance.
    Below is the code for my service class:
    package com.rest.assignment;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.util.Enumeration;
    import java.util.HashSet;
    import java.util.Properties;
    import java.util.Set;
    import javax.ws.rs.GET;
    import javax.ws.rs.Path;
    import javax.ws.rs.Produces;
    import javax.ws.rs.core.Application;
    import javax.ws.rs.core.MediaType;
    import javax.ws.rs.core.Response;
    @Path("/restService")
    public class RestService extends Application {   
        @GET
        @Path("/getEmpDetails")
        @Produces(MediaType.APPLICATION_JSON)
        public Response getStringResponse()
            EmpBean empBean = new EmpBean();
            String filePath = "C:/Program Files/IBM/workspace/HelloWorld/src/com/rest/resources/EmpData.properties";
            Properties properties = new Properties();
            try {
                properties.load(new FileInputStream(filePath));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
             Enumeration e = properties.propertyNames();
             String result="";
            String[] empDetailsArr;
            while (e.hasMoreElements()) {
              String key = (String) e.nextElement();
              String empDetails = properties.getProperty(key);
              empDetailsArr=empDetails.split(",");    
              empBean.setFirstName(empDetailsArr[0]);
              empBean.setLastName(empDetailsArr[1]);
              empBean.setEmpId(empDetailsArr[2]);
              empBean.setDesignation(empDetailsArr[3]);
              empBean.setSkillSet(empDetailsArr[4]);
              result = empDetailsArr[1];
            //return empBean;
            return Response.ok(empBean).type(MediaType.APPLICATION_JSON_TYPE).build();
        @Override
        public Set<Class<?>> getClasses() {
            Set<Class<?>> classes = new HashSet<Class<?>>();
            classes.add(RestService.class);
            classes.add(EmpBean.class);
            return classes;
    and my empBean goes like this:
    package com.rest.assignment;
    public class EmpBean {
        private String firstName;
        private String lastName;
        private String empId;
        private String designation;
        private String skillSet;
        public String getFirstName() {
            return firstName;
        public void setFirstName(String firstName) {
            this.firstName = firstName;
        public String getLastName() {
            return lastName;
        public void setLastName(String lastName) {
            this.lastName = lastName;
        public String getEmpId() {
            return empId;
        public void setEmpId(String empId) {
            this.empId = empId;
        public String getDesignation() {
            return designation;
        public void setDesignation(String designation) {
            this.designation = designation;
        public String getSkillSet() {
            return skillSet;
        public void setSkillSet(String skillSet) {
            this.skillSet = skillSet;
    Web.xml goes like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
    <display-name>restWS</display-name>
    <welcome-file-list>
      <welcome-file>index.html</welcome-file>
      <welcome-file>index.htm</welcome-file>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>default.html</welcome-file>
      <welcome-file>default.htm</welcome-file>
      <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
    <servlet>
      <servlet-name>REST</servlet-name>
      <servlet-class>com.ibm.websphere.jaxrs.server.IBMRestServlet</servlet-class>
      <init-param>
       <param-name>javax.ws.rs.Application</param-name>
       <param-value>com.rest.assignment.RestService</param-value>
      </init-param>
      <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
      <servlet-name>REST</servlet-name>
      <url-pattern>/rest/*</url-pattern>
    </servlet-mapping>
    </web-app>
    When i try to return a string from my get method, it gives me a proper response. i get this exception when im trying to return a JSON response.

    Hi,
    Im trying to create a Rest WS with a @GET method that will return me an Emp object. I need the output as a JSON string.
    I have created a dynamic web project and added javax RS jars:
    When im trying to run this, i'm getting the below mentioned error:
    FlushResultHa E org.apache.wink.server.internal.handlers.FlushResultHandler handleResponse The system could not find a javax.ws.rs.ext.MessageBodyWriter or a DataSourceProvider class for the com.rest.assignment.EmpBean type and application/json mediaType.  Ensure that a javax.ws.rs.ext.MessageBodyWriter exists in the JAX-RS application for the type and media type specified.
    RequestProces I org.apache.wink.server.internal.RequestProcessor logException The following error occurred during the invocation of the handlers chain: WebApplicationException (500 - Internal Server Error)
    Please help as im stuck with this from long.
    Thanks in advance.
    Below is the code for my service class:
    package com.rest.assignment;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.util.Enumeration;
    import java.util.HashSet;
    import java.util.Properties;
    import java.util.Set;
    import javax.ws.rs.GET;
    import javax.ws.rs.Path;
    import javax.ws.rs.Produces;
    import javax.ws.rs.core.Application;
    import javax.ws.rs.core.MediaType;
    import javax.ws.rs.core.Response;
    @Path("/restService")
    public class RestService extends Application {   
        @GET
        @Path("/getEmpDetails")
        @Produces(MediaType.APPLICATION_JSON)
        public Response getStringResponse()
            EmpBean empBean = new EmpBean();
            String filePath = "C:/Program Files/IBM/workspace/HelloWorld/src/com/rest/resources/EmpData.properties";
            Properties properties = new Properties();
            try {
                properties.load(new FileInputStream(filePath));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
             Enumeration e = properties.propertyNames();
             String result="";
            String[] empDetailsArr;
            while (e.hasMoreElements()) {
              String key = (String) e.nextElement();
              String empDetails = properties.getProperty(key);
              empDetailsArr=empDetails.split(",");    
              empBean.setFirstName(empDetailsArr[0]);
              empBean.setLastName(empDetailsArr[1]);
              empBean.setEmpId(empDetailsArr[2]);
              empBean.setDesignation(empDetailsArr[3]);
              empBean.setSkillSet(empDetailsArr[4]);
              result = empDetailsArr[1];
            //return empBean;
            return Response.ok(empBean).type(MediaType.APPLICATION_JSON_TYPE).build();
        @Override
        public Set<Class<?>> getClasses() {
            Set<Class<?>> classes = new HashSet<Class<?>>();
            classes.add(RestService.class);
            classes.add(EmpBean.class);
            return classes;
    and my empBean goes like this:
    package com.rest.assignment;
    public class EmpBean {
        private String firstName;
        private String lastName;
        private String empId;
        private String designation;
        private String skillSet;
        public String getFirstName() {
            return firstName;
        public void setFirstName(String firstName) {
            this.firstName = firstName;
        public String getLastName() {
            return lastName;
        public void setLastName(String lastName) {
            this.lastName = lastName;
        public String getEmpId() {
            return empId;
        public void setEmpId(String empId) {
            this.empId = empId;
        public String getDesignation() {
            return designation;
        public void setDesignation(String designation) {
            this.designation = designation;
        public String getSkillSet() {
            return skillSet;
        public void setSkillSet(String skillSet) {
            this.skillSet = skillSet;
    Web.xml goes like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
    <display-name>restWS</display-name>
    <welcome-file-list>
      <welcome-file>index.html</welcome-file>
      <welcome-file>index.htm</welcome-file>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>default.html</welcome-file>
      <welcome-file>default.htm</welcome-file>
      <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
    <servlet>
      <servlet-name>REST</servlet-name>
      <servlet-class>com.ibm.websphere.jaxrs.server.IBMRestServlet</servlet-class>
      <init-param>
       <param-name>javax.ws.rs.Application</param-name>
       <param-value>com.rest.assignment.RestService</param-value>
      </init-param>
      <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
      <servlet-name>REST</servlet-name>
      <url-pattern>/rest/*</url-pattern>
    </servlet-mapping>
    </web-app>
    When i try to return a string from my get method, it gives me a proper response. i get this exception when im trying to return a JSON response.

  • BSP error while applying a Leave request in ESS

    Dear Friends,
    Reposting an issue which I posted earlier in ESS Forum as I didn't get solution there and the issue is more technical and moved towards Netweaver applications.
    While applying a leave request in ESS portal, I am getting an error page saying Business Server Page error.
    Checked related SPRO Nodes: Both ESS UI5 and ESS (Java) nodes. They are maintained. Being HCM Functional Consultant, this error I am not able to analyze anyway. So asking Portal /Netweaver experts here.
    Error screen attached-
    My earlier thread posted in ESS forum
    http://scn.sap.com/thread/3675714
    Expecting a quick solution for this as I am stuck in this issue for last 4-5 days .
    Regards,
    Niladri

    Sorted out . Detail can be seen in the Referal link. Closing this thread
    Regards,
    Niladri

  • While raising Leave Request on ESS: getting warning message displayed

    Hi All,
    When i am trying to raise a leave request from ESS i am getting the warning message displayed on the page  as follows:
    "Customizing for employee 00001153 does not exist"
    I want this message to be removed.
    Is this problem from R/3 end or any configuration needs to be done on ESS ?
    Pls let me know how to remove this message.
    Regards
    Vijay

    this message ensues when there is a missing customisation for the pernr, For example :
    message is being displayed due to rule group customizing is missing
    for a leave '0560' for which a leave record exists on the date
    '14th March 2008'.
      One possible solution would be to create a record in the customizing or delete the record from the application.
    So please check the customisation of the absences, Quotas, rule group etc for this particular employee

  • Run time error when we click  "Leave overview " in ESS - pl help

    Hi Gurus ,
    We are getting run time error when we
    click the 'Leave Overview' in
    ESS.
    when emloyee applies for leave he may
    need to wait for aproval during
    that time he cannot access the 'leave
    overview' screen he will be
    facing run time error .
    because of this run time error system
    performance become very slow .
    please help me .i will give points for valid answers .
    :-Suneetha reddy

    Hi ,
    I am soory for late reply ,
    I changed the runtime parameter to 1200 and monitaring the system .
    Now there is no Run time error but still Leave overview is taking time .
    Please help
    Thanks,
    Sunitha

  • Display custom info type in ESS portal

    Hi all,
    I have got a requirement that i need to display the custom defined info type in ESS portal , that info type have three  text fields.
    Is it possible to do this using a standard configuration in ESS portal or do i need to do some  development?
    Please suggest..
    Thanks ,
    Gunja

    Hi,
    You have to do custom development in NWDS. Please check the similar thread
    Customer Infotype in ESS
    Thanks
    Santosh

Maybe you are looking for