Error Handling in workitem---user decision step

HI Experts,
I have created work item through user decision step. In that decision i have given Approve & Reject Option
now when user click on Approve that i need to do some validation based on this i need to give error also at same time i dont want to complete that workflow...i want that after getting error user must recity that error and than come back again to inbox and execute that workitem... I tried it but i am not able to do this...can anybody pls provide the hint for this requirement.
Thanks & Regards,
Taran

Hi Pavan,
I am confused i your third point.
. In the Approved branch of the Decision step check for the condition , if it fails then raise the exception.that you have define in the Point 1. in the exception branch insert the logic so that the condition becomes true, after that step insert one more decision step.
how i 'll raise the raise the exception do i need to create and task or any other step.
also can you please explain below point in detail.
in the exception branch insert the logic so that the condition becomes true, after that step insert one more decision step.
also i am working into SAP CRM 2007 web UI environment.
Please advice.
Thanks,
Taran

Similar Messages

  • Cancel and keep workitem in ready state in user decision step

    Hi,
    In a user decision step,there is a default option 'Cancel and keep the work item'.
    Now clicking on this option, the workitem goes into "Inprogress state"
    whereas i want to keep the workitem in "ready state"  after i click on the option 'Cancel and keep the work item'.
    I am trying to modify the Process method of Decision Object type to incorporate this funcationality by using FM "SAP_WAPI_PUT_BACK_WORKITEM.
    but im getting the error that this FM cannot be used at runtime.
    Place where im trying to call this FM:
    After the FM'SWU_PROCESS_MANUEL_DECISION'
    I am getting the value of RESULT.
    If result is SPACE or sy-subrc is not 00 then i am calling this Fm which takes Wi_id of the userdecision as input.
    Kindly help
    Regards

    Hi,
    Let me ask you this. Why you need to have this in "Ready" state, Not in "IN PROCESS" state. Anyway, the witem is still there in the user's inbox, and if you have any deadline monitoring, then this is also taken care with "Cancel and keep xxxx". So, i think, functionally you'll still be better with the existing functionality.
    And, with all this, if you are still trying to change, then i think it's NOT possible. If i understand correctly, you are trying to use the FM "SAP_WAPI_PUT_BACK_WORKITEM" within the PROCESS method. And, if you understood the functionality of how this works, you are trying to set the status of the SAME witem for which you are executing the PROCESS method.
    THe way i understand the behind-the-scenes process, once you make a decision and save, this method is the one which in turn sets the witem status. And within that, you CANNOT capture the status as it is yet to be posted to the Witem tables.
    Probably, after this decision step, use a different background task with the above FM to set the witem status to "Ready", BUT NOT IN THE SAME METHOD of PROCESS.
    Also, it's not advisable to change this std. method.
    Hope this helps you. Reply,if you need more info.
    venu

  • Can we display custom error message in user decision step screen.

    Hi,
    My requirement is to display error message when approver selects reject button in user decision step.
    based on some condition i need to display error message in user decision screen when approver tries to
    reject .
    Please help
    Thanks,
    Phani

    Hi ibrahim,
    Thanks for your Replay.
    steps
    1. cretae global class with interface  IF_SWF_IFS_WORKITEM_EXIT.
    2. cretae Event with importing parameter.
    where i need to call EVENT_RAISED method ,do inned to call that method in
    IF_SWF_IFS_WORKITEM_EXIT ?
    how  SWRCO_EVENT_AFTER_EXECUTION value is passed to method EVENT_RAISED ?
    Thanks,
    phani

  • Container variables in User decision Step in BPM

    Hello,
    I am using User decision Step in BPM.
    When i use only text in "Title for Display" the BPM is activated successfully and Status in SXI_CACHE also shows 0.
    If I use container variables in "Title for Display" the BPM is activated successfully but status in SXI_CACHE shows 99.
    It shows the below error
    "Problem updating an integration process with object ID 073AF2C620F43E839B2903344DEE29BB. Symbol 'CE/KO' expected at position 1 in expression ''
    Please suggest.
    Thanks,
    Shabari

    Hi Shabari, did you follow the steps for declaration of variables as in [SAP help for user decisions|http://help.sap.com/saphelp_nwpi71/helpdata/en/42/c2a19fb4511d65e10000000a1553f6/content.htm]? How did you define your variable?
    Maybe discussion [in this thread|BPM activation Error in SXI_cache; can help, it is unanswered though.
    Regards, Martin

  • Link in User Decision step not showing correctly in UWL

    Hi SAP Experts,
    I have a requirement to add a link in a user decision step, this link triggers a custom webdynpro for additional input. When I access the workitem from Business Workplace, the link is showing fine. But when I execute the workitem in UWL, the link is not displayed, instead the code is shown (<a>...</a>). Please advise on what I should do to have the link working. Thanks in advance.

    Hi,
    This same thing was just recently discussed. I just cannot find the thread anymore (well, in that thread there was not really any solution). Basically the hyperlinks in work item do not seem to work in UWL as they should. I don't know if there are any way to make them work. My suggestion is to not use the hyperlink at all and replace that with an action (=button) to the task in the UWL. This can be achieve quite easily by simple XML configuration in portal. If you have worked with UWL this should be quite straightforward for you, or if there is a consultant at the site, who is familiar with UWL, this should be simple for him/her.
    Regards,
    Karri

  • Looping a single branch in User Decision Step

    Hi All,
    Can anyone tell me is looping possible for a single branch in user decision step in a workflow?
    If yes, How?
    I want like to loop the step cancel and keep workitem inbox.
    Whenever the user clicks cancel and keep workitem in inbox in a user decision and again executes the WI i would like the workflow to start execution from the step just above the user decision step, i.e; Display PR.
    This is my requirement. Tell me how can i implement it?
    Thanks,
    Raj

    Hi,
    instead of doing so, you could try to enter that method as "secondary method" or "before method" within the tab-strip "Methods".
    If you used your own coding for a decision, you could enable the exception 8015 of the method's result, which is the cancel-button. If you did so, you can enable that outcome in the workflow-activity's definition.
    Best wishes,
    Florin

  • User Decision Step in BPM - PI 7.1

    Hi All,
    I have posted a wiki for User Decision step in BPM in PI 7.1, Please go through it and post your queries, suggestions and comments here.
    The link for same is under:
    Part1 - https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/userDecisionstepinSAPPI7.1-Part+I
    Part2 - https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/userDecisionstepinSAPPI7.1-Part+II
    Regards,
    Sachin

    Hi Sachin,
    Nice job,
    During my practice on this scenario. I have got an error please kindly guide me on this, may this error also clear for the others
    *I got an error on SXI_MONITOR as:*
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="BPE_ADAPTER">UNKNOWN_MESSAGE</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>No object type found for the message. Check that the corresponding process is activated</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    The trace of the error as:
    <Trace level="1" type="B" name="CL_XMS_PLSRV_CALL_BPE-ENTER_PLSRV">
      <Trace level="1" type="T">could not create BPE proxy for message, no XML object definition found for message 72485F6BFC78416A29EEE3EE10D09BCE</Trace>
      </Trace>
      </Trace>
      <Trace level="1" type="System_Error">Error exception return from pipeline processing!</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />
    Please kindly guide me on this, Is the message has to validate at sender agreement? if not where is the error I am doing?

  • User Decision step- Upon reject, auto-popup text for reason

    In a user decision step, when the user clicks the reject button, open text for rejection reason within the workitem.
    i have done the following
    1) Create a new step
    2) Create a task based on SOFM.CREATE
    3) Binded  WIOBJECT_ID => (append table) ADHOCOBJECTS
    It works fine, when the user clicks the reject button a new work item with the reason for rejection lands in the user inbox, which when clicked brings up the doc.
    I want to make it seamless for the user where as soon as the reject button is clicked, the document <b>should open right away</b> without a new work item in the inbox
    Any help will be greatly appreciated

    Hi
    If you are using the portal/UWL then search the blogs for a solution otherwise give this a try, in your step definition for the 2 steps, go to the Details tab and tick 'Advance with dialog', this will work if you execute from the business workplace.
    Good Luck!
    Ravi

  • Need Help on User decision step in BPM

    Hi All,
    I have a requirement to design the user to to system interaction in a partiular scenario.  I am trying to use the User decision step in BPM available in PI 7.1 server. I have used the User decision step and filled all the parametes as given in the sap documentation. When I am trying to execute the scenario, The outbound process is succesful but stops at the BPM workflow at the User decision step with the message (No Agent ready) .
    Can anybody help me in solving this issue.
    Thanks in advance,
    Kalpana

    Hi Shabarish and Swarup,
    I have defined the relevant user in  the Integration directory , also made sure that the user entered is defined on the integration server and there are not restrictions on the defined user. The workflow log is as follows:
    Workflow              File2File_BPM1
    Workflow instance     File2File_BPM1 http://File2File_BPMdemo
    Instance number       000000001046
    Start date            30.12.2008     Started by            WF-BATCH
    Start time            11:33:36       Current status        In Process
    View: Workflow chronicle
    Error       St Task                                          Result                                   Date       Time     Processing time
    Error Agent                     Executed Action                          Date       Time     Object               Object Name                    Object 2             Object name 2                  User Context
    File2File_BPM1 http://File2File_BPMdemo       Workflow started                         30.12.2008 11:33:36               -1s
    WF-BATCH                  Start message received                   30.12.2008 11:33:36 MIAB_BPM_OB2 / http: C532A7AB4D284B9011C0B0C7F8AFB                                                      WF-BATCH
    WF-BATCH                  Workflow started                         30.12.2008 11:33:36                                                                                WF-BATCH
    WF-BATCH                  Events Dispatcher Active                 30.12.2008 11:45:36 MIAB_BPM_OB2 / http: 597B946347C148AD03988B5D8BE2C                                                      WF-BATCH
    WF-BATCH                  Events Dispatcher Active                 30.12.2008 11:45:37 MIAB_BPM_OB1 / http: 6E0E09EE977E4F333D02DDDAE9A52                                                      WF-BATCH
    WF-BATCH                  Events Dispatcher Active                 30.12.2008 13:48:07 MIAB_BPM_OB2 / http: 9F5491FD9BC642E50486A6FED89DA                                                      WF-BATCH
    WF-BATCH                  Events Dispatcher Active                 30.12.2008 13:48:07 MIAB_BPM_OB1 / http: 1AE5BB06D72341AD01F8C45E6AA7E                                                      WF-BATCH
    WF-BATCH                  Events Dispatcher Active                 02.01.2009 05:34:58 MIAB_BPM_OB2 / http: CD698CDE5606436811BAB330011AF                                                      WF-BATCH
    WF-BATCH                  Events Dispatcher Active                 02.01.2009 05:34:59 MIAB_BPM_OB1 / http: 2D82C00C16E0447F1DF3B133470AD                                                      WF-BATCH
    'Good'{TYPE=SWFXST_STRING}'BAD'{TYPE=SWFXST                                           30.12.2008 11:33:37                0s         1046
    WF-BATCH                  Dialog work item created                 30.12.2008 11:33:37                                                                                WF-BATCH
    WF-BATCH                    EVALUATE_AGENT_VIA_EXPESSION           30.12.2008 11:33:37                                                                                WF-BATCH
    I hope this can help you in identifying the error.
    Thank you,
    Kalpana

  • "You can also" link in UWL work item when using user decision step in workflow

    Hi,
    Just want to check if anybody has tried adding links to this section in the UWL when using user decision step? I need to pass some custom links which will be calling some webdynpro applications and backend transactions. I have read somewhere that Ineed to modify the XML file but don' t know how the next steps once I have defined (i.e. how to handle those links).
    Thanks in advance.
    Rammel

    Hi Rammel
    I hope you are keeping well and many thanks for using the SAP Discussion Forums .
    Based upon your scenario you mentioned that:
    You want to add links to the "You Can Also" section in the UWL with user decision steps
    In an effort to pass custom links (calling web dynpro) applications.
    You wish to know how to modify the XML
    Ok now based upon the scenario there are two key points regarding XML files and efforts to change them.
    Remember that XML in terms of the UWL follow the notion of precedence. Now that means that once you make a change to an XML file you need to re-upload it to realize changes. To re-upload an XML file and realized changes you need to do so with a "High" or "Very High" priority and also ensure that the UWL Cache has been cleared of the UWL Service restarted so changes can be realized.
    The second key point is to ensure that you backup all current XML files before making any changes so you can easily revert those changes if required.
    Now reverting back to your query, the XML files and the "You Can Also" section. Kindly see the documentation outlined below as here you are going to make changes to the I-View configuration:
    Configuring the UWL
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a3461636-0301-0010-3787-978f5ac8bd45?overridelayout=t…
    UWL Content Configuration
    UWL Content Configuration - Configuring the Universal Worklist - SAP Library
    Kindly update me as per your findings.
    Kind Regards & All The Best
    Troy - Enterprise Portal Support Engineer

  • Problem in executing User Decision Step in Background

    Hi Gurus,
        I have written a method which is called in background activity step to execute a User decision step. I have used SAP_WAPI_DECISION_COMPLETE fm and have given the value for parameters like Workitem ID , Decision Key.
    So the problem is when it is being run in foreground its working fine.
    But when it is in background there is no change in the status of user decision step.
    Kindly give inputs.
    Thanks & Regards
    Narin Nandivada

    Sorry Narin,
    I didn`t get your solution. I`m having the same problem.
    I`m trying to call the FM SAP_WAPI_DECISION_COMPLETE in background and it doesn`t works, however, if I execute it as a foreground, the WI is executed fine.
    I don`t have any deadline(time limit) in my WI, even that it doesn`t execute my WI.
    Which FM are you calling before the MF SAP_WAPI_DECISION_COMPLETE to get the DESTINATION string?
    Do you do any commit in addition to the DO_COMMIT parameter?
    I am grateful.
    Zorba

  • User decision step agent issue

    Hi All
    In my WF I get a user profile back from a method that check a ZTABLE for the correct user to receive mail and a user decision work item .
    The mail step is working correctly and sending mail to the user (as per the parameter returned from the method)
    The problem is that user decision step does not sent a workitem to the correct user .
    Any ideas on what the problem might be ?
    In the email step I bind to &ADDRESSSTRINGS&.Not sure what the correct binding is for the user decision step?
    Many thks
    Gerhard

    Click workflow  log (use any of the log transactions, swi1, swi2_freq swi6 etc)
    click list with technical details, shift+F9
    find the step, click on it and tick the tab container.
    But if you could just answer my previous question about how you are sending the mail, because if you directly use email address then it is of course impossible to use that as agent assignment for the user decision.
    A user decision is ultimately sent to a user id
    Kind regards, Rob Dielemans

  • User decision step execution from UWL

    Hi,
         I copied the standard user decision step and added my own text in that task. My requirement is i have to  execute that step from UWL . i need to configure this task in SWFVISU, so that it will appear in UWL.  My question is what  are the parameters i need to maintain in swfvisu TXn . because this is not a webdynpro application or Bsp Application.

    Please check this SAP help [document|http://help.sap.com/erp2005_ehp_04/helpdata/EN/44/b7047434d91578e10000000a114a6b/content.htm]
    In SWFVISU the two mandatory parameters that you need to consider are
    APPLICATION -
    >  <application name>
    PAGE_ID     -
    > page1.htm/ default.htm.
    <ItemType name="uwl.task.webflow.TS<XXXXXXXX>.SAP_ECC" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchBSP" executionMode="default">
          <ItemTypeCriteria systemId="SAP_ECC" externalType="<XXXXXXXX>." connector="WebFlowConnector"/>
          <Actions>
            <Action name="launchBSP" groupAction="" handler="SAPBSPLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
              <Properties>
                <Property name="CustomerNamespace" value="sap"/>
                <Property name="Namespace" value="sap"/>
                <Property name="Application" value="<app_name>"/>
                <Property name="PageId" value="page1.htm"/>  " case senitive
                <Property name="System" value="${item.systemId}"/>
                <Property name="display_order_priority" value="5"/>
              </Properties>
              <Descriptions default=""/>
            </Action>
          </Actions>
        </ItemType>

  • User Decision step in UWL

    Hi,
    I have a 3 user decision steps in my Customised workflow which uses the task TS00008267. Each task has different decison text and outcome. When this is executed through UWl the outcome does not appear as they are in SBWP.
    Does this need and Portal Configuration?
    Thanks & Regards

    Hi,
    There are two thing you need to do.
    First, you need to configure the SWFVISU.
    Run Tcode SWFVISU.
    here, select "Task Visualization' and maintain your standard task ( TS ) with ABAP web dynpro option.
    Now selct your entry and click on Visualization Parameters as mentopn below.
    APPLICATION ( WD application name )
    DYNPARAM
    NAMESPACE
    SYSTEM_ALIAS
    Second, ask Portal team to chagne the XML code for the above standard task and application ( i.e. WD appilcation which will be launced on clicking the task ).
    From the next run of the workflow, WD applcitoon will be lauched from the protal.
    for the old workitem this will not work.
    Note : If u do not configure SWFVISU then WD application will not lauch but user will get SAP gui screen for processing it.
    xlm code must be changed corresponding task for both case.
    Thanks and ragards,
    SNJY

  • Tcode in user decision step

    Dear experts,
    I have a user decision step. Before the approver can approve or reject the workitem i need to show a tocde screen to him. Say for example CN25. My workitem will be generated only after initiator makes changes in that tcode. I want approver who gets the workitem to see CN25 tcode screen and then only make decision. Is there any possibility to attach or bring a tcode screen in user decision step.

    Dear Hemalatha,
    Thanks a lot for your reply.
    You can direct;y use the Object which is used to trigger the workflow. Then you can bind this object to get that tcode as
    attachment in decision task.
    This is exactly my requirement. In my BO i have a standard method "display" to display the Tcode. I want to know how should i do the binding from BO's method to user decision task so that i can display a link as attachment of user decision step, by clicking which user can see the display screen.

Maybe you are looking for

  • Raise_Exception in CL_CGPL_STATUS_MANAGEMENT=====CP

    Hello Expert, Please help me with Raise_Exception dump.Customer is facing this problem daily .we have debugged program many time and all but we are not able to find any clue.Its based on Fund plan id and campaign. And i have checked SAP Note-1475108.

  • Problem with Timer in Clock app in IOS 8

    I've noticed an interesting change, a bug I suspect, in the Timer part of the Clock app in IOS 8. If I set a timer for say, 5 min, and I happen to check the timer before the alarm sounds, so it is showing on the iPhone, the alarm goes off, But I cann

  • Problem while incrementing a variable in Jasper Reports

    Hi I am using Jasper Reports for designing reports. These reports will be used by my Java application. But there is problem while I am trying to increment a variable depending on some condition. Requirement: I have to display information about all th

  • Acrobat Pro 9 SharePoint PDF Review Remote Service Authentication

    I am using Adobe Acrobat Pro Extended 9.4.3 (as part of the Technical Communication Suite 2.5). I am hosting PDF reviews on our company SharePoint server. In the past, I haven't had any problems doing this. However today I cannot connect, and a "Remo

  • Word file will not scroll to printer in classic

    I'm using microsoft office 2001. When I want to print a word file (using classic envir.), it stops until printing is completed. (I have a Canon i550 ). When working off (OS 10.2.8) Appleworks, the file quickly scrolls to printer and I can go on to so