cancel
Showing results for 
Search instead for 
Did you mean: 

Temporary Error Approach

former_member184495
Active Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

pokrakam
Active Contributor

I think sbl 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.

former_member184495
Active Contributor
0 Kudos

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

pokrakam
Active Contributor
0 Kudos

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/4f32296c151f5540e10000000a4...

former_member184495
Active Contributor
0 Kudos

Hi Mike,

thanks for the help.

sbl
Active Contributor

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

former_member184495
Active Contributor
0 Kudos

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