Skip to Content
0

Temporary Error Approach

Feb 13 at 02:27 PM

41

avatar image

Hi,

I have a User Decision where user can App or Reject PO.

Now if workitem with user-A, and during execution of it, if user-B has opened the PO in edit mode, can I throw a message to user-A stating 'User B has locked the PO' and still the WF instance should be may be 'In Process' state rather than going into error or getting completed?

Can this be handled thru temporary error thing?

or any other approach (quick fix) :) ?

Thanks,

Aditya V

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Stéphane Bailleul Feb 13 at 02:46 PM
1

Hi

Yes the temporary error is great when the document is locked.

The action will be resubmitted (by default) 3 times with a 20 minutes interval.

Cheers

Stephane

Show 1 Share
10 |10000 characters needed characters left characters exceeded

hi Stephane,

thanks for quick response.

so now where do I use that method is a question.

My WF starts, it fetches all agents, then moves to UserDecision and based on App or Reject it moves further.

So now in this case I have created a method for BUS2012 with 'temporary error' but how can I use it in my UserDecision Step so that even if PO is locked by User-B, it will show a message to user stating User-B has locked it and still the workitem remains in his Inbox.

Thanks,

Aditya V

0
Mike Pokraka Feb 13 at 08:49 PM
1

I think Stéphane Bailleul misunderstood the question, as I read it this is in the same dialog as the user decision.

Do you work with Satish by any chance? It's the same scenario he asked a few hours earlier.

I would use work item exits for this, just implement a before execution exit and try enqueue there. If it fails, pop up a message and stop execution. I can't remember whether it's raise an exception or set appropriate return code, but the work item exit is fairly well documented and there are examples in the system.

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hi Mike,

no am not working with Satish. well yes, thats what I was looking where I can give a message or pop-up to user stating the PO is locked by user and still the workitem remains in his Inbox for further processing.

How do I keep the workitem 'in process' for the user?

So do you mean I use this in my Program exit, where I check if its locked and display a message? If yes can try that.

Is there a link or any hints to refer for?

Thanks,

Aditya V

0

As I said it's well documented, there's a description on the tab itself and if that's not enough there's also the online help.

https://help.sap.com/viewer/a602ff71a47c441bb3000504ec938fea/7.5.7/en-US/4f32296c151f5540e10000000a421937.html

0

Hi Mike,

thanks for the help.

0