Step for User Decision

Hi All,
I have a scenario and two solutions for it.
Please give me the input for which is a better solution and why.
Scenario - Approver have to either Approve/ Reject a particular request made.
The user decision has to come from Java front end  and the workitem created has to be executed externally
( not by opening sap inbox)
Soln 1 : Create an asynchronous task and custom terminating events for the workitem and trigger terminating event for any user decision Approve or Reject.
Soln 2 : Send an normal decision task and programatically execute one of the decision using the WAPI* FM when user clicks Approve/Reject.
Both of them I think uses the WAPI * FM.
Thanks
Chandran

Sorry I was not clear in my question before.
I still refered to the first solution which uses a Aysn Task and a method which does not have any code (just a placeholder)
IA is absolutely right but I dont have the flexibilty to use an ivew.
Thanks a lot for your reply. I would close up this thread.
Just some additional clarification if you can bring up
What additional code that would be required for the second solution (both uses a sap WAPI FM )
Both can be tracked by WF tools by finding out the agent and the person who have completed the Workitem so which tools you were mentioning about
Actually I did not get which is a better solution but realized both can be used atleast no worry on the performance load. My be this topic can go for a long time to figure out
Regards,
Chandran.

Similar Messages

  • Need 2 Multiline elements for user decision step

    We are on SAP R/3 Enterprise version.
    I have this requirement to find agents based on the agent type and work center field.  So I created a responsibility rule for each type of agent type.  The responsibility rule is keyed on the work center, and HR positions are mapped to each responsibility rule’s work center field. 
    We have 50 agent types/responsibility rules, 60 work centers, and 1 or more positions for each agent type and work center combinations. Due to the total number of positions, I prefer to use 1 responsibility rule per agent type for ease of maintenance.
    I have a FM that reads the responsibility rule based on the agent type and work center field and retrieve the agent_list.  I used this FM/method/step prior to my user decision step and pass the agent_list to the UD step via container.
    In my user decision step, the ‘Other’ tab does not have Multiline element for me to enter my agent_list.  So I cannot use &agent_list[&_WF_PARFOREACH_INDEX&]& in my user decision agent assignment expression field.
    In my last job, we have SAP ECC 5.0, the UD step has a ‘Misc’ tab that has Multiline element, but our current SAP R/3 Enterprise version does not have ‘Misc’ tab, it only has ‘Other’ tab.
    Question:
    1.  How do I use [&_WF_PARFOREACH_INDEX&] without Multiline element for agent_list in UD step?
    2. I have to use the same way to retrieve my LED_agent_list as well, so I need 2 Multiline elements in my UD step. But normally in  ‘Other’ tab, it allows you to define only 1 Multiline element. How do I get around this restriction?
    3. My last resort is to use 1 responsibility rule, then I can use the rule in the agent assignment.  If that is the case, is there any limit on the number of entries in the rule?
    Thanks.
    Amy

    Sorry, I posted to the wrong forum.

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

    Execute user Decision workitem, when user click reject button, open text for rejection reason within the workitem.
    Ideally, for the auto-pop text , we need a descriptive header and user can enter reject reason. Text must be added before the workitem can be saved.
    Any thoughts.
    Thanks a lot.

    yes, on the SOFM.Create-Task use a dataflow from the WIOBJECT_ID => (append table) ADHOCOBJECTS
    This will popuplate this rejection to the hyperlink-section of the workflow.
    You may also activate the outcome-even "user-cancelled" in the workflow definition (or by copying the coding to your own method that could do it) and loop around back to the user decision if he cancels the document create (which I found out is sometimes a problem for the users).
    I also have made the experience that it is quite the same effort and more convenient if you design a complete user-driven screen. Then you have full control of that issue. I always use a small dialog box with a textEdit-Control where the users have to enter their rejection reason.
    I then create my own ZWFNOTE-Object and append this to the ADHOCOBJECT. This usually works very fine.
    with kind regards,
       Florin

  • Body of text for User Decision

    Hi Experts,
    In my scenario while sending user decision mail for approve or cancel, here I need to send mail with body of text
    Like :
    Scheduling agreement number: &PURCHSCHEDAGREEMENT.PURCHASINGDOCUMENT&
    Scheduling agreement date:
    Material Description:
    Rejected by:
    Rejection reason:
    Now I can include subject of mail using parameters (decision tab).
    But here I am not able to include body of text.
    Please any one can suggest solution for this.
    Advance Thanks,
    Regards,
    BBC

    Hi Suresh,
    Thanks for your quick replay.
    As suggested, yes I can see the container, here only it is showing few things like adhoc_objects, attach_objects, Wi_group_id, work_item, and note reference.
    I need to get values from scheduling agreement relevant methods and all...
    In work flow I can call the scheduling agreement methods relevant container parameters in other steps.
    Please can you suggest how to see what ever available methods and all in workflow?
    Regards,
    BBC

  • Container Operation step in User Decision

    Hi,
    I have used one set container operation step in one of the user decision task. But it seems it is not working inside the user decision step.
    I have checked the SWI1 log as well, but it is bypassing it.(screen shot attached from Workflow and SWI1).
    Please sugegst that can we use container operation step inside the user decision task.
    SWI1 log as well ( Not setting the variabl)e
    Regads,
    Priyanka

    Hi,
    check if in the workflow definition you mention if this step should be shown in the log or not. Also make sure using the technical details option in the workflow log that indeed the container operation was executed or not.
    If everything seems correct, but still in execution it skips something, then your workflow definition might be corrupt, either fix it by deleting the step in development, saving it and then recreating it. Or if it was corrupted after transport you could try your luck with function module SWD_REPLICATE_FROM_9999.
    Kind regards, Rob Dielemans

  • How to skip approving steps for users who are also approvers?

    We have a business need to be able to skip the approving steps for the users who are also approvers.
    For this following steps were followed :-
    1) Open .task file and go into the Assignment tab. Double click on the performer box within the routing slip, this should open the "Edit Participant Type" editor. Expand the "Advanced" section and place a check next to "specify skip rule", then click the edit icon to the right. Now enter an XPath expression that will test whether the current user is equal to the task creator.
    2) We used - isUserInRole XPath function in the "Identify Service Functions" dropdown - first param to function is the userID, the 2nd is the role name.
    We tried with hardcoded userID as well as by using
    ids:isUserInRole(/task:task/task:systemAttributes/task:updatedBy/task:id,'California')
    where 'California' is the group name (as one of the forum threads told this function works with groups).
    We also tried with swimlane roles(using bpm.getPerformer() function) but it does not work either.
    Please let me know if any one has any solution to this problem.

    session as DirectorySession = DirectorySession.currentEngineSession
    dirHum as Fuego.Fdi.DirHumanParticipant = DirHumanParticipant.fetch(session : session, id : "myUserId")
    result = hasRoleAssigned(dirHum, role : "Approver")Give that a try...
    HTH,
    -Kevin

  • Attaching HTTP Links for User Decisions?

    hi all,
    how can we attach HTTP Links along with User Decisions. i have previously attached Business Objects as links along with approve/reject button but this time I need to attach a HTTP link.
    Points will be awarded.

    hi ravi,
    the basic requirement for me is that the frontend is going to be Webdynpro Pages controlled with a workflow in the backend. say if a personnel submits a form, it has go to the person's manager for approval.
    So while approving it, if incase he wants to see the approval information, he would click on the URL which comes with the User Decision. this is the precise requirement.
    Regarding Javascript code, where can we write the java code for URL's. is there any standard template which follows the same requirement.

  • Error in Creating task for user decision

    Hiee friends .
    I am new to workflow .I was going through the workflow tutorial [building a workflow from scratch] available at the elearning section[ABAP eLearning Catalog].
    I am praticing abap in sap netweaver available for free download from sap ag[its not having any functional module ].
    I am able to create the userdecision and then when i try to create task in the activity section of yes userdecison.
    There i am getting a error while choosing the basic data section.
    In netweaver i don't have any functional module ,so i taking the flight booking system .
    I am choosing the Oject category as BOR Object type
    and then the object type as Sbook
    and method as display .
    But when i am choosing save button a error is coming telling me that "Prefix Number :  entry missing for system NSP client 000" .
    I clicked on the message it's telling me to maintain table T78NR in customizing and create an antry for the sytem in question and the current client .
    Please help me out .....

    I tried to give prefix number in the tcode-OOW4.[i gave it 500]
    Prefix number : 500
    SAP System id : NSP
    Client ID : 000
    But while saving it telling me that
    "Preix number 500 is not in the customer namespace".
    Is there any standard prefix number , or as i am doinf it in netweaver trail version there are problems .
    Plse help me out ..
    What would i do now ?

  • 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

  • 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?

  • Programatically pprove/Disapprove user decision step in a waiting workflow.

    Hi Experts,
    If I have the approval step work item ID,can I programetically resume the waiting workflow by providing the input (approve disapprove).
    The use case is that the workflow is started. The workflow has a approval step and it is now waiting for user decision.
    When the workitem is created,I get the workitem id thru an exit.
    Now assume the user decision is got thru another means and now I want to resume the waiting workflow by providing the decison into the waiting workflow.The workflow should now continue with the subsequent steps.
    Is there any WAPI to do that.
    Thanks in advance.
    Bikram

    Ad Hoc Approval should be done with transaction SWIA.
    If this occurs a lot then a redesign of the flow is in order. One where with deadline monitoring you can take certain actions when workitems are idle for an amount of time.
    Also setting up substitution is advisavle for this scenario.
    Programmatically doing stuff is done with the SAP_WAPI function modules, check out if sap_wapi_decision_complete works for you.
    Kind regards, Rob Dielemans

  • Custom User Decision for Class Method in Task

    Hi Expert,
    I have a screen for user decision(Approve/Reject with some comments field). When i execute the process it works fine for all cases, but when i don't click any decision and come back from the screen, then also this task gets completed and workflow starts executing next step. Here in this case, i want workitem to remain in inbox same as what happen in case of user decision step.
    Do i need to put this task in loop till i get a decision or some other way i can solve it? I have tried putting this method as Synchronous and non-Synchronous method. I am not sure if this issue is, because i am using Class method. Please help.
    Regards,
    Pritam
    Edited by: Pritam Kunal on Feb 11, 2011 4:28 PM

    Hi Mike,
    I have got a solution for this. If we make the task as Asynchronous task with a terminating event. Till the time event is not triggered process workitem will remain in inbox. This event can we triggered at any user decision only.
    Is there any flow in this logic? I have tried it for few cases and it worked, but not sure if there will be any case where it will not work? any suggestion?
    Regards,
    Pritam

  • User decision step window

    Hi sdn community,
    I'm working on workflow where the first step is user decision (BOR Object Decision).
    After starting workflow, I want that the window for user decison will be created and shown to user automaticaly.
    The workflow is started at event, which is fired on status change. There are some start conditoin defined for the workflow.
    It works before, when I started workflow for object created status without started condition. (should be this that problem?)
    Thanks a lot in advance,
    with regards
    Jaro
    PS.: I'm using CRM 5.0 system, with SAP BASIS 700

    Hi,
    I am not sure how start condition can affect this. But check the following,
    1. The event parameter EVTCREATOR should be binded to the workflow container element WFINITIATOR in the event to workflow binding.
    2. The "Advance with dialog" checkbox should be checked in your the "Details" tab of your decision step.
    Thanks,
    Prasath N

  • Dynamic name for attachment in User Decision

    Hi...
    I have a requirement wherein the name of the attachment in the user decision has to be populated dynamically. I am using the same BO method for user decision but is triggering 2 different objects. Please advice on how to achieve this.
    Scenario - I am using BUS2081 for Invoice and for Credit Memo. If the credit memo is created, the approver has to see the name of the attachment as Credit Memo xxxx and if an invoice is created, he has to see the attachment as Invoice xxxx. As standard, whatever object is created, the attachment name is Incoming Invoice xxxx (name of the BO Object Bus2081).
    Warm Regards,
    Jubish Jacob

    The object name is static but the default attribute can be changed (use a z-subobject and delegate back) so you can do something like this: instead of: incoming invoice(object name) 12345(invoice number - default attribute) you will have document(new object name) incoming invoice/credit memo 12345(document type & number concatenated - a new default attribute)
    Another option - I think credit memos have an object (BUS2094) or you can create one - in the task have both object types in the container, when its a credit memo transfer only the credit object when it's an invoice transfer only the invoice object.

  • How to integrate outlook with notification in user decision

    Hi experts,
       there are notification/latest end/requested start... tabs in step type 'user decision' of workflow.
       But these messages are sent to workflow inbox and now i want to sent these messages to outlook.
       For notification i could use function module 'SO_NEW_DOCUMENT_ATT_SEND_API1' to achieve this.
       But how could i achieve latest end/requested start with 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
      After some research i find that 'extented notification' seems could reach this.
    Any advice on this requirement and is  'extented notification' ok for this requirement  ?

    Hi Gang LI,
    Using 'SO_NEW_DOCUMENT_ATT_SEND_API1' you can send notification amisl to a user. But user decisions are used to send workitems to user to take action on. These have deadline monitoring activated to take care of missed deadlines for the task.
    Please explain if you need to send workitems to the users.
    Regards,
    Saumya

Maybe you are looking for