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

Similar Messages

  • Workflow changing the status based some columns value

    OOB workflow SP  designer 2013
    The workflow purpose is change the status columns from
    COMPLETE to IN PROGRESS or from
    IN PROGRESS to COMPLETE according some columns value.. And if the change is from
    IN PROGRESS to COMPLETE
    there will be change in some columns like
    If alertSOP Date <= today then change the status (Columns value) from Complete to In Progress and send email to the manager (the manager email address is a column (Manager Email)
    Else pause until the alert date=Today()
    If the status (columns) = in progress send Remainder email every 10 days
    If the status change from in progress to
    Complete (BY MANAGER MANUALLY) then
     last renewed Date =TODAY()
    Valid to Review=TODAY() + 4 MONTH
     Alert  Date=today() + 5 month
    and  Due Date=today() + 6 months
    AND START THE WORKFLOW AFTER UPDATING THIS COLUMNS FOR NEXT cycle
    SharePoint List(http://server/site/..) LIST ITEMS
    Department
    Contractor
    Division
    Manager Email
    Contractor last renewed Date
    Contractor Valid to Review
    Alert SOPReview
    DueDate Review
    Status
    Workflow Status
    ABC
    JONAH
    10
    [email protected]
    01/01/2014
    05/06/2014
    5/07/2014
    5/08/2014
    COMPLETE
    paused 
    DEF
    SMITH
    20
    [email protected]
    01/01/2014
    02/03/2014
    2/28/2014
    3/20/2014
    INPROGRESS
    INPROGRESS
    Note:
    The status is changed manually by manager from IN PROGRESS TO COMPLETE
    The status from COMPLETE to IN PROGRESS is changed by event or Triggers  (based the alert date) 

    The First Part are coded as follow
    (The workflow purpose is change the status columns from COMPLETE to IN
    PROGRESS or fromIN PROGRESS to COMPLETE according
    some columns value.. And if the change is from IN
    PROGRESSto COMPLETE there
    will be change in some columns like
    If alertSOP Date <= today then change the status (Columns value) from Complete to In Progress and send email to the manager (the manager email address is a column (Manager Email)
    Else pause until the alert date=Today()
    If the status (columns) = in progress send
    Reminder email every 10 days)
    Note:
    The first if Block work as expected
    the second if block generate error.. Internal States Canceled
    RequestorId: 3b262286-66e8-5f9f-09f8-3b09c5be0ebc. Details: System.ApplicationException: HTTP 400 {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["1"],"SPClientServiceRequestDuration":["1997"],"SPRequestGuid":["3b262286-66e8-5f9f-09f8-3b09c5be0ebc"],"request-id":["3b262286-66e8-5f9f-09f8-3b09c5be0ebc"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;
    RequireReadOnly"],"MicrosoftSharePointTeamServices":["15.0.0.4420"],"Cache-Control":["max-age=0, private"],"Date":["Tue, 25 Mar 2014 21:25:35 GMT"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]} at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext
    context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager
    bookmarkManager, Location resultLocation)

  • Cancelling a absence request haas not changed the status by the user

    Hi experts,
    An absence request has been cancelled,. Looking in Status Monitor, i will see that the reuest has been cancelled, but the user see the status stay on "Pendig For Approval". Normally the user will see the Absence Category set to Cancelled, but not "Pending For Approval". The reason is unknown to me. Thus i need your support.
    Thanks in advance
    Mehdi

    Just to confirm my understanding, are you saying that:
    1) Employee requested an Absence through SSHR Leave of Absence
    2) An administrator queried the absence in the Workflow Status Monitor and Cancelled it
    3) Now that absence is showing to the Employee as 'Pending Approval'
    Is that right? You mention 'Normally the user will see...'. When you say 'normally' what is the behaviour you expect?
    If I've understood you correct this is the behaviour I would expect: cancelling a workflow does not change the status from 'Pending For Approval' and it definitely does not change the Absence Category on the absence. Cancelling an absence via this route isn't really recommended because - as you are seeing - it gets stuck. It's best to get the approver to reject the absence instead.
    To remove this cancelled absence, take a look at these Oracle Support articles:
    Unable To Remove Cancelled Workflow Item Related To LOA Transaction [ID 1123714.1]
    How to Purge Obsolete Workflow Runtime Data (FNDWFPR) for HR Workflow Completed Processes [ID 237564.1]
    How to Run the HR Workflow Cleanup Process (HRWFDFCT) [ID 237524.1]

  • Sharepoint Designer - Two step List Workflow task item is not changing the status from not started to Complete

    Hi 
    Using SPD i am creating list workflow.
    Scenario: Employee submits a request . Task assign to manager. Manager can either approve/ reject. If approve then change the state column to "done". If rejected the state column to "Rejected".
    Problem is "Assign a to do item" is assigning the task to manager. But after manager approves the status in the task list not changed to "Completed". Still it is showing "Not started". I dont want to manually complete the task.
    Please help me for automatic process. 
    What i should do to change the status to "Complete" automatically after manager approval
    Regards
    Jhanani
    Janani.R

    Hi Janani,
    From your description, you would like to create an approval workflow for a list. When an employee submit a request to the list, an approval task should be assigned to manager, then manager could approve or reject the request. From the request list,
    we should be able to see the Approval task’s status.
    Not understand the reason of designing the workflow to two steps, an approval action should be enough from my understanding. For producing, I create a list named Request list, then customize it in InfoPath form to add a Request field for stating request
    content. Then add a workflow to list named Approval task, add the action of Start an approval process with administrator and make the workflow automatically start when item is added.
    The image below shows the status of Adding items, Approving and Rejecting. Please check if it could meet your requirement.
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Change the status of a Support Desk Message in Sol. Man.

    Hello,
    On the Solution manager system I have configured the service desk functionality. So end users are able to create support messages from the satellite systems as well on the solution manager system. For the confirmation of a proposed solution I want to use a workflow which asks the creator if the proposed solution is correct yes or no.
    Is there a BAPI or function which change the status of the support desk message? If so how does this BAPI or function work. An example would be great.
    Kind regards,
    Richard Meijn

    decveloped the custom rfc

  • While changing the status of content in Weblogic 10.3 programitically

    while changing the status of content in Weblogic 10.3 programitically is giving the error
    User is not authorized to check in the node.
         at com.bea.content.virtual.internal.server.bean.InternalWorkspaceOpsBean.handleWorkflowActions(InternalWorkspaceOpsBean.java:480)
         at com.bea.content.virtual.internal.server.bean.InternalWorkspaceOpsBean.internalCheckIn(InternalWorkspaceOpsBean.java:420)
         at com.bea.content.virtual.internal.server.bean.InternalWorkspaceOpsBean.checkIn(InternalWorkspaceOpsBean.java:343)
         at com.bea.content.virtual.internal.server.bean.WorkspaceOps_xe5vix_ELOImpl.checkIn(WorkspaceOps_xe5vix_ELOImpl.java:166)
         at com.bea.content.virtual.internal.WorkspaceOpsImpl.checkIn(WorkspaceOpsImpl.java:90)
         at com.bea.content.federated.internal.VersionManagerImpl.checkIn(VersionManagerImpl.java:239)
         at com.nab.portal.portlets.cmscontent.EndDateCMSContent.updateNodeStatus(EndDateCMSContent.java:243)
         at jsp_servlet._portlets._cmscontent.__sampletest._jspService(__sampletest.java:140)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.continueChainNoWrapper(PageFlowPageFilter.java:455)
         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.runPage(PageFlowPageFilter.java:432)
         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.doFilter(PageFlowPageFilter.java:284)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at com.bea.jsptools.servlet.PagedResultServiceFilter.doFilter(PagedResultServiceFilter.java:82)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:503)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:251)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
         at org.apache.beehive.netui.pageflow.faces.internal.PageFlowViewHandler.renderView(PageFlowViewHandler.java:203)
         at com.bea.portlet.adapter.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:77)
         at org.apache.beehive.netui.pageflow.faces.internal.PageFlowViewHandler.renderView(PageFlowViewHandler.java:203)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.continueChainNoWrapper(PageFlowPageFilter.java:455)
         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.runPage(PageFlowPageFilter.java:432)
         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.doFilter(PageFlowPageFilter.java:284)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at com.nab.portal.filter.UserSessionFilter.doFilter(UserSessionFilter.java:176)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at com.nab.portal.filter.CrossSiteScriptingFilter.doFilter(CrossSiteScriptingFilter.java:333)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at com.bea.portal.tools.servlet.http.HttpContextFilter.doFilter(HttpContextFilter.java:60)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at com.bea.jsptools.servlet.PagedResultServiceFilter.doFilter(PagedResultServiceFilter.java:82)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3502)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2186)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2092)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    the node is checke odut by annoymous user biut its not checked in the status from 1 to 2 is updated but it not updated to published or retired
    are there any Entreprise scoped roles which sholud be created to set the visitor entitlements on the content
    Please do reply asap
    Thanks
    Regards
    Rani
    Rani Bhatia

    hi
    while changing the sttaus of content in weblogic 10.3 programitcally
    i have written this code List nodeIds=null;
         INodeManager iNodeManager= ContentManagerFactory.getNodeManager();
              try {
              ID nodeId = new ID();
              nodeIds = new ArrayList();
                   linkNode =iNodeManager.getNode(ctx,fileName);
                   log.info("Linknode"+linkNode);
                   String Encodedpath= linkNode.getURLEncodedPath();
                   log.info("Encodedpath"+Encodedpath);
                   com.bea.content.ID nodeid= linkNode.getId();
                   nodeIds.add(nodeid);
              log.info(nodeid);;
                   String repoName = nodeid.getRepositoryName();
                   log.info("repoName"+repoName);
                        IVirtualRepositoryManager repoMgr = ContentManagerFactory.getVirtualRepositoryManager();
                        com.bea.content.federated. IVersionManager iversionManager= ContentManagerFactory.getVersionManager();
                        com.bea.content.federated.IWorkflowManager iWorkflowManager= ContentManagerFactory.getWorkflowManager();
                   if(linkNode!=null)
                        int i= linkNode.getWorkflowStatus();
                                  log.info("Workflow Status"+i);
                                  int j=linkNode.getLifeCycleStatus();
                                  log.info("Workflow Status"+j);
                                  linkNode.setLifeCycleStataus(5);
                                  linkNode.setWorkflowStatus(5);
                                  //iNodeManager.save(ctx, linkNode);
    iversionManager.checkOut(ctx, nodeid, version.getVersionId());                         com.bea.content.virtual.version.VersionableContent versionableContent1 = iversionManager.getVersion(ctx, nodeid, "1");
                             versionableContent1.setStatus(5);
                             iversionmanager.checkIn(ctx, nodeid, versionableContent1);
                             log.info("checkin");
                             b=true;
                        else
                             b=false;
                             log.info("Node already retired ");
              catch (AuthenticationException auex) {
                   log.error("WEB1013IF-3 getLinkNode" + auex.toString());               
              } catch (AuthorizationException authex) {
                   log.error("WEB1013IF-4 getLinkNode" + authex.toString());     
              }catch (RepositoryException repoEx) {
                   log.error("WEB1013IF-5 getLinkNode" + repoEx.toString());
              return b;
    by default annoymous user check out the node
    if for any logged in user which api has to be used eg if i have created the weblogic user how to set this user through api , which apis are used to set this user programmitically so that this user can check out the node and check in the node so that its status can be updated
    Thanks
    Regards
    Rani Bhatia
    Edited by: user10309975 on Jul 5, 2010 10:29 PM

  • Siebel Hangs up when changing the status of service request

    Hi,
    We are facing this typical problem since last 2 weeks. When closing the SR, CRM hangs for random(unable to detect a pattern till now) SRs.
    The steps we follow to an SR is:
    1. Enter the SR #
    2. Change the status to "resolved"
    3. Type the resolution in "resolution" text field and click on white space.
    4. A new row gets generated with status "unscheduled"
    5. Place a check mark near the newly generated row.
    6. Change the status of the SR to "closed"
    Now, some SRs get stuck at step 3. When clicking on white-space, CRM hangs.
    We've tried everything from clearing IE cache / temp / cookies / increasing temp file size (to 5000 in IE6 and 1024 MB in IE7)
    Even set-up a fresh system but no avail.
    Even changed the primary internet link to secondary one but no help.
    On top of that the SRs which make IE hang seem to be appearing randomly. Sometimes I can close 20 SRs at a stretch and sometimes 1-2 SRs get hanged every 4-5 SRs.
    Once in a while an error pops up: "The selected record has been modified by another user since it was retrieved. Please continue (SBL-DAT-00523)"
    No one else was working on the SR when such errors came.

    You can ave a runitme event or workflow triggered that can generate such behavior.
    First increase logging on your object manager (evtloglvl :) ) and look at any error message.
    Second assess with your development team what automation has been setup ranging from script, Business Services, workflow to assist you in troubleshooting.
    Best Regards
    Evtloglvl

  • How to change the status of test cases in Test Plan from Design to Ready using Excel VBA

    HI,
    How to change the status of test cases in Test Plan from Design to Ready using Excel VBA

    Thanks Florin,
    Your piece of code has worked alot, and it was very helpful in changing the Status of the Workitem to "READY" for all the Users fo the workitem.
    Points have been rewarded for your help.
    Process: We have acheived this using the "Work Item Exits", Usng "AFTER_EXECUTION" Method.
    Note: The Exit will be executed if "exit_cancelled"  statement is present/used in the work item method. if not it is not taking to the exit code. I'm unable to find the reason for it. Florin can u please explain this point.
    Please check the link for adding the code in Work Item Exits.
    http://wiki.sdn.sap.com/wiki/display/ABAP/ProgramExitsIn+Workflow
    Please find the Code:
    method IF_SWF_IFS_WORKITEM_EXIT~EVENT_RAISED.
    Get the context of the workitem
      me->wi_context = im_workitem_context.
    After execution of the workitem call the method AFTER_EXECUTION
      if im_event_name eq swrco_event_after_execution.
        me->after_execution( ).
      endif.
    endmethod.
    METHOD AFTER_EXECUTION.
    This method acts as the Event Handler for SWRCO_EVENT_AFTER_EXECUTION
      DATA: LCL_L_WID TYPE SWW_WIID,
            L_STATUS TYPE SWR_WISTAT-STATUS,
            L_NEW_STATUS  TYPE SWR_WISTAT,
            L_SWR_MESSAG  TYPE STANDARD TABLE OF SWR_MESSAG,
            L_SWR_MSTRUC  TYPE STANDARD TABLE OF SWR_MSTRUC.
    Get work item
      CALL METHOD WI_CONTEXT->GET_WORKITEM_ID
        RECEIVING
          RE_WORKITEM = LCL_L_WID.
      L_STATUS = 'READY'.
      CALL FUNCTION 'SAP_WAPI_SET_WORKITEM_STATUS'
        EXPORTING
          WORKITEM_ID    = LCL_L_WID
          STATUS         = L_STATUS
          USER           = SY-UNAME
          LANGUAGE       = SY-LANGU
          DO_COMMIT      = 'X'
        IMPORTING
          NEW_STATUS     = L_NEW_STATUS
         RETURN_CODE    = SY-SUBRC
        TABLES
          MESSAGE_LINES  = L_SWR_MESSAG
          MESSAGE_STRUCT = L_SWR_MSTRUC.
      IF SY-SUBRC EQ 0.
      ENDIF.
    ENDMETHOD.
    Thank You Once Again,
    Ajay Kumar Chippa

  • Trigger event even with Status change or status reason change

    Hi,
    My requirement is to trigger an event if there is a change in status reason. I am looking for the method which currently triggers an event if there is a change in status so that I can modify that. Any pointers please? If I was to do this with change in status which methods/events and classes handle this. I am working on workflows in E-recruitment (HR). many thanks for your help in advance.
    Andy

    Hi Andy - did you get any response to this or were able to figure out?  Our requirement is somewhat comparable (I think) in that when a Publication (of a Posting) gets 'Released', we want to send a couple of emails to various parties.  My intent is to simply create workflows to send the emails, but I cannot get any event to trigger, in order to in turn trigger my wfs.  A Publication is an infotype 5122 and I can probably react to the hrp5122 table entry being created/updated, but I would think there is a way via config instead??
    Keith

  • How to trigger event when changing user status?

    hi,
    I'm having problems in triggering my workflow.
    In CIC0, When a status of a service request is changed to 'solution provided' then after saving service request, it should send a notification mail. I'm using ZBUS200116 which is deligated to BUS2000116. I've created event 'change' in ZBUS200116 which is in the start events of my workflow.
    I've tried creating an action profile which uses my workflow. The action profile is attached to the transaction but still it doesn't trigger my workflow.
    i've checked other existing workflows which uses the same object type BUS2000116 or ZBUS200116. These workflows were triggered by 'created' and 'completed' events only. Other added events in ZBUS200116 like 'changed' is not triggered. How is this possible when ZBUS200116 is deligated to BUS2000116?
    Your response would be highly appreciated.
    Thanks in advance.

    hi juan
    so here we are,now i got complete understanding of what u r doing and why
    you know you need not have created that change event because it wont serve your purpose anyway
    the reason is that because the way process in your workflow is flowing ,it wont happen that way using change event
    you just follow these  steps:
    1, use created event in your workflow
    2. that way when your contract ios created in rpocess status the event will be triggered only because you are creating a transaction whatever may be the status,so in all such cases you should use event created.
    3. now coming to the point of change in status or documents in contract
    in this case using loop will put you in deadlock and you will only be haing the error in such case
    you use WAIT step instead ,inside it use wait using conditions out of every option
    there you give your condition as change in whatever status
    like if you are chaning the status from in process to some other status ,put that status inside the condition
    as soon as that conditioon is met ,the WAIT step will be executed,
    that way you will be able to trigger the change in status through thje workflow
    so thats the solution with the approach you are using
    there are many approaches you can follow in workflows ,so depending upon that you can follow the different worlkflow tools u have there.
    also remember when your wait step gets executed there is always the time lag of 20-25 minutes after which changes will be reflected
    hope it will solve ur probs
    best regards
    ashish

  • Milestone Error when changing the status of service request.

    Hi Expert.
    I got an issue where service request is displayed with an error "Item 10: Start and end dates must be identical for a milestone date".
    I took around 200 service requests and observed that in the change history, the response profile of the contract was changed. We also observed that whenever service request contain these errors, automatic change of status is not happening.
    Unfortunately I'm not able to reproduce this error in Quality system.
    Kindly advice on how these errors can be resolved and how these can be reproduced.
    Thanks in advance.

    You can ave a runitme event or workflow triggered that can generate such behavior.
    First increase logging on your object manager (evtloglvl :) ) and look at any error message.
    Second assess with your development team what automation has been setup ranging from script, Business Services, workflow to assist you in troubleshooting.
    Best Regards
    Evtloglvl

  • Authorisation to change document status

    Hello,
    I want to implement a document workflow. A certain user group (asigned to a certain authorisation) is allowed to change the status of a document to "in progress" (this is our own status value). Another group is allowed to assign the status "RELEASED". Is there any authorisation object or standard role that I can use to set up this process?
    Thanks for your answers.
    Best regards,
    Frank

    Hi Frank,
    Please chekc my Blog:
    Solman - Set Up Automatic Confirmation / Changing User Status of Messages using report: AI_SDK_SP_AUTO_CLOSE or AI_SDK_SP_AUTO_CLOSE_2
    Solman - Set Up Automatic Confirmation / Changing User Status of Messages using report: AI_SDK_SP_AUTO_CLOSE_2
    in case of charn:
    1459839:   CRM_SOCM_SERVICE_REPORT: no update on CRMD_ORDER  worklist
    Utility to Change the Status of Solution Manager Change Request Documents
    You can use program CRM_SOCM_SERVICE_REPORT to manually set the next status for a Change Document or Change Request in CHaRM, assuming you have documents that are in an inconsistent state and you cannot change them.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c049fc67-e131-2e10-c991-de6fdee9186b?QuickLink=index&overridelayout=true
    Also this pdf file saved in CHARM folder of my Home share
    Thanks
    regards,
    Vikram

  • Workflow Task Release Status

    Hi All.
    A quick questions. What's the purpose of workflow task release status?
    What's the impact if keep in "Not Release"
    Cheers

    Okay,
    I admit, a bit short on the explanations.
    But (I'm not on an active SAP environment right now, so everything I say, could be wrong, sorry if that seems the case, if not, then I should worry about trying to have a life outside of SAP   )
    When you press F1 on the the release status it is said, that these things have only administrative purposes and do not change the normal behaviour of the system.
    Kind regards, Rob Dielemans

  • Reprocess - Workflow in process status

    Hi All,
    I am working with Workflow support,
    I don't know How to reprocess Workflow with the status is IN process.
    I know TC SWPR is a reprocess with error status.
    Thanks & regards
    Subramani.

    Hello Tom,
    I've had quite a similar problem with the terminating event in a dialog while the workitem is locked.
    I came across the same SAPNote 831443, but it doesn't seem to tell the whole story there. As I found out, the status change (from "in work" to "complete") is just skipped over, while the workflow continues with processing, leaving a last workitem "in work" hanging out to dry when the whole process has already finished.
    Basically the problem is, or was, that a popup dialog was shown to the user after the processed the transaction, which held the lock open. I have found no logs, saying that there was a problem with a locked workitem, anyhow.
    At last I have found out, that basically there shouldn't be much coding between the <b>COMMIT WORK</b> statement and the coding that just ends the method with <b>END METHOD</b>. This kind of procedure does definitly apply to the newer Versions, as I didn't have any problems like this before. Mayhaps and only a guess is, that the unlock-operation was previously registered with a perform like PERFORM unlock_workitem ON COMMIT. or something similar. This defenitly has changed under the new releases.
    In your specific case I would recommend to register the event processing in the update task and end the workitem's method as soon, as possible. For example:
    CALL FUNCTION 'SWE_EVENT_CREATE' IN UPDATE TASK   ...
    If this still does not help, you could further disjoin the transaction processing from the event creation by adding
    STARTING NEW TASK
    IN BACKGROUND MODE
    or whatever the correct syntax was here. This will schedule another tRFC on the database commit, which then is defenitly be picked up by another work process of the application server, just right -- hopefully -- after the object's method has completed.
    If you're feeling good with this answers, or it least it gave you new ideas to look upon, please assign points as appropriate.
    Best wishes,
    Florin

  • How to set Changed_by field with User ID not by Workflow ID, when Status Update from Workflow

    Hi Frds,
    I am updating the Order Status from Workflow. So the Status update (or Order Changed) is save with Workflow ID. I need to insert UserID instead of workflow ID. Please help me out of this.
    Thanks
    Imran

    Hi Imran
    With the very few details available on your process, the workflow design and the "Order", all I can suggest is that:
    1) In your workflow definition, go to the step which sends the user decision, in the binding FROM the TASK TO the Workflow, set _ACTUAL_AGENT to a workflow container element , say DECISION_AGENT (of type SWHACTOR)
    2) Assuming that the next step in APPROVAL branch is setting of the status, go the task ID of that Step -> make it a dialog step (remove the Background Processing check) -> set it's agent assignment to general task
    3) Back in the workflow, set that STATUS SETTING step to Advance With Dialog under the details tab
    4) In the control tab of the same step, in the agents section, set agent as EXPRESSION and the value as &DECISION_AGENT&
    When a user approves the decision item, his ID will be stored in DECISION_AGENT
    The status set will execute immediately (because of "Advance with Dialog")  in the same session of approving as the user who approved is the same running this step now
    The status will be set by the ID of the Approver
    The above is hypothetical considering
    1) You do not have dynamic parallel processing
    2) Status setting happens immediately after the approval; as a first step in the approval branch
    3) The Decision Task does not has "Confirm End of Processing" checked.
    Regards,
    Modak

Maybe you are looking for