A Method betweeen two User Decision Activity

Hi,
Is it Possible to execute a method in between two user Decision Activites which advances with Dialog.The method that has to be executed is just a simple code based on the result of the user decision activity.
By placing an ordinary activty between these two user decision activity it fails to advance with dialog.
Also,it has been impossible to use this as a Modal Call after work item execution because this method requires standard Elements like WIActual_Agent which couldnt be passed as parameter also there is not separate binding for secondary methods.
Please suggest a way to do that.
Regards
Imman

I tried that.I dunno where I'm missing.
The method which I need to call in between has a piece of code for table updation and is actually not a dialog.
But this has to be executed between two dialogs.
A notification is sent to User's inbox with 2 options(1st decision Activity) and on choosing one from that again 4 options(2nd decision Activity) will come.Between this a method has to get executed.
Ideas pls.
Regards
Imman

Similar Messages

  • Workflow: User Decision Activity doesn't work

    friends,
    URGENT!!!
    I've created a User Decision Activity but it doesn't work.
    It sends a message to SBWP but there the user hit APROVE  OR REJECT, and instead it work, it simply show another screen with only a button labelad "Cancel and keep work item in inblox".
    It simplily doesn't folow.
    I've created an method that executes a standard function 'EDITOR_TABLE' that call a screen to the user put a description text for the rejection. It's market 'Advance with dialog'.
    thanks
    Glauco
    Abap / Workflow Consultant
    msn: [email protected]

    Hi,
    Your patch level seems to be OK.
    pls. try the declaration as 'Data: uid like syst-uname' or you could try directly assigning the sy-uname.
    Try to debug and see the content of the sy-uname, when it hits this code.
    HTH,
    Regards,
    Nataraj.

  • User decision activity not going to the agents(Position Maintained).

    Hi All,
    I assigned a specific Position in the agent field of  the user decision activity. But after assigning, the decisiion step is not going to the expected agent but it getting executed by the WF-BATCH user.
    I have checked the same in the Tcode : PO13 and the corresponding user is the only one maintained for that position.
    Kindly guide what can be the possible reasons. Is there any thing i am missing.
    Thanks,
    Neslin.

    Thanks.Yes.Latest start and latest end are already maintained and there is a Rule when the latest start missed also.  kindly let me know how i can avoid this also..
    How to check whether the position is maintained to the SAP user id?.I have seen the user maintained under the position in Tcode PO13..
    The deadline is calculated 4 days after sydatum.
    One more thing the Workitem got reserved by the WF-batch and executed by WF-batch.
    Edited by: neslin on Jul 28, 2009 7:49 AM

  • One computer, but two user-accounts active, at the same time, in 10.6?

    I'm contemplating this setup: A current generation MacPro (running SL), with two monitors. Can I have two separate user-accounts (the Admin account and one additional user-account) active and running simultaneously from the MacPro, but, of course, displayed separately to the monitor corresponding with that user-account?
    Thank you!

    you can have two accounts logged in at the same time via fast user switching but there is no way to display them at the same time on different monitors.

  • Creating attachment in User decision activity.

    I am running a background ABAP report and the output of report is to be attached to the WI for user. The user will receive the decision step with attachment which includes report output as excel.
    please suggest how can I achieve it. How can I attach report output to WF that will be going for user approval.

    Hi Verma,
                      To show Output in Excel Format use document form Template step type and immediately followed by User decision so that when the user executes he will first see the excel sheet then he can take a decision on it.
    If u want a display on the same user decision step type then make that method as default methos and bind it to the USER Decision container.
    Regards,
    Dheepak

  • Regarding Attachment in User decision activity:SOFM

    Hi all,
    I have created a smart from in my ABAP code and converted the form to PDF and then  OBJECT key for creating attachment.
    My object key is FOL33000000000004EXT35000000000164.This object key is in abap code in field of table with format
    SWR_ATT_ID-DOC_ID.This abap code is in my method in my z-Business object used in workflow.
    Now i need to send this key value to SOFM in workflow this SOFM is in BO format in workflow.
    As a result type conflicts and SOFM is not getting instantiated in Workflow.
    I need to get thsi key value in my workflow SOFM.
    Please guide.
    Thanks.

    You can use FM
    SAP_WAPI_ATTACHMENT_ADD
    Check this link.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/60ff6ad3-729b-2b10-6582-fedc82680a29
    Thanks
    Arghadip

  • Step User Decision and Approval of Purchase Order

    Hello All,
    I have created a workflow with step user decision and also attached the object BUS2012 to display from SAP Inbox. But is there a way i can attached the object that would show the approval screen when the work item is executed, and also send a mail for the user decision.
    Urgent help needed.

    Hi,
    You could use a secondary method in your user decision step which executes an object method and for example displays the PO so users can make the correct choice in the user decision.
    Regarding sending an email you could have a sendmail step after the user decision step but wthis will not be executed until the user decision is complete. Why do you want to send an email?
    Regards,
    Eddie

  • User Decision with Secondary Method

    Dear All,
    I have created a user decision step for Leave Request workflow (ie. to approve or reject ).
    This is done for multiple approvals of leave request through UWL i.e. user can select multiple requests & take decisions(approve/reject).
    In the user decision step, i want to use a method other than standard task TS00008267.
    In the methods tab i have used Secondary Method,
    Object Category as Class
    Obj.Type as CL_PT_REQ_WF_ATTRIBS
    Method DUMMY.( as per the standard workflow - WS12300111).
    But no value is returned by this method. How can binding be done here so as to use the values in further steps??
    Please help.
    Regards,
    Vidya

    Hey it is very easy to know whetehr the leave is approved or not. and even you can get this decision into the workflow container
    No need of using any secondary methods SURE
    See the step Approval in the Leave workflow will use Dummy method of that class that you have mentioned.
    Your staus is updated in the REQ container element of the workflow , it is the that you mentioned, in that class you have a attribute with name Status whe you approve it will be changed to Approved when the leave is created it will be Sent , so by using a Condition step check this attribute value if it is approved then in update one conatiner element  by using Container operation step.

  • 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 - Outcome link to on a Previous Activity

    Hi all, I'd like to ask to all WF expert about a doubt, is possible to link the outcome of a Activity of USER DECISION to a Previous Activity? In afirmative case, which will be the way?
    Thank you and regards
    Angel

    Yes,
    Use the container operation step in the particular branch of user decision step. Set value of some container say ABCD = 'X'
    Then loop the user decision step. Check if the value in the container is X.
    If true loop or else endloop.
    Let me know if I have understood your requirement properly.
    Let me know if you have any queries.
    Regards,
    Raj

  • User Decision in a Module Pool

    Hello Guys,
    I am relatively new to SAP workflows. I am implementing a solution here and I have mixed feelings about the design. I would love to hear some advice on how to proceed or some reassurance that I am going in the right path.
    Requirement:
    If a Requeust (say Material Creation)  is created by the Initiator in my Custom Module Pool program, the workflow is triggered and sent to the Approver.
    The Approver should View the Request by executing the workitem from his Inbox which will in-turn call the Module Pool Program.
    From there the approver will have two options either to Approve or Send Back.
    I have designed my workflow like this...
              View Request  (Activity)
                      |
              Aprrove / Reject  (User Decision)
       5.  I am marking the 'View Request' activty as complete from my Dialog Program so as to make the workflow come to the User Decision step so that I can pick one and execute form the Module Pool. I have a bad feeling that it might not be a standardized method. If not, then how shall I proceed.??

    From my point of view the decision step is completely unnecessary (or alternatively I am missing a point here). What is the role of the decision step in the process?
    If you have some kind of approval, you should be able to handle it with a one single workflow step. There is no "standard way" of doing things, but there are best practices. If you take a look to any of the SAP standard workflows, they normally work like this (let's take a leave request as an example):
    1. Approver clicks the "Approve leave" work item from his inbox
    2. This will open the leave request approval application
    3. Approver clicks the approve button.
    4. Clicking the approval button updates the leave request status to approved in the database and at the same time completes the "Approve leave" work item, and thus the workflow will continue.
    Everything is handled with a single step and there is no need for some kind of sequential decision step.
    Even better would be that when you click the approve button, you would trigger an event REQUEST.APPROVED of your possible business object instance, and your task would be waiting for this event. The event would complete the even, and thus you would not need to use SAP_WAPI_WORKITEM_COMPLETE (=your application/module pool does not need to know anything about the workflow (=work item ID) - it would just trigger the event for the request). The best approach is to separate the business logic / application from the workflow, if you have a possibility for it (and if you are building something from scratch, then you have all the possibilities for this).
    Kind regards,
    Karri

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

  • Work flow in error when executed with a user decision.

    Hi,
    I am executing a workflow for notification of absence. It has a user decision step to Revise the request or to withdraw it when the absence request is rejected by the approver. When I am executing this the workflow is going into error state. User decision step is not starting at all. The first two steps create notification of absence and check notification are getting completed successfully.
    Please let me know where I am going wrong.
    Thanks & Regards,
    Soumya.

    Hi,
    I believe the orginal poster is following the workflow tutorial in the sap help.
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/fb/135962457311d189440000e829fbbd/frameset.htm
    I'm following the instructions and pretty sure it's been followed exactly on each step but am hitting the same issue - see 'Unit 10 - third step'.
    The log is reporting two errors
    Work item 000000014093: Object FLOWITEM method EXECUTE cannot be executed
    and
    Error when processing node '0000000039' (ParForEach index 000000)
    You reject the notification and then the work flow errors.
    Can anyone help?

  • 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

  • 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

Maybe you are looking for