Information message to Error Message  -HCM standard Leave Workflow

Hi ,
I am configuring leave management for a demo purpose.
The leave application workflow used is ws20000081.
There are few scenarios configured in system for  not allowing leave applications for  the employees .
Example:-paternity leave u2013 maximum days which employee can apply through one application is 3 working days
This validation is working fine as we directly using IT2001 application through tcode- PA30 .more than 3 days it giving an error message.
But issue is
When we are applying the leave through ws20000081, system is allowing more than 3 working days and allows a successful application. Then its allows a successful approval for employer. After approval system fails to update the data in system and forward the application to administrator where as in ideally system should not be allowing the employee for a successful application.
When we are applying the leave through ws20000081 and clicking on the u201Cchecku201D button system is giving the actual error message as an INFORMATION MESSAGE.
As it is an information message on ws20000081 application page, system is allowing successful application.
How can I change this information message as an error message u2013any STANDARD settings apart from  taking the access key and change it     (similar behavior as application as PA30)?
Regards
Thomas
Edited by: Thomas Padiyara on Jun 2, 2011 11:23 AM

Thomas,
The validation can be even done prior to the workflow called.  You may have to implement the BADI BADI - PT_GEN_REQ and inside the using the class - method IF_EX_PT_GEN_REQ~CHECK_IF_ACTOR_ABSENT can be used for the validation of this 3 days and generate an error message to portal.
Hope this helps...
Cheers,
Thomas.

Similar Messages

  • Standard Leave Workflow

    Hi,
      We are using a copy of standard leave workflow 12300111. It is working perfectly. But sometimes for few Pernrs the agents were not picked up correctly.
    I saw the BOR AAGENT and also the class CL_WFD_ADHOC_PROPERTY_DB but not able to decide on anything.
    I saw the Agents tab in the workflow container in SWIA it has only US value to it. If i check the GUID, that particular GUID does not have the Agent assigned to it instead it has only US value in the table SWDAAGNTS.
    The workflow in in Started status.
    Please let me know what could be the issue.
    Thanks,
    Sri

    Hi ,
    check for pernr if it has multiple users assigned / or relevant authorisations are provided.
    Hope this helps.
    If not , provide more information , so that the community can contribute further.
    Best Regards
    Saujanya

  • HCM ESS Leave request : Intimation mail or Approval mail is not going

    Dear Experts,
    We have an Ep 7.0 system with ECC 6.0  is connected at backend. Currently we have a requirement : whenever an employee will request for a leave from ESS(EP 7.0) the approver should get an intimation mail and similarly when the request is apporved or rejected the requestor should get a mail about this.
    Now we have already a customize workflow for this leave request process. We have checked and scheduled background work procesess for the following reports
    1. RPTARQEMAIL
    2. RPTARQPOST
    3. RSWWTHEX
    4. RSWWERRE
    5. RSWWCLEAR
    6. RSWWCOND
    Please note that an approval mail is being sent to the applicant after approval of his leave. We need to make the following adjustments:
    1. The body of the approval mail that is being sent now needs to be changed and must include details of the leave request. How to do this?
    2. No intimation mail is being sent to approver after a leave request has been raised. As per RPTARQEMAIL approver should also get notified about the leave request.
    3. Apart from RPTARQEMAIL if we use the work item "SEND MAIL" in the workflow to implement this, we are getting the approval mail and notification mail in the inbox of our business workspace(SBWP). However the mail is not being redirected to the mail id maintained i.e in outlook inbox.
    Regards
    Partha

    My sincere advise is to do some thing like this,
    1. First take a copy of the standard leave workflow template WS12300111
    2.Create a ZBOR (in SWO1 txn) in which you define a method which handles mail sending process by using the standard SAP FM SO_DOCUMENT_SEND_API1
    3. Create a Text element in SO10 transaction.After this as I said you will creating a ZBOR-method in that itself you determine the agents and email addresses before calling the FM 
        SO_DOCUMENT_SEND_API1.
    4. To get the lines of the mail content (from SO10) you hvae to use the FM READ_TEXT
    if the above is done then fixing your issues is a simple thing
    Q1. You need to change the content of the mail type.
    A1. You can chage the mail content in the TExt element.
    Q2.No intimation mail is being sent to approver after a leave request has been raised?
    A2. You hvae two options over here either you can make use of the tab notification of the decision step or by using the program RSWUWFML2 you can schedule a background job, for help see the Documentation of the rep.
    Q3.Mail Sedning to outlook
    A3. SCOT settings, SMTP---> Internet ---> addresses ---> maintain the address or by using the SWNCONFIG you can even aceheive this.

  • Validation in standard leave program - SAPMWS20000081H

    Hi,
    We are trying to implement standard leave workflow(WS20000081) .
    we are using badi( PT_ABS_ATT_COUNTRY ) and exit ( HRPTIM06 ) for our validations.
    In that program ,we have a Note(Reason for leave),we need to validate in such a way that it must be made mandatory.
    Kindly let me know how to achieve the above scenario?

    Hi experts,
    Kindly help me.  Me stuff up only in this validation.

  • HELP NEEDED: ESS Sick Leave Workflow

    Hi ESS/MSS Gurus,
    Good day!
    I am a newbie workflow consultant currently working on enabling ESS-MSS for a client. In summary, here are their requirements:
    1. Leave Requests and Clock In/Out Corrections - Upon initiation of employee request, the work item is sent to the manager for approval. Regardless of the decision (either approve or reject), the employee will be notified via an email notification
    2. Sick Leave Requests - upon initiation of employee request, the work item is sent to the company doctor for approval. Regardless of the decision (either approve or reject), both the employee and his/her immediate manager will be notified via an email notification
    Here are some details regarding how I went about it:
    1. Leave Requests and Clock In/Out Corrections - Created a copy of workflow WS12300111 and included send mail steps after TS12300097 (Approval Process) to notify the work item initiators.
    2. Sick Leave Request - Created a copy of workflow WS12300111 and included send mail steps after TS12300097 (Approval Process). The approval process is pointed to the Position Company Doctor. After which a step was inserted after the approval process which uses a customized method (using FM SWX_GET_MANAGER) to determine the employee's manager. Then send mail steps are executed for the employee and the manager
    3. Clock Corrections and Sick Leave/Leave Requests belong to the same Rule Group
    During testing in our sandbox client I was able to successfully test all of the workflows. However, when I migrated the changes into our pseudo-QA system, I cannot launch the Sick Leave workflow from ESS. I encountered the following errors in PTARQ (standard leave request and clock in/out correction are ok):
    1. Scenario 1: applied leave coincides with the working time of the employee
       "Document created with information: P2 848: Absence encompasses planned work time
    2. Scenario 2: when only the total nmber of hours is entered for the applied sick leave date
       "No document created: HRTIM_ABS_REQ 094 Indentical clock times were adjusted, Check the entries"
    3. Scenario 3: applied leavedoues not coincide with the working time
       "Document created with warning" HRTIM00BLPRETRO 001 Time entry triggers retroactive accounting in payroll"
    For all cases, no work item was created in the back end.
    I would like to tap unto your wealth of knowledge and experience on how to address such errors. I need to determine if this is a misstep in the workflow, HCM, or ESS/MSS configuration to better isolate the errors.
    Your immediate response is highly appreciated.
    Regards,

    you dont need a custom WF first of all, You can directly use standard one cause we have a standard mail program
    called rptarqemail
    ie
    The mails will be directly triggered to the mail address once you run rptarqemail.
    Please check if you are running the report using the option since last
    run. The procedure is usually this :
    1. Create a Leave Request
    2. Execute the report RPTARQEMAIL.
    3. Approve the Leave Request.
    4. Execute the report RPTARQPOST.
    5. Execute the report RPTARQEMAIL.
    Now to determine different approvers for different types of leave you can use the option of badi PT_GEN_REQ
    IF_EX_PT_GEN_REQ~FIND_RESP_AND_DEFAULT_NEXT_PRC.
    Method FIND_RESP_AND_DEFAULT_NEXT_PRC of badi
    PT_GET_REQ  might be utilised here.
    Please have a look at the  method
    CL_PT_REQ_SEARCH_NEXT_P~SEARCH_NEXT_PROCESSOR.
    If you are implementing the badi then make sure you copy all the methods
    and implement the one, as mentioned.
    also note that
    Standard Leave request application offers the following options to
    determine the Next agent. This specifies whether and how the next agent
    of a leave request is to be determined.
    Last Agent: The system reads from the database the last agent to have
    had requests from this employee.
    Line Manager: The system uses the organizational model to determine the
    agent.
    Last Agent, Then Line Manager: If no agent is entered in the database,
    the system then uses the organizational model to determine the agent.
    No Calculation/Manual Entry: The system does not determine a next agent.
    Employees can enter an agent manually.
    However if the customer has a different requirement, the BADI PT_GET_REQ
    method FIND_RESP_AND_DEFAULT_NEXT_PRC is provided for this purpose.
    the message you get is correct and its a information message which will not stop leave request, they depend upon customisation which can be hidden too
    check here
    http://wiki.sdn.sap.com/wiki/display/ERPHCM/LeaveRequestCustom+Messages

  • Leave Workflow not getting Completed

    Hi,
    I have a custom leave workflow which is a copy of the standard one. I added two more levels for the workflow and that's the change that I made to this. Now the issue which I am facing is that even after the Final approver approves, the leave, the workflow is not getting completed . The workitem is getting completed and the data is saved in the infotype. What could be the reason for workflow still in Started status? Please do help.
    Regards,
    Jubish

    Hi AK,
    But, what is the terminating event for Leave? Could you please tell that? The thing is that, if the terminating event is not working fine, then the same issue will be there in for standard leave workflow also right?
    Regards,
    Jubish

  • Leave Workflow escalation

    Hi Experts
    My client is having one requirement regarding the escalations of the leave workflow after the certain period of time. I am using the standard leave workflow WS12300111.
    For e.g.
    Employee applies the leave for 27.02.2009- 28.02.2009 and his reporting officer will not take any action till 26.02.2009 so, automatically the leave request should escalate to the managers' manager for approval.
    Please help me in this regard
    Thanks & Best Regards
    Sheetal Gupta

    Dear Kumar
    Can you please let me know the point on which I can fix the no. of days in WF.
    Thanks & Best Regards
    Sheetal Gupta

  • Change Information message F5073 in Error

    it is with refernce to cash discount to customer through t code F-28. as the discount days elapsed, system allows cash discount but an information message is poped UP " Cash Discount relevant amount is zero;check entry" if we press enter button, system allows cash discount even customer is not entitled to discount
    my concern is to change above message F5073 from information to Error so that discount should not be granted if days has been elapsed
    in SPRO i changed the status of F5073 in error in OBMSG and OBA5 but in front end, system still allow discount if days elapsed
    Dear cheetas-----can you help to resolve the issue ????????

    Hi Sajida,
    I am not getting the information message "Cash Discount relevant amount is zero;check entry" . I am also facing the same problem that cash discount is allowed after the dicount days elapsed.
    I am not geeting the message also "Cash Discount relevant amount is zero;check entry"
    For changing the message you need to do the steps:
    1.GOTO: OBA5
    2.Press F1 on Standard Colum
    (Using function module CUSTOMIZED_MESSAGE the user can be given the option of setting the type of a message (S, I, W, E, A). To this end, the system needs a standard type (default value) with which to output the message if the customer does not make any individual settings. When the function module is called up, this standard type is transferred in parameter I_DTYPE and also noted in this field for documentation purposes so that it can be displayed in view V_T100C.)
    3. Double click on CUSTOMIZED_MESSAGE
    4. Again double click on table: VC_T100S
    5. Here Add message no F5 073 and also give Error "E" in allowed column and "E" in Standard column
    6. Save and come out of the screen
    7. Again go to OBA5 and now add the same message no here with E and E  ( in standard column E will come by default if it is not in E then it will not control.
    Hope this helps you.
    If you control this issue azimshaik at google
    Regards,
    Azeem Shaik

  • Change information message to error in PS when PO created against material

    In CJ20N I am changing a material that has a PO already created and all I am getting is an information message.  I want this to be an error.  Where would I configure this?

    Hi Karen
    I am not sure if your message exists there or not but give it a try, go to tcode OMCQ search for your message and change the system message category to "E".
    regrds
    Yogesh

  • "Error reading reporting point information" message no. RM111

    Hello friends,
    I am doing the Reporting point backflush for a material and getting the error "Error reading reporting point information", message no. RM111.
    i have given the milestone confirmation for the last operation in the rate routing for that material.
    Even in REM Profile, Mandatory Reporting time backflush is activated.
    In the production version of that material i have given the group of rate routing created for that material in Rate Routing field.
    I have created the product cost collector for that material and production version. With costing lot size 1, even i have calculated the cost for that product cost collector. Though regarding costing couple of errors came, than also i saved it.
    I am not sure whether system has created the reporting point while creating the product cost collector.How to check it?
    Now for that material we have created the planned order.
    Now when i am doing the backflush in MFBF t.c  by giving the material code,plant and production version, system is throwing the error " Error reading reporting point information.
    Thanks and Regards,
    Jitendra

    Hello siva,
    i executed the transaction MF30 as suggested by you, there system displayed following costing errors:
    "No control record for Activity type PLVD/1301/ASBY in version 000 / 2010 activity planning/qty planning
    Message no. KL023
    Diagnosis
    No activity planning or quantity planning has been carried out for Activity type PLVD/1301/ASBY in version 000 and fiscal year 2010.
    Procedure
    Activity Type Planning for cost centers or
    Planning Quantities and Prices for business processes.
    Even system is not picking the component prices, system throwing the error NO price could be determined for the material and  batch so and so.
    We are using the Preliminary cost estinmate.
    is because of this system is not able to create reporting point in product cost collector?
    Please Replay

  • Information-, Warning- or Error Message

    I am currently working on an application to be used in windows environment, but we are of course developing it in java.
    My problem is that I am not sure what type of message I should display to the user when they enter invalid information. I have always thought this would be a warning message, but according to windows guidelines a warning message requires the user to make a decision AND maybe provide some further input.
    It also states that an error message should be a critical error that requires further user actions before work can proceed. I guess that work cannot proceed until my user, for instance enters a correct zip code, but it still feels like it is not a critical error.
    Information messages are used for the result of a user action.
    I am confused, anyone have any tips?
    //erik

    G'day,
    If you have an error because of data validation, then an error message is appropriate. If you had an error which could be ignored but you needed confirmation from the user, then you could use a warning message with an Ok, Cancel on it.
    For example, lets say you have a product maintenance screen, in the screen the product code must be unique. The user can also choose a image which should point to a valid image, but is not going to stop your system from working.
    Based on business rules, the Product Code must be unique, therefore an error message must be displayed if its not. Action cannot continue until the problem is corrected. The image should point to a valid file so if it doesn't then display a warning message to confirm that you wish to save/exit while its incorrect.
    Hope that clears things up.
    James.

  • Handling error & messages in standard forms

    Hi all,
    I'm customizing Oracle HR through CUSTOM.pll and I need to handle some messages in standard forms.
    I have tried using ON-MESSAGE and ON-ERROR trigger, but I can't substitute the "not user-friendly" "FRM-40150: Cannot update record" with anything else!
    Is it possible to do this??
    In that case....should someone show me some examples??
    Thx a lot.
    If needed I can attach my code to help you..
    Thx
    Jacopo

    Whatever you do, never change the message level, it's just like hiding behind your finger, you'll be in denial of the error, but the error will be there...
    the best way is to handle them in on-error triggers, trap the error number and use your own message, you can create a user defined error and associate it with the error number of a choice.
    search the online help of the forms builder for user defined errors. there is a very clear example there.
    Tony

  • I have changed my PC, deactivated Adobe Acrobat and tried to load on new PC. Got to registration and get the message " A problem was encountered while trying to send information over internet" this is 8 standard

    I have changed my PC, deactivated Adobe Acrobat and tried to load on new PC. Got to registration and get the message " A problem was encountered while trying to send information over internet" this is 8 standard
    When I try to use it to make pdf files I get the message "Missing PDFMaker files
    It is a proper copy with serial numbers

    Moving this discussion to the Acrobat Installation & Update Issues forum.

  • Suppress Information message during submit a standard program

    Hi experts,
    I am calling standard program RCATSCO from a report using following code:
    SUBMIT rcatstco WITH p_pernr  IN s_pernr
                      WITH p_date   IN lt_r_date
                      WITH p_belnr  IN s_belnr
                      WITH s_rkdauf IN s_rkdauf
                      WITH p_budat EQ sy-datum
                      WITH p_warn   EQ gc_x
                      EXPORTING LIST TO MEMORY
                      AND RETURN.
    When all data are already transferred to controlling this standard program displays a popup information message 'No data for transfer'. I need to suppress this popup and continue execution of the report. Please help.
    Thanks,
    Arnab

    One option is to do that check yourself and bypass submitting the program if there is no data to transfer. Another option is to submit the program via job. That way the the message will go to the job log. I see that you are using the option exporting list to memory, which means you want to read the spool after the program is executed. With the "via job" option, you may need to monitor the status of the job for completion and then read its spool.

  • SD: Change the Information Message to Error V1-406 Material Marked for Del

    How can we change or supress the infromation message, I am using the exit MV45AFZB already, but the information message is not suppressed.
    I have tried to look for this on the forum, but I havent found the right answer.
    Best regards,
    Hamid

    Hi Hamid
    Why do you want to suppress or change this message? Business Requirment ??? - This Error message ensures that such of those Parts which are not to be used any further and have been marked for deletion are not forming part of Order management.
    If you still want to, then remove the deletion indicator in the material master.
    just for information - following SAP std programs check for validations of this requirement and you are not supposed to change this condition.
    FV45CF0C_CVBAP_FUSSZEILE_PRUEF
    FV45PF0M_MAAPV_SELECT
    FV45PF0M_MAEPV_SELECT
    FV45PF0M_MAKT_SELECT
    <b>The above 4 programs are meant for your (& forum members) information & all cautioned from tampering these std programs</b>.
    cheers
    nandu
    FV45PF0M_MT61D_SELECT

Maybe you are looking for